Closed debjits1 closed 11 months ago
Ideally it should switch to stereo for Mac OS safari browser
Why? Based on what information available to the player?
Do you have a sample you can share - Multivariant Playlist or manifest text?
@robwalch
# AUDIO groups
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-ac-3-384",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="6"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-45",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-61",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-93",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-125",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-aacl-189",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="2"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-ec-3-192",LANGUAGE="hi",NAME="Hindi",DEFAULT=YES,AUTOSELECT=YES,CHANNELS="6"
here is the audio group from manifest
Also, I am not exactly sure if it is correct expectation that it should switch to stereo for Mac OS safari browser. Please let me know if there a way we can do that for this manifest
Ideally it should switch to stereo for Mac OS safari browser. But the player is not doing so.
Desktop macOS can spatialize multi-channel audio on certain hardware so it's not expected that stereo must be selected. It should be pointed out that the Web platform doesn't exactly expose this capability in the most straightforward way. MediaCapabilities can report if multichannel EC-3 with the channels described is supported.
In dev (https://hlsjs-dev.video-dev.org/demo/ v1.5.0-alpha.0 and up) hls.js will use MediaCapabilities to determine if multi-channel audio is supported, but will generally start at stereo and stay there.
Applications will have to select the track manually or provide a hint that multi-channel is preferred (see #5532).
Marking as answered. Please verify in the latest v1.5 (pre)release.
Closing as fixed in v1.5.0-beta.1.
What do you want to do with Hls.js?
I am using v1.3.4. I am not sure if it is a bug. Seeing this behavior for manifest with Dolby audio. Ideally it should switch to stereo for Mac OS safari browser. But the player is not doing so. Please suggest some workaround
What have you tried so far?
No response