Captions/Subtitles not working on ActiveX Plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
rodin
Blank Cone
Blank Cone
Posts: 11
Joined: 15 Sep 2009 16:51

Captions/Subtitles not working on ActiveX Plugin

Postby rodin » 09 Mar 2015 17:50

Hi all,
I've been trying to get subtitles/captioning working on my web plugin Internet Explorer page, but have been unsuccessful in doing so. I currently have a Javascript file (.js) that is called from the main index.html file, everything works except for this.. It used to work previously using this same code, but seems to have stopped after an update. I am utilizing UDP streams.

Here's the portion of .js code:

Code: Select all

function doCaptionsOn() { getVLC("vlc").video.subtitle = "1"; } function doCaptionsOff() { getVLC("vlc").video.subtitle = "0"; }
Here's the part of the code calling the captions.. It is a button call..

Code: Select all

<input type="button" id='Captions' value='Enable Captions' onclick='doCaptions();' /> &nbsp; <input type="button" id='Captions' value='Disable Captions' onclick='doCaptionsOff();' /> &nbsp;
Any ideas?

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: Captions/Subtitles not working on ActiveX Plugin

Postby Jean-Baptiste Kempf » 09 Mar 2015 20:34

Yes. Please try a nightly build.
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.

rodin
Blank Cone
Blank Cone
Posts: 11
Joined: 15 Sep 2009 16:51

Re: Captions/Subtitles not working on ActiveX Plugin

Postby rodin » 09 Mar 2015 21:52

I was using nightly for 2.2.0 before it became official and no captions then, either. I think it broke in 2.0.x something..?

Either way, I am running nightly 2.2.1 and still no captions from my UDP stream, although they do work in the 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: Captions/Subtitles not working on ActiveX Plugin

Postby Jean-Baptiste Kempf » 09 Mar 2015 23:22

Can you do the list of subtitles ID?
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.

rodin
Blank Cone
Blank Cone
Posts: 11
Joined: 15 Sep 2009 16:51

Re: Captions/Subtitles not working on ActiveX Plugin

Postby rodin » 10 Mar 2015 20:21

Thanks! I was able to finally get it working by changing this:

Code: Select all

function doCaptionsOn() { getVLC("vlc").video.subtitle = "1"; } function doCaptionsOff() { getVLC("vlc").video.subtitle = "0"; }
to this:

Code: Select all

function doCaptions(value) { var vlc = getVLC("vlc"); if( vlc ) { vlc.subtitle.track = 1; } } function doCaptionsOff() { var vlc = getVLC("vlc"); if( vlc ) { vlc.subtitle.track = 0; } }
Didn't realize the command changed from subtitle to subtitle.track. thanks for the help!

rodin
Blank Cone
Blank Cone
Posts: 11
Joined: 15 Sep 2009 16:51

Re: Captions/Subtitles not working on ActiveX Plugin

Postby rodin » 10 Mar 2015 21:02

Just to make sure -- was this option disabled recently in entirety and being re-released with 2.2.1?

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: Captions/Subtitles not working on ActiveX Plugin

Postby Jean-Baptiste Kempf » 10 Mar 2015 23:06

Weird. video.subtitle is deprecated for years.
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 “Web and scripting”

Who is online

Users browsing this forum: No registered users and 53 guests