how can i switch audio to mono using activex?

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

how can i switch audio to mono using activex?

Postby BorPas » 24 Oct 2006 08:05

subj
i need the same result as menu command "Audio - Audio Channels - Left(Right)" or "Audio - Audio Device - Mono"
pleeeeeeaaaaasssssseeee help me!

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 07 Nov 2006 21:14

^^^ up ^^^

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 30 Nov 2006 06:32

^^^ up ^^^

Yapadavaro
Blank Cone
Blank Cone
Posts: 22
Joined: 09 Nov 2006 09:49
Location: Annecy, France

Postby Yapadavaro » 30 Nov 2006 08:44

Hi BorPas

which OS ?
which vlc version ?
which Internet browser ?

Yap.
vlc v0.8.5 / ActiveX under IE 6 sp2

Yapadavaro
Blank Cone
Blank Cone
Posts: 22
Joined: 09 Nov 2006 09:49
Location: Annecy, France

Postby Yapadavaro » 30 Nov 2006 09:24

Hi BorPas

which OS ?
which vlc version ?
which Internet browser ?

Yap.
vlc v0.8.5 / ActiveX under IE 6 sp2

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 30 Nov 2006 15:14

well, it doesn't matter for ActiveX :-)
OS: WinXPsp2
Ver: VLC 0.8.5
Where: Delphi/C#

Yapadavaro
Blank Cone
Blank Cone
Posts: 22
Joined: 09 Nov 2006 09:49
Location: Annecy, France

Postby Yapadavaro » 30 Nov 2006 16:38

While launching your content, try to add :mono in the array.

var _options = new Array(":mono");
vlc.addTarget(strToLoad, _options, 12, -666);

Yap.
vlc v0.8.5 / ActiveX under IE 6 sp2

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 30 Nov 2006 18:39

While launching your content, try to add :mono in the array.

var _options = new Array(":mono");
vlc.addTarget(strToLoad, _options, 12, -666);

Yap.
and is it possible to vlc.setvariable something before launching instead?

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 07 Dec 2006 13:38

While launching your content, try to add :mono in the array.

var _options = new Array(":mono");
vlc.addTarget(strToLoad, _options, 12, -666);

Yap.
no effect :-(

Yapadavaro
Blank Cone
Blank Cone
Posts: 22
Joined: 09 Nov 2006 09:49
Location: Annecy, France

Postby Yapadavaro » 07 Dec 2006 18:41

Ok, try that :

Audio filter for stereo to mono conversion
--sout-mono-channel {0 (Left), 1 (Right), 2 (Left rear), 4 (Right rear), 8 (Center), 5 (Left front)}
Select channel to keep
This option silcences all other channels
except the selected channel. Choose one from
(0=left, 1=right 2=rear left, 3=rear right,
4=center, 5=left front)

So, if that works with the activex (not sure),

Code: Select all

var _options = new Array(":sout-mono-channel=0");
should keep the left channel.

Yap.
vlc v0.8.5 / ActiveX under IE 6 sp2

Yapadavaro
Blank Cone
Blank Cone
Posts: 22
Joined: 09 Nov 2006 09:49
Location: Annecy, France

Postby Yapadavaro » 12 Dec 2006 17:58

Hi, have a look on this.

https://trac.videolan.org/vlc/changeset/18383

Yap.
vlc v0.8.5 / ActiveX under IE 6 sp2

BorPas
Blank Cone
Blank Cone
Posts: 15
Joined: 25 Aug 2006 12:38

Postby BorPas » 19 Dec 2006 22:48

var _options = new Array(":sout-mono-channel=0");
this works :-) but how to return stereo -1 didn't work
may be you know what "conf:..." variable can i set before playback to get the same result as

Code: Select all

VLC_var_Set(p_aout,'audio-device',1);
gives while playback
?


Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 2 guests