Repository navigation
Expose isSpatialAudio to representationFilter - #1943
Conversation
…k. Not detection of Dolby Atmos on Safari works.
|
Thanks for the contribution! Note that This API is here and often used by apps instead of Anyway I agree this makes sense and it is a development which follows the architecture well. |
|
Thanks for your response! I investigated the alternate approach of listening to the availableAudioTracksChange event and using player.setAudioTrack(). I didn't like this approach for a few reasons:
The case here, is that for devices that don't support Atmos, we really do want the representations to be eliminated from selection. This is done by checking MediaCapabilities.decodingInfo() and representationFilter seems like the correct place to do this. I didn't make that clear in the PR comment. I will update the PR comment. |
Add isSpatialAudio to the Representation properties listed for the representationFilter callback in plugins.md.
|
I updated plugins.md per reviewer feedback. |
|
To note first that I agree with your modifications and that I also agree that for cases where you know anyway you won't be able to rely on Dolby Atmos, using Your changes look good, and your PR+example+reason for the change is very appreciated, it makes the review process much easier for us and I think we will probably merge this. Don't pay attention to the sonarcloud CI job failing here. To answer some points quickly:
Here the RxPlayer library does not actually expose any UI (we have our demo page but it's a simple demo implementation). The UI will in the end be defined by the application, which decides what tracks to present to the user. Most applications using us have already-complex requirements and thus adding some filter between what e.g.
This event could be a candidate for single-Period contents, but the intended and most complete event for track and representation automatic selection is This and other reasons is why we do consider our track/representation API a little complex and thus also kept simpler but less powerful APIs. To note that many applications, like the ones at Canal+, need and use the complex ones though, so it's a real need.
Cool thanks, we could see on our side if we could rely on this type of API for spatial audio checks. The |
|
Thanks for sharing your insights. I understand your frustration with capability checks! :) |
Pass each Representation's isSpatialAudio value to the representationFilter callback, so applications can filter out spatial variants on systems without a spatial render. For example, Safari supports Dolby Digital Plus with Atmos and plain Dolby Digital Plus depending on the target speakers. The Spatializer is a system-configurable setting in Android.
Sample MPD is available here: https://chromium.dolby.link/ts_ref_kit/clear/heaac-ddp51-ddpjoc_nf/manifest.mpd
A Sample player with representationFilter implementation is available here: https://player.dolby.link/rx.html?url=https%3A%2F%2Fchromium.dolby.link%2Fts_ref_kit%2Fclear%2Fheaac-ddp51-ddpjoc_nf%2Fmanifest.mpd&autoplay=true