mirror of
https://github.com/videojs/video.js.git
synced 2025-02-12 12:16:27 +02:00
fix children in ff3
ff3 does not support children, only childNodes
This commit is contained in:
parent
20d5342da2
commit
304921128c
@ -135,27 +135,29 @@ _V_.Player = _V_.Component.extend({
|
|||||||
options.loop = this.tag.getAttribute("loop") !== null;
|
options.loop = this.tag.getAttribute("loop") !== null;
|
||||||
options.muted = this.tag.getAttribute("muted") !== null;
|
options.muted = this.tag.getAttribute("muted") !== null;
|
||||||
|
|
||||||
for (var c,i=0,j=this.tag.children;i<j.length;i++) {
|
if (this.tag.hasChildNodes()) {
|
||||||
c = j[i];
|
for (var c,i=0,j=this.tag.childNodes;i<j.length;i++) {
|
||||||
if (c.nodeName == "SOURCE") {
|
c = j[i];
|
||||||
options.sources.push({
|
if (c.nodeName == "SOURCE") {
|
||||||
src: c.src,
|
options.sources.push({
|
||||||
type: c.type,
|
src: c.src,
|
||||||
media: c.media,
|
type: c.type,
|
||||||
title: c.title
|
media: c.media,
|
||||||
});
|
title: c.title
|
||||||
}
|
});
|
||||||
if (c.nodeName == "TRACK") {
|
}
|
||||||
options.tracks.push(new _V_.Track({
|
if (c.nodeName == "TRACK") {
|
||||||
src: c.getAttribute("src"),
|
options.tracks.push(new _V_.Track({
|
||||||
kind: c.getAttribute("kind"),
|
src: c.getAttribute("src"),
|
||||||
srclang: c.getAttribute("srclang"),
|
kind: c.getAttribute("kind"),
|
||||||
label: c.getAttribute("label"),
|
srclang: c.getAttribute("srclang"),
|
||||||
'default': c.getAttribute("default") !== null,
|
label: c.getAttribute("label"),
|
||||||
title: c.getAttribute("title")
|
'default': c.getAttribute("default") !== null,
|
||||||
}, this));
|
title: c.getAttribute("title")
|
||||||
|
}, this));
|
||||||
}
|
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return options;
|
return options;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user