philippe_44 wrote: > BTW, if it can be of any help as a base, I've done a HLS handler in my > Pluzz plugin. The way I handle the m3u8 is hacky and very likely not > re-usable (I know that the server I'm using have all the fragments, so I > don't need to re-open a socket for each of them) but I guess the part > that might matter is the MPEG stream decoder and audio extractor. It is > not very 'elaborated' due to my level in Perl, but it works.
Triode's HLS handler is all in Perl as well, and works pretty well. It opens a new HTTP connection for every fragment - and the fragments do ending up jumping around multiple servers. Doing it this way does appear put a bit of strain on the DNS system - and some problems have been noticed by a few people. I think the apple and android HLS implementations use a small number (3 I've heard mentioned) of semi-persistent HTTP connections which are maintained for several fragment fetches, which may be better. Maintaining a single connection indefinitely for the whole stream (like I'm assuming you do) has different issues - I think someone said that minimserver does this and it has some problems. As there are a few other sources of HLS streaming coming out of the woodwork, it would make sense to have a common protocol handler for all of these. As bpa says, the BBC has now started streaming in DASH, and that looks likely to be preferred format before long. I had already had a dabble in C for my own HLS and then DASH decoders before Triode briefly came out of retirement with his Perl HLS version, and I haven't bothered looking any further. Now that the BBC are actually putting out DASH streams alongside the HLS streams, I like to have a go at a DASH handler using Triodes HLS perl as a starting point, when I get time, unless someone else gets there first... ------------------------------------------------------------------------ utgg's Profile: http://forums.slimdevices.com/member.php?userid=40900 View this thread: http://forums.slimdevices.com/showthread.php?t=103312 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
