Fixes early transiton to Player.STATE_ENDED
with MPD transition dy…
#1451
+25
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…namic to static
This checkin fixes Issue #1441 where the player transitons to
Player.STATE_ENDED
once the buffer runs out on a DASH start-over playlist that has transitioned from dynamic to static.The fix detects the DASH Period has changed offset to the window, which occurs when the origin vendor follows the DASH-IF recommendations in Section 4.6.4. Transition Phase between Live and On-Demand , summerized as:
MPD@mediaPresentationDuration
MPD@minimumUpdatePeriod
Period@start
is removed (if it was present)Period@duration
is added (in case more than 1 period is present)Adaptationset .SegmentTemplate@presentationTimeOffset
is set to earliest presentation time of a segment in the AdaptationsetThe MPD change does not affect the render position or the segment timeline at all, however the cleanest way to implement this was to report a
PositionUpdateForPlaylistChange
which triggers a seek and flushes the current buffered content.