Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor
New user
uploaded files
|
(Mplayer)-> (Parent)->mplayer to local display |
submited by Russell Tue 28 Oct 08 |
simple trick to make mplayer play a video on the local display even if you are logged in remotly ( or if you are a script)
DISPLAY=:0 mplayer test.avi
Now for this to work you have to previously allowed remote conections the the xserver ( the computers display) to make this work I added this command to my startup scripts (how to do this depends on which desktop you use)
xhost +
That lets any computer that wishes to connecto the xserver, because the computer I use to display video on the TV is behind a lan firewall I don't worry about it, but you should just know that is what this does. There is probably a more secure way to do this, limiting connections to only the localhost (127.0.0.1 ) but I havn't needed to do this.
I found this here
|
Add comment or question...:
|