You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, I am struggling quite a bit to get things working. I'd have one question in particular: fetchRange() requests a particular chunk but how does that chunk have to look like in order for the MediaSource to digest it correctly?
So.. if we send start and end.. are we really talking about byte-offsets of the particular file I am currently playing? Because in this case my server-endpoint would just return a byte array that contains those selected bytes but without a file header.
Does it work like this?
Doesn't that mean that we have to call fetch(url, 0, segmentLength, callback) at first before we start streamin in order for MediaSource to be able to read in information such as sample rate etc.?
Hi!
I am trying to implement an Audio-Player based on this example from https://github.com/nickdesaulniers/netfix in my Angular application.
However, I am struggling quite a bit to get things working. I'd have one question in particular:
fetchRange()
requests a particular chunk but how does that chunk have to look like in order for the MediaSource to digest it correctly?So.. if we send
start
andend
.. are we really talking about byte-offsets of the particular file I am currently playing? Because in this case my server-endpoint would just return a byte array that contains those selected bytes but without a file header.Does it work like this?
Doesn't that mean that we have to call
fetch(url, 0, segmentLength, callback)
at first before we start streamin in order forMediaSource
to be able to read in information such as sample rate etc.?Thank you for any help on this ..
The text was updated successfully, but these errors were encountered: