Page 1 of 1

Selecting DVD language from Mozilla plugin

Posted: 18 Jul 2006 15:39
by Spellcoder
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?

Posted: 25 Jul 2006 16:43
by Quovodis
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

Posted: 26 Jul 2006 16:56
by Spellcoder
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 :)