Autoplay videos from network on startup
#1
Hi all, basically we use Pi's in the school as a Digital Display system. The staff put the files in a shared folder on the network, which the Pi uses as a source and plays on an endless loop. Occasionally we'll come in some mornings and the Pi will be on the home screen of OpenELEC. We're not sure if it's restarting completely or if there's an error box which disappears by the time we see it. Is it possible to run the videos from the networked directory on startup? This is the code I've tried using in autoexec.py but got no luck:

import xbmc
xbmc.executebuiltin( "PlayMedia(smb://currfs-ctc1/ctc/Digital Displays/Humanities/TV Presentation.mp4)" )

When the media source is local e.g:
xbmc.executebuiltin( "PlayMedia(storage/videos/Test 1.mp4)" )
it successfully loads the video after start up... I just can't get it do the same for any videos on the network. Is it just not possible to do or am I missing something?

Thanks
Reply
#2
Just try to setup a playlist containing only this video and play that at startup in a loop. The "start playlist at startup"-option is in the skin settings
Reply
#3
Did you try to activate "Wait for network" in OpenELEC settings?
Reply

Logout Mark Read Team Forum Stats Members Help
Autoplay videos from network on startup0