António Afonso

Results 71 comments of António Afonso

Hey @php07magic, CORS is something that is configured on the server, not on the client. The server needs to send the `Access-Control-Allow-Origin` so the browser knows it’s fine to connect...

I've never tried but it should be possible. FileAPI is just one of the available readers, XHR and Node is also supported. You'd need to implement your own reader though,...

Not really sure about this, why is it more useful to try to read the frame data as a string? Seems kind of a stretch, can you talk about your...

Instead of doing that how about passing an optional function to `loadTags` that is called whenever the parser doesn't know how to read a specific frame? It is for caching,...

Btw, here's how you could promisify this with jQuery: ``` javascript function getTags(filename, options) { var deferred = $.Deferred(); var tags = ID3.getAllTags(filename); if (tags) { deferred.resolve(tags); } else {...

Oh, I see your use case yeah. However, if the loadTags returned a promise I would still maintain a cache system because I would want to have a way to...

> As for a function to read unknown frames, it might not be a bad idea to be > able to override it. I'm not sure why you wouldn't want...

Cool, I missed that comment though! To solve the getBytesAt() problem, how about returning a new BinaryFile that only handles the data returned by getBytesAt()? Add a .getBinaryFileWithRange function and...

I haven't used IIS for 10 years or so to be honest. The XHR reader makes HEAD requests to get the content-length of the file. Maybe for some reason IIS...

I don't think that @TheFuzzball commit fixes the issue, it just assumes `2047` bytes when no `Content-Length` is available... (not sure why though). In your case you just don't get...