[MPlayer-users] Two intances of video like a mirror
Kevin DeKorte
kdekorte at gmail.com
Thu Jun 4 18:36:30 CEST 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 06/04/2009 10:23 AM, Krzysztof Duchnowski wrote:
> Jairo Sanches pisze:
>> Cool, It's working. One doubt: I'm developer and I'm trying to
>> construct a player. I was using slave mode to control the mplayer.
>> But, your tip is using gnome-mplayer (gui) and not pure mplayer (by
>> slave mode or command line). The question is, is there a way to work
>> with gnome-mplayer (just to play the two instances), and still
>> working with slave mode commands?
>
> You need some window to embed "gnome-mplayer" in it, check its ID by
> "xwininfo", run "gnome-mplayer" with this window ID and then control it
> by DBUS - example:
> xwininfo gave me "0x4804d5b" as 1st additional "gnome-termianl" window
> ID and "0x4805bd2" as 2nd
>
Just a note that the windowid is optional if you don't want to embed it.
> #:~$ gnome-mplayer --window=0x4804d5b --controlid=908 --width=320
> --height=240 &
> #:~$ gnome-mplayer --window=0x4805bd2 --controlid=909 --width=320
> --height=240 &
> #:~$ dbus-send --type=signal /control/909 com.gnome.mplayer.Volume double:0
> #:~$ dbus-send --type=signal / com.gnome.mplayer.Open
> string:"/home/dk75/Film/[J4V] YUI - CHE.R.R.Y.avi"
>
The control ids can be the same or unique. I just fixed a bug in SVN
where --volume=0 on the commandline didn't work, it should work fine now.
> result:
> http://www.fileden.com/files/2006/12/11/497871/misc/ubuntu/mplayer/gnome-mplayer-dbus.png
>
>
> You could easily take out controls by:
> dbus-send --type=signal /control/908 com.gnome.mplayer.SetShowControls
> boolean:false
> dbus-send --type=signal /control/909 com.gnome.mplayer.SetShowControls
> boolean:false
>
You can avoid the SetShowControls command with, --showcontrols=0 on the
gnome-mplayer command line.
> Thought, I don't know how to possition embeded gnome-mplayer window
> inside the host window.
>
You can't, although I can add that if needed.
Kevin
- --
Get my public GnuPG key from
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x7D0BD5D1
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/
iEYEARECAAYFAkon+A0ACgkQ6w2kMH0L1dEhTACdGCrGTWt1ZJAXddZ6WG49fh4K
/dAAn27ziShnQ+rVFLd0Ccv1gbKePrxb
=poF+
-----END PGP SIGNATURE-----
More information about the MPlayer-users
mailing list