Closed
Bug 1451926
Opened 7 years ago
Closed 7 years ago
Add a pref around AV1 decoding
Categories
(Core :: Audio/Video: Playback, enhancement, P1)
Tracking
()
RESOLVED
FIXED
mozilla61
Tracking | Status | |
---|---|---|
firefox61 | --- | fixed |
People
(Reporter: drno, Assigned: drno)
References
(Blocks 1 open bug)
Details
(Keywords: dev-doc-complete)
Attachments
(1 file)
AV1 decoding is currently turned on via build system in Firefox Nightly on OSX and Linux https://searchfox.org/mozilla-central/rev/d0413b711da4dac72b237d0895daba2537f1514c/toolkit/moz.configure#381
We need to add a user pref to be able to turn it off if we need to.
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → drno
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Comment on attachment 8965553 [details]
Bug 1451926: add a user pref for AV1 codec.
https://reviewboard.mozilla.org/r/234342/#review239942
r+ with review comments addressed.
::: dom/media/MediaPrefs.h:138
(Diff revision 1)
> #endif
> #ifdef MOZ_FFVPX
> DECL_MEDIA_PREF("media.ffvpx.enabled", PDMFFVPXEnabled, bool, true);
> #endif
> +#ifdef MOZ_AV1
> + DECL_MEDIA_PREF("media.mediasource.av1.enabled", AV1Enabled, bool, false);
There's nothing here to enforce that this pref toggles Media Source Extensions support only, so I think you should just name it "media.av1.enabled".
::: dom/media/webm/WebMDecoder.cpp:73
(Diff revision 1)
> continue;
> }
> }
> #ifdef MOZ_AV1
> - if (isVideo && AOMDecoder::IsSupportedCodec(codec)) {
> + if (isVideo &&
> + Preferences::GetBool("media.mediasource.av1.enabled", false) &&
Best to use the MediaPref here for consistency, and to avoid typos causing problems.
Attachment #8965553 -
Flags: review?(cpearce) → review+
Comment hidden (mozreview-request) |
Pushed by drno@ohlmeier.org:
https://hg.mozilla.org/integration/autoland/rev/cd2106b68805
add a user pref for AV1 codec. r=cpearce
Comment 5•7 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla61
Comment 6•7 years ago
|
||
For documentation -- note that AV1 is available on Nightly 61 but only with the preference enabled.
Comment 7•7 years ago
|
||
Updated "Experimental Features in Firefox" to note that AV1 arrived in 55, enabled by default, and was disabled by default effective in 61, with all availability only in nightly.
https://developer.mozilla.org/en-US/Firefox/Experimental_features#WebRTC_and_media
Keywords: dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•