Selecting DVD language from Mozilla plugin

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
Spellcoder
Blank Cone
Blank Cone
Posts: 57
Joined: 19 Apr 2006 12:21
Location: Hengelo // The Netherlands
Contact:

Selecting DVD language from Mozilla plugin

Postby Spellcoder » 18 Jul 2006 15:39

I'm working on a multilingual DVD on which we use an webapplication I've made. I would like to use VLC to play the DVD video's from within this webapplication.

When starting this webapplication the user has to select the language. I would like to use this setting to tell the VLC plugin which audio channel to use. Does anyone know of a way to do this?

Quovodis
Cone that earned his stripes
Cone that earned his stripes
Posts: 271
Joined: 16 Jun 2004 11:13
Location: Cork, Ireland

Postby Quovodis » 25 Jul 2006 16:43

rule of thumb, if you can do it using the vlc application using the MRL specific options (see vlc.exe --longhelp), then you should be able to do it with ActiveX:

the following options of interest to you are:

--audio-language <string> Audio language
--sub-language <string> Subtitle language


so, if you use them programatically, you should be able to achieve what you are looking for

for more info: http://wiki.videolan.org/index.php/ActiveX/HTML

Spellcoder
Blank Cone
Blank Cone
Posts: 57
Joined: 19 Apr 2006 12:21
Location: Hengelo // The Netherlands
Contact:

Postby Spellcoder » 26 Jul 2006 16:56

Sorry I forgot to mention I wanted to use the Mozilla plugin (so my webapplication can work on both Windows and Mac).
I havn't tested it but I guess something like this would work in IE+VLC or Firefox with the ActiveX-support plugin+VLC (ouch...):

player = document.getElementById('vlc');
player.addTarget("dvdread:///dev/rdisk1@1:1-",":audio-track=0",2,0);

However I need a solution for the Mozilla plugin. So my hopes are now on 0.8.6 :)


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 37 guests