Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't wait for requests to finish when encountering an error in media… #286
When playing content where two requests may be made for a segment (i.e., there's a map tag for a segment, so both the segment and init segment are requested), if there's a request error on one of the requests before the other has started, then it's possible media-segment-request will be stuck forever, and never finish its group of requests.
To see the behavior:
Go to https://videojs.github.io/http-streaming/
Only the m4a requests will continue loading. Content may continue playback with audio only, and a stuck video frame.
The fix makes it so that both audio segment (m4a) requests, and init and video segment (m4v) requests are continued, and content resumes as expected.