HLS streaming on Kodi
#1
HI, I'm very new to developing (strictly privet...)  addons for Kodi. To be honest my abilities as a programmer are extremely basic but I can do basic things like create my personal addon in order to see some streams I like.
Now my problem is that I try to find a way to see HLS stream.
I see that this stream consist of many very small video files with a few (1-2 seconds) duration.
With the knowledge I have right now I'm able to get a successful reproduction for one chunk but I can't have a continuous stream .
I'm sure that this problem is already solved but I don't know where to start in order to find a way to ensure continuous play of HLS streams.
Any idea where to start? Any help with some sample code?
Thank you in advance.
Reply
#2
Anyone? I can't believe that no one know something about this.....
Reply
#3
you make strm file with url to stream, and play it
its on wiki.
Reply
#4
Are you sure that this is the wayHuh?
I spend more than 3 hours testing and searching around but without any success...
I'm not even able to stream static video and audio files using this way (although i can do that with my basic plugin)

I read again and again the article on wiki, I also check 10ths of other sources.
I have for example this stream from a radio station
http://br-brklassik-live.cast.addradio.d...stream.mp3

I put the link on file (without anything else), save the file as TestFile.strm i open Kodi, browse to my video folder, i see the file, click and get a "Can't find a net item to play"...
Reply
#5
in general that's how you do it. however, you are very unlucky with your examples; ffmpeg doesn't like the radio stream .

for hls you pass the m3u8 url. do not look into the file, just pass the m3u8 url. you may also wanna have a look at https://github.com/peak3d/inputstream.adaptive
Reply
#6
I also try
rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov
https://www.kosmosharas.gr/video/Party-a...rnival.mp4
http://mdstrm.com/live-stream-playlist-v...en-vivo%2F

All the above streams and many more (more than 50 streams...) which i try, I'm able to stream them with my very basic plugin, but unable to stream them via an .strm file...

In any case i will test tomorrow what you suggest and i will report.
Reply
#7
try xbmc.Player().play(strm_file)
or setresolveurl thing.
Reply
#8
Thank you for the answers
Finally I manage to stream from my basic addon (nothing more than the "2nd Add-On" example available on the Kodi project site).
The key to solve the problem was what spiff mention: "for hls you pass the m3u8 url"
Maybe I was trying to stream the .ts files and this was the problem.
Nothing to do with .strm files or anything else...

Now unfortunately, I realize that the most interesting channels use "session" so I can add the .m3u8 but this stream last only for a certain time, it's not a "stable" stream.

Is there a way to bypass this limitation?
Where I have to start?
Reply

Logout Mark Read Team Forum Stats Members Help
HLS streaming on Kodi0