Page 1 of 1

How to select the audio track with Mozilla Plugin?

Posted: 01 Sep 2006 16:21
by t_rebell
Hi!
I want to offer a mpeg file with two languages via http-streaming.

With the ActiveX Control it is no problem to select the audiotrack by

Code: Select all

var options = [":audio-track=<?echo $_GET["track"];?>"]; document.vlc.addTarget(targetURL, options, 2, 0)
But how can I do this with the Mozilla Plugin?
Is it possible via one of these functions?

Code: Select all

set_int_variable(var_name, value) set_bool_variable(var_name, value) set_str_variable(var_name, value)
It would be great if somebody could give me a hint or a code example. :wink:

Thx
Sebastian

Posted: 05 Sep 2006 15:06
by Quovodis
you can't in 0.8.5, you will be in 0.8.6

Posted: 30 Oct 2006 14:38
by zvona
For Mozilla I've been using separate server-side file, which creates m3u playlist file to receive the stream as "audio/x-mpegurl". This file (or script) accepts:

#EXTVLCOPT:audio-track=<?echo $_GET["track"];?>

and works just fine. That file is normally referred with VLC.addItem();.