Play from Kodi, like here:
LibreELEC.tv/default.py at master · LibreELEC/LibreELEC.tv · GitHub
Hey awiouy! Thanks for your input!
Yeah that's the point I don't quite understand I'm not really familiar with python...
I had hoped that I could just write a STRM or M3U file that Kodi understands, with the RTP URL and maybe a hint on the file format in it. I tried going this route but Kodi complains that it cannot play the file. I guess it needs more information on the file format. I don't know how to provide that.
On line 80 it looks like you define the item to be played. I understand the 'rtp://127.0.0.1:{port}' part, but how is .format(port=PORT defined?
Is there a URL that I can pass to Kodi that basically says rtp://<loopback>:<port>.<format> or similar? If so, what would the format be? In your code I see a reference to mp3 but I thought pulseaudio would just stream PCM data via RTP?
If it's not feasible to start playback via a URL, M3U or STRM file I'll have to learn some Python I guess.