- Use the
Content-Length
header - If this is 0, then exit.
HTTPBinaryFile is a class which extends BinaryFile.
BinaryFile being a generic class which handles binary file data.
Basicly: { bytes: { '0-100': set_of_bytes, '400-500': set_of_bytes }}
HTTPBinaryFile and other classes which extend BinaryFile have a function called 'loadRange'. In the case of HTTPBinaryFile, this makes a ranged http request and stores the requested bytes.
- Use typed arrays
- Use isomorphic-fetch for http(s) requests
Bytes 4 to 7 for mp4 files and bytes 0 to 3 for mp3 files.
Roughly speaking. TODO: read specs.
ID3v1 loads the last 128 bytes of the file and then parses that to get the metadata.
It seems like ID3v2 and ID4 are a whole lot more complicated. Are there any decent articles on these formats?