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
I want to switch between subtitles in my custom dialog ,I have parsed single subtitle file using SingleSampleMediaSource but while switching between different subtitles how to handle it without restarting the video, where can i see the piece of code in demo app
The text was updated successfully, but these errors were encountered:
Sathish-Kumar-Kanagaraj
changed the title
I want to switch between subtitles in my custom dialog ,I have parsed single subtitle file using
I want to switch between subtitles in my custom dialog ,I have parsed single subtitle file using SingleSampleMediaSource but while switching between different subtitles how to handle it without restarting the video, where can i see the piece of code in demo app
Nov 26, 2018
Sathish-Kumar-Kanagaraj
changed the title
I want to switch between subtitles in my custom dialog ,I have parsed single subtitle file using SingleSampleMediaSource but while switching between different subtitles how to handle it without restarting the video, where can i see the piece of code in demo app
switch between subtitles in my custom dialog
Nov 26, 2018
Sathish-Kumar-Kanagaraj
changed the title
switch between subtitles in my custom dialog
How to switch between subtitles in my custom dialog i have used SingleSampleMediaSource
Nov 26, 2018
You can add any number of subtitle SingleSampleMediaSources to the MergingMediaSource that you pass to the player. So if you know where the subtitles are in advance, set them all up before starting playback, and pass them all into the MergingMediaSource. This will cause the player to list each one as an available track. This will cause a corresponding track for each of them to become available (e.g. you'll be able to select between them in the demo app). Setting up in this way is very cheap; we don't load the data or parse the subtitle data unless the track is actually selected.
If you don't know the location of the subtitles in advance, and want to add a location mid playback, then that's unfortunately not supported currently. Supporting this is tracked by #1649.
I want to switch between subtitles in my custom dialog ,I have parsed single subtitle file using SingleSampleMediaSource but while switching between different subtitles how to handle it without restarting the video, where can i see the piece of code in demo app
The text was updated successfully, but these errors were encountered: