Android Adding delay before execting commands in autostart
#1
Hi, I'm quite a newbee in programming but did some research in how to autostart an slideshow containing photos and videos.

At this moment I've managed it by using autostart.py containing the following commands:

==
import xbmc

xbmc.executebuiltin("ActivateWindow(Pictures,//mnt//external_sd//<directory>)")
xbmc.executebuiltin("Action(Play)")

=
The question is the following:
  • Is there a way to add a wait statement before executing both statements in autostart.py?
  • this because, when I'm using a large amount of photos 4000+ and videos 100+, xbmc has to build his index and then this disturbes the execution of the commands
  • I've tried autostart with a few photos and videos and then it runs oke.

Second question:
Is there a way, to play randomly photos and videos in the folder I'm pointing to?

Third question:
Is it possible that there is a limit of repeating the content of the library?
I've noticed that when I run xbmc, cycling thru a few photos and videos, it stops after approx. 3 hours.

Hopefully is somebody willing me to help out, this will be very appreciated!

Tia Johnnie
Reply

Logout Mark Read Team Forum Stats Members Help
Adding delay before execting commands in autostart0