Support for audio pan

31 views
Skip to first unread message

Snarf0

unread,
Apr 19, 2012, 1:50:33 AM4/19/12
to gecko-mediaplayer
Hi All,

Using the gecko-mediaplayer plugin (0.9.9.2) on Ubuntu 10.10, I'm
trying to pan audio via javascript. Is there any way to do that ?

Using the command line, for hearing only one channel, works fine:
"mplayer <movie-file> –af pan=2:0:1:0:0"

Best Regards,
Snarf0

Kevin DeKorte

unread,
Apr 19, 2012, 9:01:24 AM4/19/12
to gecko-me...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/18/2012 11:50 PM, Snarf0 wrote:
> Hi All,
>
> Using the gecko-mediaplayer plugin (0.9.9.2) on Ubuntu 10.10, I'm
> trying to pan audio via javascript. Is there any way to do that ?
>
> Using the command line, for hearing only one channel, works fine:

> "mplayer <movie-file> �af pan=2:0:1:0:0"
>
> Best Regards, Snarf0
>

I believe that you can add

af=pan=2:0:1:0:0

to ~/.mplayer/config under the [gnome-mplayer] section.

But as far as controlling it via javsscript, I don't believe you can
do that including the current version can do that (1.0.6). But I would
not mind adding that function, especially if there is a standard for
doing this.

Kevin

- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+QDKMACgkQ6w2kMH0L1dHqggCdGzQcWJ1eW7bt/l6/rd6QWhxW
9xEAni8+8n5kFjpjRS/7bZvMuOYMl0Fa
=w7aj
-----END PGP SIGNATURE-----

Snarf0

unread,
Apr 19, 2012, 10:48:01 AM4/19/12
to gecko-me...@googlegroups.com
Hi Kevin,
 
Thanks for the quick response!
I'll have a look at your proposal.
 
Since I'm porting my application from windows to linux I already use the WMP way of working in windows.
My javascript  transparantly passes parameters in a pair "name/value" to the WMP like below:
 
               str += '<OBJECT ID="Player" width="100%" height="100%"'
               str += ' CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">'
               str += '    <PARAM name="balance" Value = "-100">'
               str += '   <PARAM name="volume" Value = "'+AudioVolume+'">' 
 
Is this an idea?
 
Cheers,
Snarf0
Reply all
Reply to author
Forward
0 new messages