def autoPlay(): pl = Addon.get_playlist(xbmc.PLAYLIST_VIDEO) xbmc.Player().play(pl) #try and give it time to buffer enough of stream xbmc.sleep(5000) if xbmc.getCondVisibility('player.paused') == 1: xbmc.Player().pause()
def autoPlay(): try: pl = Addon.get_playlist(xbmc.PLAYLIST_VIDEO) xbmc.Player().play(pl) #try and give it time to buffer enough of stream xbmc.sleep(5000) if xbmc.getCondVisibility('player.paused') == 1: xbmc.Player().pause() except Exception, e: print str(e)