mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-24 17:35:10 +03:00
279e6cdd01
Based on the work of @gmcgarry Thank you very much! Currently the codec adds supplemental codecs to the list of allCodecs and has an implicit priority order to select a codec. Support for the codec is tested with MediaSource.isTypeSupported(). There are multiple issues with this approach: - the priority is implicit - MediaSource.isTypeSupported() decision is effectively overriding platform-specific MediaCapabilities logic - MediaSource.isTypeSupported() is frequently wrong depending on whether the content is encrypted This patch duplicates the variant with each supplemental codec and defers codec priority and codec selection until after MediaCapabilities.decodingInfo(). This fixes support for DolbyVision Profile 8, which is otherwise broken because the chromium browsers always return false from MediaSource.isTypeSupported(), and DolbyVision is commonly only available in a secure hardware decode pipeline. Note: Safari does not have this problem since it supports Dolby Vision in clear --------- Co-authored-by: Wojciech Tyczyński <tykus160@gmail.com>