correct way to stop .player
#1
i dont want to list the item and make that playable as for the way the plugin is written it cant be done

i have this but it just buggers up

Code:
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(url)
if xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).stop():
        xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).stop()


if i just have this it will loop
Code:
xbmc.Player(xbmc.PLAYER_CORE_DVDPLAYER).play(url)
Reply
#2
Code:
the_player = xbmc.Player(xbmc.PLAYER_CORE_AUTO)
the_player.play(url)
while the_player.isplaying():
    xbmc.sleep(250)
the_player.stop()

That may work, but it depends on why the player is looping
Reply

Logout Mark Read Team Forum Stats Members Help
correct way to stop .player0