2015-09-02, 23:34
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
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.
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.