xbmc.Player().play() returns True or False?
#1
Hi,

I am writing a script that needs to try to play a file and if it doesn't succeed, i need it to return false. I could check extensions but being that xbmc is always having new media files support etc, this would be a bad way of doing it.

So i was hoping some kind xbmc dev could implement some sort of Return for the xbmc.Player().play() command to python.

So i can simply do:

if xbmc.Player().play(MYFILE):
print "the file played"
else:
print "the file did not play"

or something similar.

Thanks in advance.

Cheers:
Stanley87
Reply
#2
Have you tried isPlaying() yet?
Reply

Logout Mark Read Team Forum Stats Members Help
xbmc.Player().play() returns True or False?0