UnityPlugin-AVProVideo icon indicating copy to clipboard operation
UnityPlugin-AVProVideo copied to clipboard

[Question] How to start HLS media with a specific language?

Open christianYS opened this issue 3 years ago • 2 comments

When a HLS manifest contains multiple language tracks, the player will always start with the default language. If I want to set a different audio/text track, I can use the .SetActiveAudioTrack() and .SetActiveTextTrack(), and at that point the player will start downloading the data for the language.

Is there a way to override the "default" language before starting loading the video, so that the video player can download the desired audio/subtitle tracks right away? This would save loading time and bandwidth for the final user, because the player won't have to load the first segment of the default language set in the HLS manifest.

christianYS avatar May 23 '22 11:05 christianYS

Hi @christianYS, This is not something that is currently available, but we could definitely look into adding this feature in the future.

Chris-RH avatar May 23 '22 12:05 Chris-RH

Thank you. This is a nice-to-have feature, although a "minor" one.

christianYS avatar May 23 '22 13:05 christianYS