Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
cycjimmy committed Oct 31, 2017
1 parent e86abb6 commit 347d05f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 17 deletions.
26 changes: 10 additions & 16 deletions build/H5VideoPlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -449,13 +449,16 @@ var H5VideoPlayer = function () {
orientation: this.options.orientation,
_style: __WEBPACK_IMPORTED_MODULE_2__style_scss___default.a
});
this.container.appendChild(this.wrapper);

// video
this.videoWrapperForConstraintRatio = this.wrapper.querySelector('.' + __WEBPACK_IMPORTED_MODULE_2__style_scss___default.a.videoWrapperForConstraintRatio);
this.video = this.wrapper.querySelector('.' + __WEBPACK_IMPORTED_MODULE_2__style_scss___default.a.video);

// mask: used to control video
this.mask = this.wrapper.querySelector('.' + __WEBPACK_IMPORTED_MODULE_2__style_scss___default.a.mask);
this.mask = document.createElement('div');
this.mask.classList.add(__WEBPACK_IMPORTED_MODULE_2__style_scss___default.a.mask);
this.container.appendChild(this.mask);

// playButton
if (this.options.control) {
Expand All @@ -469,10 +472,8 @@ var H5VideoPlayer = function () {
});
}

this.wrapper.appendChild(this.playButton);
this.container.appendChild(this.playButton);
}

this.container.appendChild(this.wrapper);
};

H5VideoPlayer.prototype.init = function init() {
Expand Down Expand Up @@ -610,24 +611,17 @@ var H5VideoPlayer = function () {
}, 0);
},
_changeOrientation = function _changeOrientation() {
window.removeEventListener(_orientationchangeEvt, function () {
return _changeOrientation();
});
window.removeEventListener(_orientationchangeEvt, _changeOrientation);

setTimeout(function () {
_changeStyle();
window.addEventListener(_orientationchangeEvt, function () {
return _changeOrientation();
}, false);
}, 500);
window.addEventListener(_orientationchangeEvt, _changeOrientation, false);
}, 400);
};

if (this.options.disableRotation) {
_changeStyle();

window.addEventListener(_orientationchangeEvt, function () {
return _changeOrientation();
}, false);
window.addEventListener(_orientationchangeEvt, _changeOrientation, false);
} else {
_addStyles(this.wrapper, {
width: containerRect().width + 'px',
Expand Down Expand Up @@ -718,7 +712,7 @@ else
if (typeof source === 'string' && source.constructor === String) {
pug_html = pug_html + "\u003Csource" + (pug.attr("src", source, true, true)) + "\u003E";
}
pug_html = pug_html + "I'm sorry; your browser doesn't support HTML5 video.\u003C\u002Fvideo\u003E\u003C\u002Fdiv\u003E\u003Cdiv" + (pug.attr("class", pug.classes([_style.mask], [true]), false, true)) + "\u003E\u003C\u002Fdiv\u003E";}.call(this,"Array" in locals_for_with?locals_for_with.Array:typeof Array!=="undefined"?Array:undefined,"Object" in locals_for_with?locals_for_with.Object:typeof Object!=="undefined"?Object:undefined,"String" in locals_for_with?locals_for_with.String:typeof String!=="undefined"?String:undefined,"_style" in locals_for_with?locals_for_with._style:typeof _style!=="undefined"?_style:undefined,"orientation" in locals_for_with?locals_for_with.orientation:typeof orientation!=="undefined"?orientation:undefined,"source" in locals_for_with?locals_for_with.source:typeof source!=="undefined"?source:undefined));;return pug_html;};
pug_html = pug_html + "I'm sorry; your browser doesn't support HTML5 video.\u003C\u002Fvideo\u003E\u003C\u002Fdiv\u003E";}.call(this,"Array" in locals_for_with?locals_for_with.Array:typeof Array!=="undefined"?Array:undefined,"Object" in locals_for_with?locals_for_with.Object:typeof Object!=="undefined"?Object:undefined,"String" in locals_for_with?locals_for_with.String:typeof String!=="undefined"?String:undefined,"_style" in locals_for_with?locals_for_with._style:typeof _style!=="undefined"?_style:undefined,"orientation" in locals_for_with?locals_for_with.orientation:typeof orientation!=="undefined"?orientation:undefined,"source" in locals_for_with?locals_for_with.source:typeof source!=="undefined"?source:undefined));;return pug_html;};
module.exports = template;

/***/ }),
Expand Down
Loading

0 comments on commit 347d05f

Please sign in to comment.