(04-03-2015 21:37)simoncn Wrote: (04-03-2015 21:22)jack_c85 Wrote: Fantastic... I'll give it a go (I'm away tonight but back tomorrow).
Because I'm a bit of a geek, are you able to explain what it was.
A couple of things:
1) Even if the Sonos has a lot of data in its buffer, it has an activity timeout on its incoming connection and if no data is received for a certain amount of time (approx 10 seconds), it gives up and closes the connection. For a "normal" radio stream, this is fine because the data arrives continuously in real time. For an HLS stream, the data arrives in bursts with gaps in between, which can cause a timeout if a gap is longer than usual. To work around this, MinimStreamer now holds back a small amount of stream data and "drip feeds" it to the Sonos at regular intervals to cover any gaps.
2) Some of the BBC streams (those with 'llnw' in the URL) seem to have issues with new connections hanging occasionally. The HLS protocol requires the client to make a new connection every few seconds and occasionally this will hang. I have added some timeout and retry logic, which is a partial but not complete solution. (I've seen hangs of nearly 30 seconds!) Switching to the 'ak' stream URLs seems to have solved this.
Interesting... thanks so much again. I'm currently using the llnw streams so will change it to ak after updating.
Will report back over the next couple of days.