mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge pull request #5976 from GodTamIt/ff-hdr
Support HDR in Firefox for macOS
This commit is contained in:
commit
ef6d9c7241
1 changed files with 11 additions and 1 deletions
|
@ -234,6 +234,12 @@ function supportsHdr10(options) {
|
||||||
// Edge Chromium 121+ fixed the tone-mapping color issue on Nvidia
|
// Edge Chromium 121+ fixed the tone-mapping color issue on Nvidia
|
||||||
|| browser.edgeChromium && (browser.versionMajor >= 121)
|
|| browser.edgeChromium && (browser.versionMajor >= 121)
|
||||||
|| browser.chrome && !browser.mobile
|
|| browser.chrome && !browser.mobile
|
||||||
|
// Firefox 100+ has support for HDR on macOS/OS X. It requires OS support, which was
|
||||||
|
// added in macOS 10.15 Catalina. If enabling HDR on other platforms, be careful about
|
||||||
|
// allowing HDR VP9 in mp4 containers.
|
||||||
|
// * https://www.mozilla.org/en-US/firefox/100.0/releasenotes/
|
||||||
|
// * https://bugzilla.mozilla.org/show_bug.cgi?id=1915265
|
||||||
|
|| browser.firefox && browser.osx && (!browser.iphone && !browser.ipod && !browser.ipad) && (browser.versionMajor >= 100)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -674,8 +680,12 @@ export default function (options) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (canPlayVp9) {
|
if (canPlayVp9) {
|
||||||
if (!browser.iOS) {
|
if (!browser.iOS && !(browser.firefox && browser.osx)) {
|
||||||
// iOS safari may fail to direct play vp9 in mp4 container
|
// iOS safari may fail to direct play vp9 in mp4 container
|
||||||
|
//
|
||||||
|
// Firefox can play vp9 in mp4 container but fails to detect HDR. Since HDR is
|
||||||
|
// unsupported for all other non-Mac platforms, it's fine to allow vp9 in mp4 for them.
|
||||||
|
// * https://bugzilla.mozilla.org/show_bug.cgi?id=1915265
|
||||||
mp4VideoCodecs.push('vp9');
|
mp4VideoCodecs.push('vp9');
|
||||||
}
|
}
|
||||||
// Only iOS Safari's native HLS player understands vp9 in fmp4
|
// Only iOS Safari's native HLS player understands vp9 in fmp4
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue