Posts: 7
Joined: Feb 2013
Reputation:
0
2013-02-22, 11:37
(This post was last modified: 2013-11-18, 10:28 by Kib.)
I have installed raspbmc XBMC on Raspberry Pi, and try several skins. There is an option in the skin setting menu to run a playlist at startup. However, there is another setting called the "startup window" and I have to select "Home Window" in order for the movie to appear automatically when powered up. But the home menu is always there when the background is playing the movie. Is there a way to go directly to play video without showing the home menu?
Or, is there a simple way to just play and loop a video file automatically at power up, without showing any menu, etc.?
I know there must be many ways to do this simple things, but as I am a beginner, I just want the most simple way to make this work.
Posts: 7
Joined: Feb 2013
Reputation:
0
Oh, I found the answer here in this forum:
Just put a file name "autoexec.py" in the "/home/pi/.xbmc/userdata/" directory. The file contain this code:
import xbmc
xbmc.executebuiltin( "PlayMedia(/home/pi/.xbmc/userdata/playlists/video/All.m3u)" )
xbmc.executebuiltin( "PlayerControl(repeat)" )
Posts: 1
Joined: Aug 2013
Reputation:
0
Thanks for this. This worked for me, except it appears that audio does not work when the autoexec runs. Is there some other command that should be ran to enable audio?
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Team-Kodi Member
Posts: 19,982
Is your volume turned down by default?
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 6,339
Joined: Jul 2010
Reputation:
116
artrafael
Team-XBMC Forum Moderator
Posts: 6,339
2013-08-20, 03:37
(This post was last modified: 2013-08-20, 03:40 by artrafael.)
Try launching a playlist that plays your Video.MP4 file instead of the file itself, as was done by the OP in post #2 above.
Posts: 3
Joined: Mar 2013
Reputation:
0
2013-08-21, 03:43
(This post was last modified: 2013-08-21, 03:44 by zagonep.)
Worked! interesting, thank you very much!!!!
Posts: 2
Joined: Oct 2013
Reputation:
0
Hi
What would the path be if i am running my video from a USB?
I just need my raspberry pi to power up and run the video i tell it to and loop infinitely.
Thanks!
Posts: 19,982
Joined: May 2009
Reputation:
451
nickr
Team-Kodi Member
Posts: 19,982
The path will be to whereever you put the playlist file!
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Posts: 1
Joined: Nov 2013
Reputation:
0
what would be the code if i want to play all content of my movie folder automatically from startup and repeatall.
Thanks.