disabling and enabling subtitles using libvlc

This forum is about all development around libVLC.
samithawijedasa
Blank Cone
Blank Cone
Posts: 21
Joined: 11 Jul 2013 22:52

disabling and enabling subtitles using libvlc

Postby samithawijedasa » 28 Aug 2013 05:04

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.

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: disabling and enabling subtitles using libvlc

Postby Rémi Denis-Courmont » 28 Aug 2013 17:43

It should work. You better try than asking questions, really.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

bharmel
New Cone
New Cone
Posts: 7
Joined: 05 Sep 2013 16:29

Re: disabling and enabling subtitles using libvlc

Postby bharmel » 06 Sep 2013 13:27

How do you enable/disble subtitle in your player ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: disabling and enabling subtitles using libvlc

Postby Jean-Baptiste Kempf » 09 Sep 2013 23:46

using the *spu* functions
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 21 guests