Want to automatically boot media player.


Forum: Multimedia
Topic: Want to automatically boot media player.
started by: steveo21

Posted by steveo21 on April 07 2006,14:43
Hi guys

Im new to DSL, just wondering how can i automatically boot a media player, for example "M Player" as soon as DSL loads?

And if so can it automatically play a media file e.g mpeg, wav.?

Thanks for any help
Steven

Posted by mikshaw on April 07 2006,15:33
put something like this in .xinitrc, just before the windowmanager:
mplayer /path/to/filename.mpg &

Since it will start to load before the window manager does, it might be better to put it in a script with a pause, though:
Code Sample
#!/bin/sh
sleep 3
exec mplayer /path/to/filename.mpg
and start the script from xinitrc, with "&" at the end of the script command.

Posted by newOldUser on April 08 2006,13:54
You might be able to  use the built in mpg321 player. I like to have this run at startup. I put it in the .xinitrc file in the /home/dsl directory:

mpg321 -q -g 50 -o oss ~/torvalds-says-linux.mp3 &

My favorite mp3 to put on new linux users machines and have played at startup is from this site:  < Linus pronounces Linux >

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.