[MPlayer-users] Two intances of video like a mirror

Krzysztof Duchnowski amidk75 at gmail.com
Thu Jun 4 18:23:54 CEST 2009


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

#:~$ 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"

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

Thought, I don't know how to possition embeded gnome-mplayer window 
inside the host window.

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list