Bug Playing one Video endless on startup doesn't work
#1
Following problem appears in OpenElec 5.0.8 as well as in 5.95.3 with Pi2, I don't know whether it's the same on PC:
I want to play one video in a loop on startup of raspberry 2.
So, I copied the movie to /storage/videos
Then I switched to the video-section, there I put it in a playlist, clicked "Repeat: all" and saved it.
Now calling the playlist the movie starts and runs endless in a loop. So far so good.

Now I swithched to System - Settings - Appearance - Settings and clicked in General Settings the "Enable playlist at startup"-button, put in the path and name of the playlist and restartet the system. Now the movie started to play as expected, but doesn't loop. After playing it once the system falls back to the main window.
Reply
#2
Don't know if this will work for a Pi as well, but it's worth to try...

Create a file called: autoexec.py

Put the following in:

Code:
import xbmc
xbmc.executebuiltin('PlayMedia(path/to/playlist/file.m3u)')
xbmc.executebuiltin('PlayerControll(repeat)')

Make the file executabe...

chmod +x autoexec.py

and copy it to your userdatafolder...

/storage/.kodi/userdata

It might be, that you have to change 'repeat' to 'repeatall'....just test.

Hope it will help Wink
Reply

Logout Mark Read Team Forum Stats Members Help
Playing one Video endless on startup doesn't work0