2015-06-05, 15:57
Hi all,
I have recently installed Xbian on my RPi B+.
I want it to play my videos (in a folder) automatically after boot in an infinite loop.
I found a solution here , which suggests the following code:
I saved this code as :
However, after reboot, the system got frozen and now it never boots.
After I plug the power cord, nothing comes at all! Just a black screen!!
Here are my questions:
1. Is this code correct?
2. Have I saved this code (autoexec.py) in the correct location?
3. Are there any other alternative solutions for "videos play at startup on infinite loop"?
4. Now that my system is frozen, how can I access the contents of my SD card?
Thanks for your time and support.
I have recently installed Xbian on my RPi B+.
I want it to play my videos (in a folder) automatically after boot in an infinite loop.
I found a solution here , which suggests the following code:
Code:
# Autoplay videodirectory
import os, xbmc
# set path to dir you want to play
path="E:\\videos"
dirList=os.listdir(path)
videoList = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
videoList.clear()
for fname in dirList:
videoList.add(path + "\\" + fname)
# shuffle playlist
videoList.shuffle()
# put playlist on repeat
xbmc.executebuiltin("xbmc.playercontrol(RepeatAll)")
# play playlist
xbmc.Player().play(videoList)
I saved this code as :
Code:
/home/xbian/.kodi/userdata/autoexec.py
However, after reboot, the system got frozen and now it never boots.
After I plug the power cord, nothing comes at all! Just a black screen!!
Here are my questions:
1. Is this code correct?
2. Have I saved this code (autoexec.py) in the correct location?
3. Are there any other alternative solutions for "videos play at startup on infinite loop"?
4. Now that my system is frozen, how can I access the contents of my SD card?
Thanks for your time and support.