-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi-Period: Get the correct variant / text streams for the current period #2887
Comments
Let's expand your example slightly for the sake of discussion:
In v2.5, we modeled DASH periods internally, and tracks were per-Period. So if you transitioned from P1 to P2, the English audio track would disappear. This caused issues, however. For example, if the user selects English in P1, they would be forced into French at P2. Then when they reach P3, should we play French or English? Obviously, as a human reading this example, you would want English back. However, it was difficult to know from the API what the user's intent was, and there are cases less obvious than language. An app can select any track with So in v3.0+, we combine periods and create tracks that span DASH periods. So the combined tracks from our example look like this in v3:
Because we've explicitly mapped tracks across periods in advance, there's no automatic track changes at period boundaries. A app's or user's selection is always preserved, no matter what track attributes were used to make the selection. Does this help? |
@valotvince Does this answer all your questions? Can we close the issue? |
@joeyparrish Thank you for the explanation :) |
Have you read the Tutorials?
✅
Have you read the FAQ and checked for duplicate open issues?
✅
What version of Shaka Player are you using?
v3.0.3
Please ask your question
How could we get the current variants / text streams for the playing period ? That would be helpful to prevent showing audio tracks / subtitles tracks which disappear from period to period, and that would be really helpful in case of a live start-over or time-shifting.
P1
P2
... and English audio might appear back in another Period
The text was updated successfully, but these errors were encountered: