Start Radio Station xy via JSON

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Noddell Offline
Junior Member
Posts: 1
Joined: Apr 2017
Reputation: 0
Lightbulb  Start Radio Station xy via JSON
Post: #1
Hi,

i want to read out all top radio stations via JSON (1), show them in an own GUI List (Windows App) and start/play selected station via JSON (2).

(1) This step works fine. I read alle station info by command Files.GetDirectory with "plugin://plugin.audio.radio_de/stations/top/" --> recieve station list with path info: "plugin.audio.radio_de/station/1382 for example.

(2) But i don't get it how to playselected station.

I tried:

Player.Open with "plugin.audio.radio_de/station/1382" -> no success
Addons.ExecuteAddon with "plugin.audio.radio_de/station/1382" -> no success

i found an built-in function in kodi PlayMedia... but i have no clue how to trigger this via JSON...

Some help would be great!!

Thx a lot!

Noddell
find quote