forked from mirrors/gecko-dev
Bug 1417050: Add AV1 in MP4 tests. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3845 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
b6192ab609
commit
19b1e76253
7 changed files with 17 additions and 7 deletions
BIN
dom/media/test/av1.mp4
Normal file
BIN
dom/media/test/av1.mp4
Normal file
Binary file not shown.
1
dom/media/test/av1.mp4^headers^
Normal file
1
dom/media/test/av1.mp4^headers^
Normal file
|
|
@ -0,0 +1 @@
|
|||
Cache-Control: no-store
|
||||
|
|
@ -44,9 +44,6 @@ async function check_webm(v, enabled) {
|
|||
return navigator.userAgent.includes("Android");
|
||||
}
|
||||
|
||||
const haveAv1 = getPref("media.av1.enabled");
|
||||
check("video/webm; codecs=\"av1\"", haveAv1 ? "probably" : "");
|
||||
|
||||
await SpecialPowers.pushPrefEnv({"set": [["media.av1.enabled", true]]});
|
||||
// AV1 is disabled on Windows 32 bits (bug 1475564) and Android (bug 1368843)
|
||||
check("video/webm; codecs=\"av1\"", (isWindows32() || isAndroid()) ? "" : "probably");
|
||||
|
|
|
|||
|
|
@ -170,7 +170,6 @@ var gMediaRecorderVideoTests = [
|
|||
var gPlayTests = [
|
||||
// Test playback of a WebM file with vp9 video
|
||||
{ name:"vp9cake-short.webm", type:"video/webm", duration:1.00 },
|
||||
|
||||
// 8-bit samples
|
||||
{ name:"r11025_u8_c1.wav", type:"audio/x-wav", duration:1.0 },
|
||||
// 8-bit samples, file is truncated
|
||||
|
|
@ -321,6 +320,11 @@ var gPlayTests = [
|
|||
{ name:"bogus.duh", type:"bogus/duh", duration:Number.NaN },
|
||||
];
|
||||
|
||||
if (!(manifestNavigator().userAgent.includes("Windows") &&
|
||||
!manifestNavigator().userAgent.includes("x64"))) {
|
||||
gPlayTests.push({ name: "av1.mp4", type:"video/mp4", duration:1.00 });
|
||||
}
|
||||
|
||||
var gSeekToNextFrameTests = [
|
||||
// Test playback of a WebM file with vp9 video
|
||||
{ name:"vp9-short.webm", type:"video/webm", duration:0.20 },
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ support-files =
|
|||
audio-overhang.ogg^headers^
|
||||
audio.wav
|
||||
audio.wav^headers^
|
||||
av1.mp4
|
||||
av1.mp4^headers^
|
||||
background_video.js
|
||||
badtags.ogg
|
||||
badtags.ogg^headers^
|
||||
|
|
|
|||
|
|
@ -96,9 +96,14 @@ function check_mp4(v, enabled) {
|
|||
check(codec, "probably");
|
||||
ok(MediaSource.isTypeSupported(codec), "VP9 in MP4 should be supported in MSE");
|
||||
});
|
||||
|
||||
// AV1 (disabled until bug 1417050 is fixed)
|
||||
check("video/mp4; codecs=\"av1\"", "");
|
||||
// AV1 is temporarily disabled on Win32 due to linker issues
|
||||
// https://bugzilla.mozilla.org/show_bug.cgi?id=1475564
|
||||
if (!(manifestNavigator().userAgent.includes("Windows") &&
|
||||
!manifestNavigator().userAgent.includes("x64"))) {
|
||||
check("video/mp4; codecs=\"av1\"", "probably");
|
||||
} else {
|
||||
check("video/mp4; codecs=\"av1\"", "");
|
||||
}
|
||||
}
|
||||
|
||||
function check_mp3(v, enabled) {
|
||||
|
|
|
|||
|
|
@ -190,6 +190,7 @@ user_pref("lightweightThemes.selectedThemeID", "");
|
|||
// The prefs recommended by Marionette are typically geared towards
|
||||
// consumer automation; not vendor testing.
|
||||
user_pref("marionette.prefs.recommended", false);
|
||||
user_pref("media.av1.enabled", true);
|
||||
user_pref("media.cache_size", 1000);
|
||||
user_pref("media.dormant-on-pause-timeout-ms", 0); // Enter dormant immediately without waiting for timeout.
|
||||
// Set the number of shmems the PChromiumCDM protocol pre-allocates to 0,
|
||||
|
|
|
|||
Loading…
Reference in a new issue