Hello,
we want to automatically play video loop of a directory at startup to make information panel.
Directory (/home/osmc/Movies)
Initially in raspbnc, I created an autoexec script in /home/pi/.xbmc/userdata/autoexec.py
code:
import xbmc
xbmc.executebuiltin(‘XBMC.PlayMedia(/home/pi/)’)
xbmc.executebuiltin(‘xbmc.PlayerControl(repeatall)’)
xbmc.executebuiltin(“Action(Fullscreen)”)
I try the same script on OSMC, it does not work in /home/osmc/.kodi/ userdata/autoexec.py:
code:
import xbmc
xbmc.executebuiltin(‘XBMC.PlayMedia(/home/osmc/Movies/)’)
xbmc.executebuiltin(‘xbmc.PlayerControl(repeatall)’)
xbmc.executebuiltin(“Action(Fullscreen)”)
I try to change the following way by:
code:
xbmc-send -a "PlayMedia(/home/osmc/Movies/)’
the script works when you do try it with ./autoexec.py order.
But at startup, it does not work? error in the script.
I wonder if anyone has a solution?
Thank you in advance for your help.