1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-02 09:11:54 +02:00

Fixed bug that was skipping width/height from tag attributes.

This commit is contained in:
Steve Heffernan 2012-04-09 11:02:51 -07:00
parent b3d16d1437
commit 937b52d9bf

View File

@ -141,6 +141,9 @@ _V_.Player = _V_.Component.extend({
options.autoplay = tag[getAttribute]("autoplay") !== null; // hasAttribute not IE <8 compatible
options.loop = tag[getAttribute]("loop") !== null;
options.muted = tag[getAttribute]("muted") !== null;
options.width = tag[getAttribute]("width");
options.height = tag[getAttribute]("height");
if (this.tag.hasChildNodes()) {
for (var c,i=0,j=this.tag.childNodes;i<j.length;i++) {