diff options
author | trav90 <travawine@palemoon.org> | 2018-10-17 05:54:22 -0500 |
---|---|---|
committer | trav90 <travawine@palemoon.org> | 2018-10-17 05:54:22 -0500 |
commit | 0cc51bc106250988cc3b89cb5d743a5af52cd35a (patch) | |
tree | 68a1e4544f48012be2cebdc36e888cdbfd0fddec /dom/media/webm | |
parent | 1036d1fa0b1fe0f1a7136ffe111f577aa35de21e (diff) | |
download | UXP-0cc51bc106250988cc3b89cb5d743a5af52cd35a.tar UXP-0cc51bc106250988cc3b89cb5d743a5af52cd35a.tar.gz UXP-0cc51bc106250988cc3b89cb5d743a5af52cd35a.tar.lz UXP-0cc51bc106250988cc3b89cb5d743a5af52cd35a.tar.xz UXP-0cc51bc106250988cc3b89cb5d743a5af52cd35a.zip |
Add av1 to MediaSource.isTypeSupported
When av1 video playback is enabled, declare it as supported in the webm container in MediaSource.IsTypeSupported.
Also support special mime types of the form video/webm; codecs=vp9.experimental.<git-commit-id> so test sites can verify playback support of particular encodings while the av1 bitstream is under development.
Diffstat (limited to 'dom/media/webm')
-rw-r--r-- | dom/media/webm/WebMDecoder.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dom/media/webm/WebMDecoder.cpp b/dom/media/webm/WebMDecoder.cpp index b41de6d40..d721a8ccc 100644 --- a/dom/media/webm/WebMDecoder.cpp +++ b/dom/media/webm/WebMDecoder.cpp @@ -5,6 +5,9 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "mozilla/Preferences.h" +#ifdef MOZ_AV1 +#include "AOMDecoder.h" +#endif #include "MediaDecoderStateMachine.h" #include "WebMDemuxer.h" #include "WebMDecoder.h" @@ -65,6 +68,11 @@ WebMDecoder::CanHandleMediaType(const nsACString& aMIMETypeExcludingCodecs, continue; } +#ifdef MOZ_AV1 + if (isVideo && AOMDecoder::IsSupportedCodec(codec)) { + continue; + } +#endif // Some unsupported codec. return false; } |