ember-stereo icon indicating copy to clipboard operation
ember-stereo copied to clipboard

Android Chrome won't play HLS/m3u8 files

Open jkeen opened this issue 3 years ago • 1 comments

Android Chrome audio.canPlayType('application/vnd.apple.mpegurl') returns 'maybe' for the native audio connection, but stalls out when actually trying to play it.

We might want to sort the strategy order with the maybes at the end, even if that maybe is Native Audio (which is usually preferred). Currently you can work around this issue by specifying the HLS for the connection to use.

jkeen avatar Oct 14 '22 15:10 jkeen

A complicating factor is that currently despite being able to specify useConnections: ['HLS', 'NativeAudio'] for the connections, we reorder connections to prioritize native audio for mobile trying it first.

The best solution here would be to move on to trying the next possible connection on a play failure, not just a load failure. Next best thing would be to remove that reordering for mobile.

Only current workaround is specifying useConnections: ['HLS'] for audio you know is HLS

jkeen avatar Oct 15 '22 15:10 jkeen