Kodi Community Forum

Full Version: Player.Stop on live TV?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

I'm trying to simply stop the playback of livetv using json-rpc.

luup.inet.wget("http://192.168.0.202:8080/jsonrpc?request={%22jsonrpc%22:%222.0%22,%22method%22:%22Player.Stop%22,%22params%22:{%22playerid%22:0},%22id%22:1}")

This seems to work for audio playback ; but I think it's ignored for 'stopping' live tv.

What call should I be using or is there a different/better method?

thanks
OK!
Can answer my own question!

player.id! it would seem '0' is audio and '1' is video ; is that correct?
Hmmmm, I googled lots of stuff and never came across that little important snippet - though I am sure someone will direct me to the definition!!
and before issuing the Player.Stop you can know the current playerid/s by using the command Player.GetActivePlayers http://wiki.xbmc.org/index.php?title=JSO...ivePlayers
Thanks! :-)