Exemple #1
0
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()
Exemple #2
0
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)