How to select the audio track with Mozilla Plugin?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
t_rebell
New Cone
New Cone
Posts: 1
Joined: 01 Sep 2006 16:12

How to select the audio track with Mozilla Plugin?

Postby t_rebell » 01 Sep 2006 16:21

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

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

Postby Quovodis » 05 Sep 2006 15:06

you can't in 0.8.5, you will be in 0.8.6

zvona
Blank Cone
Blank Cone
Posts: 11
Joined: 30 Oct 2006 10:32
Location: Helsinki

Postby zvona » 30 Oct 2006 14:38

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();.
Zvona


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 23 guests