mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 792935 - Add DASH to gSmallTests and gSeekTests to manifest.js (Media Mochitests) r=cpearce
This commit is contained in:
parent
66af55cbbb
commit
94fc543ce7
@ -13,6 +13,8 @@ var gSmallTests = [
|
||||
{ name:"seek.webm", type:"video/webm", width:320, height:240, duration:3.966 },
|
||||
{ name:"detodos.opus", type:"audio/ogg; codecs=opus", duration:2.9135 },
|
||||
{ name:"gizmo.mp4", type:"video/mp4", duration:5.56 },
|
||||
{ name:"dash-manifest.mpd", type:"application/dash+xml",
|
||||
width:320, height:180, duration:3.966 },
|
||||
{ name:"bogus.duh", type:"bogus/duh" }
|
||||
];
|
||||
|
||||
@ -301,6 +303,7 @@ var gSeekTests = [
|
||||
{ name:"detodos.opus", type:"audio/ogg; codecs=opus", duration:2.9135 },
|
||||
{ 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 },
|
||||
{ name:"bogus.duh", type:"bogus/duh", duration:123 }
|
||||
];
|
||||
|
||||
@ -479,7 +482,7 @@ function checkMetadata(msg, e, test) {
|
||||
// installed video backends.
|
||||
function getPlayableVideo(candidates) {
|
||||
var v = document.createElement("video");
|
||||
var resources = candidates.filter(function(x){return /^video/.test(x.type) && v.canPlayType(x.type);});
|
||||
var resources = candidates.filter(function(x){return (/^video/.test(x.type) || /^application\/dash\+xml/.test(x.type)) && v.canPlayType(x.type);});
|
||||
if (resources.length > 0)
|
||||
return resources[0];
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user