Languages

Menu
Sites
Language
Change active audio/subtitle in Player

Hi,

Can we change audio/subtitle during playing?
Some content have more 1 subtitles or audios, and I would like to give to possibility to users to select and change it.

But I did'nt see those features in default Tizen.Multimedia.Player?

There are a solution?

Responses

1 Replies
Jeong-yoon Nam

Hello.


You can check the number of tracks and select it.

        private async Task<PlayerTrackInfo> GetAudioTrackInfo()
        {
            return player.AudioTrackInfo;
        }
        
        public async Task SelectAudioTrack()
        {
            var audioTrackInfo = await GetAudioTrackInfo();
            
            audioTrackInfo.GetCount();
            audioTrackInfo.Selected = 0;
        }

Please refer to the following link for more information.

samsung.github.io/TizenFX/API6/api/Tizen.Multimedia.PlayerTrackInfo.html

 

Thanks