[SOLVED] Python: How to play just ONE random video from a folder?
#1
I have a folder with some video and I would like to play just one random video before continue my python script.

Now I'm using

Code:
xbmc.executebuiltin('xbmc.PlayMedia("/path_to_video/","isdir")')
xbmc.executebuiltin('xbmc.PlayerControl(random)')
xbmc.executebuiltin("Action(Fullscreen)")

But in that way the script plays randomly any video in the folder. How can I trigger the end of the video on my script before do the next action?
Another approach could be to create a python list and then use PlayMedia with 'list[position]', but xbmc.executebuiltin doesn't seems to like much normal placeholders...

Thanks.

F.
Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average


Messages In This Thread
[SOLVED] Python: How to play just ONE random video from a folder? - by effe - 2015-09-02, 23:34


Logout Mark Read Team Forum Stats Members Help
[SOLVED] Python: How to play just ONE random video from a folder?00
This forum uses Lukasz Tkacz MyBB addons.