Skip to content

Commit

Permalink
Merge pull request #5662 from gnattu/mark-opera-as-hevc-av1-ready
Browse files Browse the repository at this point in the history
Mark desktop Opera as AV1 and HEVC ready in fmp4
  • Loading branch information
thornbill authored Jun 5, 2024
2 parents 7865170 + 07bbe67 commit 52aa8eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/browserDeviceProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,13 +610,13 @@ export default function (options) {
const hlsInFmp4VideoCodecs = [];

if (canPlayAv1(videoTestElement)
&& (browser.safari || (!browser.mobile && (browser.edgeChromium || browser.firefox || browser.chrome)))) {
&& (browser.safari || (!browser.mobile && (browser.edgeChromium || browser.firefox || browser.chrome || browser.opera)))) {
// disable av1 on non-safari mobile browsers since it can be very slow software decoding
hlsInFmp4VideoCodecs.push('av1');
}

if (canPlayHevc(videoTestElement, options)
&& (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)))) {
&& (browser.edgeChromium || browser.safari || browser.tizen || browser.web0s || (browser.chrome && (!browser.android || browser.versionMajor >= 105)) || (browser.opera && !browser.mobile))) {
// Chromium used to support HEVC on Android but not via MSE
hlsInFmp4VideoCodecs.push('hevc');
if (browser.tizen || browser.web0s) {
Expand Down

0 comments on commit 52aa8eb

Please sign in to comment.