How to switch subtitle in a rtsp stream ?

iOS, iPad, iPhone, tvOS specific usage questions
linked
Blank Cone
Blank Cone
Posts: 41
Joined: 28 Nov 2014 09:12

How to switch subtitle in a rtsp stream ?

Postby linked » 10 Jun 2016 17:01

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

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: How to switch subtitle in a rtsp stream ?

Postby fkuehne » 11 Jun 2016 11:45

See the VLCMediaPlayer API. There are calls to get the list of recognized subtitles as well as changing the one currently displayed.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 34 guests