-
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
Allow switching between periods with and without text #715
Comments
We use MSE to play media. We create a buffer for audio and video data and append data as we get it. The browser pulls data from the buffers to play it in the What we could do is reset MSE once we get to the transition, but then the transition won't be smooth since we need to delete everything and re-download it when the playhead gets there. It would also be a lot more complicated to implement. To make things simpler, we don't allow changing from video+audio to video-only. |
@TheModMaker Okay, I see. |
I don't understand your question, can you rephrase? Are you asking if we support things other than audio/video/text, or are you asking about what the purpose of that code is? |
I should note that although we won't support changing video+audio to video-only, we should support changing between text and no text. I was told that we don't support changing between Periods that do and do not have text streams. That is something we should fix. |
@TheModMaker I understand. Thanks. |
Renamed and reopened to track switching between periods with and without text. |
We don't allow switching between Periods that are video+audio to video-only because it is incompatible with MSE. When the browser gets to the transition, it will pause waiting for the audio buffer. However, we should allow switching between Periods that do and do not have text streams. Issue #715 Change-Id: I77f3bf92681d8181c90169b8f4a15857b7d9e66d
We don't allow switching between Periods that are video+audio to video-only because it is incompatible with MSE. When the browser gets to the transition, it will pause waiting for the audio buffer. However, we should allow switching between Periods that do and do not have text streams. Backport to v2.0.x Issue #715 Change-Id: I77f3bf92681d8181c90169b8f4a15857b7d9e66d
This was just released in v2.0.7. |
What version of Shaka Player are you using?
v2.0.6
Can you reproduce the issue with our latest release version?
yes
Can you reproduce the issue with the latest code from
master
?yes
Are you using the demo app or your own custom app?
my custom app
not tried
What browser and OS are you using?
electron v1.6.1
What did you do?
Load the MPD manifest written with some periods.
One period has a video and audio. But next one has a video only.
What did you expect to happen?
can play the content having different stream types between periods.
What actually happened?
shaka raised INVALID_STREAMS_CHOSEN error when I played between period.
I found that shaka prevent different stream in StreamingEngine.
https://github.com/google/shaka-player/blob/fc46b29ed8b0781bf60165682f125470e2c04b22/lib/media/streaming_engine.js#L1687-L1708
Why shaka implemented such behaviour?
The text was updated successfully, but these errors were encountered: