Page 1 of 1

How to switch subtitle in a rtsp stream ?

Posted: 10 Jun 2016 17:01
by linked
Hi,

I use this code to read a rtsp link:

Code: Select all

_mediaplayer.media = [VLCMedia mediaWithURL:@"myrtsplink"];
It's working fine but in this stream there is one or more subtitle track. I can see them with VLC for mac when i use the menu.
How can i switch them with VLCMedia ?

I can't find any docs about this.

Thanks

Re: How to switch subtitle in a rtsp stream ?

Posted: 11 Jun 2016 11:45
by fkuehne
See the VLCMediaPlayer API. There are calls to get the list of recognized subtitles as well as changing the one currently displayed.