зеркало из https://github.com/mozilla/gecko-dev.git
Bug 792935 - Add DASH to gPlayedTests and gPlayTests r=cpearce
This commit is contained in:
Родитель
5c70bc4041
Коммит
7b8fecff50
|
@ -39,6 +39,7 @@ var gPlayedTests = [
|
|||
{ name:"seek.webm", type:"video/webm", duration:3.966 },
|
||||
{ name:"gizmo.mp4", type:"video/mp4", duration:5.56 },
|
||||
{ name:"owl.mp3", type:"audio/mpeg", duration:3.29 },
|
||||
{ name:"dash-manifest.mpd", type:"application/dash+xml", duration:3.966 },
|
||||
];
|
||||
|
||||
// Used by test_mozLoadFrom. Need one test file per decoder backend, plus
|
||||
|
@ -162,6 +163,9 @@ var gPlayTests = [
|
|||
{ name:"small-shot.mp3", type:"audio/mpeg", duration:0.27 },
|
||||
{ name:"owl.mp3", type:"audio/mpeg", duration:3.29 },
|
||||
|
||||
// DASH WebM MPD
|
||||
{ name:"dash-manifest.mpd", type:"application/dash+xml", duration:3.966 },
|
||||
|
||||
// Invalid file
|
||||
{ name:"bogus.duh", type:"bogus/duh", duration:Number.NaN }
|
||||
];
|
||||
|
|
|
@ -207,7 +207,7 @@ function createTestArray() {
|
|||
}
|
||||
|
||||
function startTest(test, token) {
|
||||
var elemType = /^audio/.test(test.type) ? "audio" : "video";
|
||||
var elemType = getMajorMimeType(test.type);
|
||||
var element = document.createElement(elemType);
|
||||
element.src = test.name;
|
||||
element.token = token;
|
||||
|
|
Загрузка…
Ссылка в новой задаче