karlheyes / icecast-kh

KH branch of icecast
GNU General Public License v2.0
298 stars 106 forks source link

iOS 11 falls too far behind on source fallback #289

Open idcmp opened 4 years ago

idcmp commented 4 years ago

I have two mounts /main and /chopin. Main has Chopin as a fallback mount (With fallback-override 1). When /main has no source, listeners automatically get Chopin.

I'm using ezstream connected to /chopin reencoding some classical music mp3 to 48kHz (decode via madplay, encode via lame).

I'm connecting to the /main mount as a source using Mixxx. Its encoding is also set to 48kHz - both the Chopin mount and my Mixxx are streamed using Mono.

People on iPhones were complaining about being disconnected from the /main stream (when Mixxx was attached) after 20-30 seconds, so I tried to reproduce it.

Using the "Simulator" that ships with XCode for macOS, I have an "iPhone 8" running iOS 11.3. I've launched Safari in it and connected to the "/main" stream directly ( http://somesort:8000/main ).

If the iPhone is listening to Chopin and I connect with Mixxx, the client is moved over to /main but is also immediately disconnected:

INFO source/source_queue_advance Client 27 (my.ip.addr.ess) has fallen too far behind (7699) on /main, removing