Page 1 of 1

disabling and enabling subtitles using libvlc

Posted: 28 Aug 2013 05:04
by samithawijedasa
I want to implement disable / enable subtitles in the custom player I developed. In VLC when we do this it removes the corresponding decoding module and reload it when enabled. For example, if we want to disable 'subt' type subtitles, when the disable subtitles option is selected it will remove using subsdec module and start to use it once enabled. How can I implement this in the player I developed. Can I use libvlc_video_set_spu to do this. My requirement is to disable and enable, but not to select a specific subtitle track.

Re: disabling and enabling subtitles using libvlc

Posted: 28 Aug 2013 17:43
by RĂ©mi Denis-Courmont
It should work. You better try than asking questions, really.

Re: disabling and enabling subtitles using libvlc

Posted: 06 Sep 2013 13:27
by bharmel
How do you enable/disble subtitle in your player ?

Re: disabling and enabling subtitles using libvlc

Posted: 09 Sep 2013 23:46
by Jean-Baptiste Kempf
using the *spu* functions