jSON TuneIn
#1
Hi All,
Unsure if this is in the wrong area or not, if so can a mod please move.

I want to use my OSMC/Kodi instance to stream a TuneIn radio station around my house. I am wondering if anyone can help me deem the right jSON to post as to be honest I am struggling.
I have added my TuneIn station to a PlayList which I can load at http://10.0.0.44/#playlist/1


If I use Firefox Firebug I can see the following when I hit play
{"jsonrpc":"2.0","method":"Player.PlayPause","id":1,"params":[0,"toggle"]}

When I issue this code I get the same exact response as the browser

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 45
Content-Type: application/json
Date: Sun, 30 Aug 2015 10:40:12 GMT

{"id":1,"jsonrpc":"2.0","result":{"speed":0}}


Maybe I am going about this the wrong way but all I want to do is call up a TuneIn radio station and play it via a HTTP request.

Thanks
Shane Baldacchino
Reply
#2
If you're just trying to have the player play that url, then try:
Code:
{"jsonrpc":"2.0","method":"Player.Open","id":1,"params": {"file": "http://10.0.0.44/#playlist/1"}}
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#3
Hello el_Paraguayo,
Thanks for the code snippet. When I send

{"jsonrpc":"2.0","method":"Player.Open","id":1,"params": {"file": "http://10.0.0.44/#playlist/1"}}

I get

{"error":{"code":-32602,"data":{"message":"Too many parameters","method":"Player.Open"},"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}

Any suggestions.

Thanks
Shane Balacchino
Reply
#4
Oops. My fault.

Try:
Code:
{"jsonrpc":"2.0","method":"Player.Open","id":1,"params": {"item": {"file": "http://10.0.0.44/#playlist/1"}}}
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply
#5
Thank you for your reply, getting closer. If I issue

{"jsonrpc":"2.0","method":"Player.Open","id":1,"params": {"item": {"file": "http://10.0.0.44/#playlist/1"}}}

I now get

{"id":1,"jsonrpc":"2.0","result":"OK"}

Which is great but I dont get any audio. I have tried issuing a GET on the playlist first to no avail.
If I click on the play list and hit play it works.

Any more tips or documentation on this?

Ultimately I am trying to play a TuneIn stream so if there is a better way of doing this I am all ears.

Thanks
Shane Baldacchino
Reply
#6
Well I have no idea what TuneIn is or how it works so that will make things a bit more problematic for me! I had assumed that the address you gave me was the address for the stream that you were trying to play but that would appear not to be the case.

Have you tried the TuneIn plugin? http://forum.kodi.tv/showthread.php?tid=...pid1971523
BBC Live Football Scores: Football scores notifications service.
script.squeezeinfo: shows what's playing on your Logitech Media Server
Reply

Logout Mark Read Team Forum Stats Members Help
jSON TuneIn0