[MPlayer-users] Multiple Viewing Windows on Different Monitors

Kevin DeKorte kdekorte at gmail.com
Tue May 20 22:40:36 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ulrich Lukas wrote:
| Hi,
|
|
| if you want to simultaneously control (play/stop/pause/rewind etc.) both
| mplayer instances, this could be done by using the slave input mode and
| feeding to both instances the same commandos at the same time.
|
| Maybe there is a shellscript guru on this mailinglist who knows how to
| do this with a small script. (I would use a small C program)


gnome-mplayer, a gui for mplayer, has a dbus interface that allows you
to control all running instances, groups or single instances based on
the specified control id.

that can all be done via shell scripting using dbus-send.

Something like this
To send command to ALL running gnome-mplayers (multihead applications)
dbus-send  --type=signal / com.gnome.mplayer.Play
string:'http://www.hotmail.com/playfile.asx'


When windowid is not specified
dbus-send  --type=signal /pid/[pid] com.gnome.mplayer.Play
string:'http://www.hotmail.com/playfile.asx'


When windowid is specified
dbus-send  --type=signal /window/[windowid] com.gnome.mplayer.Play
string:'http://www.hotmail.com/playfile.asx'

When controlid is specified
dbus-send  --type=signal /control/[controlid] com.gnome.mplayer.Play
string:'http://www.hotmail.com/playfile.asx'


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.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFIMzdE6w2kMH0L1dERAoxmAJ9GchNZE6N3CL1Qs7igv0Kh+hwW2gCfcY1D
GY2bnNBF9Xu+9Z+/vWapjjk=
=TRMI
-----END PGP SIGNATURE-----



More information about the MPlayer-users mailing list