[VLCKit] Change subtitle settings while playing
Posted: 24 Jun 2015 12:12
Hi,
I have gotten to a point, where I can play a video, including subtitles and I can adjust the subtitles as I want when I create the object using .
I am having trouble, however, changing the subtitles on-the-fly as the video is playing. I've attempted to change the options on the object, but to my understanding these options only affect the parsing of the media object.
I've dug around the VLC for OS X code, and found the method which uses function to modify the subtitle settings. Is there a way to achieve a similar result using the VLCKit?
I don't mind doing some minor hacking (e.g. getting an internal pointer to VLC objects and using the C code) in order to achieve this, just would be glad for any help on this matter as I am not sure what would be the best way to do this...
Thanks in advance!
I have gotten to a point, where I can play a video, including subtitles and I can adjust the subtitles as I want when I create the
Code: Select all
VLCMediaPlayer
Code: Select all
-initWithOptions:
I am having trouble, however, changing the subtitles on-the-fly as the video is playing. I've attempted to change the options on the
Code: Select all
VLCMedia
I've dug around the VLC for OS X code, and found the
Code: Select all
switchSubtitleOption:
Code: Select all
config_PutInt
I don't mind doing some minor hacking (e.g. getting an internal pointer to VLC objects and using the C code) in order to achieve this, just would be glad for any help on this matter as I am not sure what would be the best way to do this...
Thanks in advance!