Skip to content

Commit

Permalink
Fixed iOS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp committed Oct 29, 2019
1 parent a6d3e11 commit 74ed86f
Show file tree
Hide file tree
Showing 7 changed files with 112 additions and 136 deletions.
2 changes: 1 addition & 1 deletion demo/public/js/app.js

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions dist/demo.html

This file was deleted.

111 changes: 53 additions & 58 deletions dist/index.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -520,17 +520,6 @@ module.exports = function (METHOD_NAME) {
};


/***/ }),

/***/ "1fe0":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_1c218ecc_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5193");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_1c218ecc_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_1c218ecc_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_1c218ecc_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);

/***/ }),

/***/ "21bd":
Expand Down Expand Up @@ -1435,21 +1424,6 @@ module.exports = function (it, key) {
};


/***/ }),

/***/ "5193":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("e106");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("58fa12c1", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "5692":
Expand Down Expand Up @@ -1839,6 +1813,17 @@ module.exports = function (NAME) {
module.exports = {};


/***/ }),

/***/ "76ae":
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_5eaa139b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d66b");
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_5eaa139b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_5eaa139b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* unused harmony reexport * */
/* unused harmony default export */ var _unused_webpack_default_export = (_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_index_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_VideoPlayer_vue_vue_type_style_index_0_id_5eaa139b_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);

/***/ }),

/***/ "77b2":
Expand Down Expand Up @@ -2744,6 +2729,21 @@ module.exports = function (argument) {
};


/***/ }),

/***/ "a876":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, ".video-wrapper[data-v-5eaa139b]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;overflow:hidden;z-index:0}.fade[data-v-5eaa139b]{backface-visibility:hidden}.fade-enter-active[data-v-5eaa139b],.fade-leave-active[data-v-5eaa139b]{transition:opacity 1s}.fade-enter[data-v-5eaa139b],.fade-leave-to[data-v-5eaa139b]{opacity:0}video[data-v-5eaa139b]{visibility:visible;pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}", ""]);

// exports


/***/ }),

/***/ "ac1f":
Expand Down Expand Up @@ -3215,6 +3215,21 @@ module.exports = function (it, TAG, STATIC) {
};


/***/ }),

/***/ "d66b":
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__("a876");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__("499e").default
var update = add("5a4848a4", content, true, {"sourceMap":false,"shadowMode":false});

/***/ }),

/***/ "d784":
Expand Down Expand Up @@ -3400,21 +3415,6 @@ module.exports = function (it) {
};


/***/ }),

/***/ "e106":
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__("2350")(false);
// imports


// module
exports.push([module.i, ".video-wrapper[data-v-1c218ecc]{display:flex;justify-content:center;align-items:center;width:100%;height:100%;position:absolute;overflow:hidden;z-index:0}.fade[data-v-1c218ecc]{backface-visibility:hidden}.fade-enter-active[data-v-1c218ecc],.fade-leave-active[data-v-1c218ecc]{transition:opacity 1s}.fade-enter[data-v-1c218ecc],.fade-leave-to[data-v-1c218ecc]{opacity:0}video[data-v-1c218ecc]{visibility:visible;pointer-events:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);height:100%;width:100%}", ""]);

// exports


/***/ }),

/***/ "e439":
Expand Down Expand Up @@ -3775,12 +3775,12 @@ var exists = function exists(obj, key) {
"default": ''
}
}, playerProps));
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2dd602f9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VideoPlayer.vue?vue&type=template&id=1c218ecc&scoped=true&
var VideoPlayervue_type_template_id_1c218ecc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showVideo),expression:"showVideo"}],staticClass:"video-wrapper"},[_c('video',{ref:"video",style:(_vm.styleObject),attrs:{"playsinline":"","loop":_vm.loop,"preload":_vm.preload},domProps:{"muted":_vm.muted}},[_c('source',{attrs:{"src":_vm.src,"type":_vm.getMediaType(_vm.src)}})])])])}
var VideoPlayervue_type_template_id_1c218ecc_scoped_true_staticRenderFns = []
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2dd602f9-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/VideoPlayer.vue?vue&type=template&id=5eaa139b&scoped=true&
var VideoPlayervue_type_template_id_5eaa139b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.showVideo),expression:"showVideo"}],staticClass:"video-wrapper"},[_c('video',{ref:"video",style:(_vm.styleObject),attrs:{"playsinline":"","loop":_vm.loop,"preload":_vm.preload},domProps:{"muted":_vm.muted}},[_c('source',{attrs:{"src":_vm.src,"type":_vm.getMediaType(_vm.src)}})])])])}
var VideoPlayervue_type_template_id_5eaa139b_scoped_true_staticRenderFns = []


// CONCATENATED MODULE: ./src/components/VideoPlayer.vue?vue&type=template&id=1c218ecc&scoped=true&
// CONCATENATED MODULE: ./src/components/VideoPlayer.vue?vue&type=template&id=5eaa139b&scoped=true&

// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
var es_regexp_exec = __webpack_require__("ac1f");
Expand Down Expand Up @@ -3884,21 +3884,16 @@ var web_timers = __webpack_require__("4795");
},
mounted: function mounted() {
if (this.videoCanPlay()) {
this.$refs.video.addEventListener('canplay', this.videoReady);
this.$refs.video.addEventListener('error', this.videoError);
this.$refs.video.addEventListener('ended', this.videoEnded);
this.$refs.video.oncanplay = this.videoReady;
this.$refs.video.onerror = this.videoError;
this.$refs.video.onended = this.videoEnded;
}
},
beforeDestroy: function beforeDestroy() {
this.$refs.video.removeEventListener('canplay', this.videoReady);
this.$refs.video.removeEventListener('error', this.videoError);
this.$refs.video.removeEventListener('ended', this.videoEnded);
}
});
// CONCATENATED MODULE: ./src/components/VideoPlayer.vue?vue&type=script&lang=js&
/* harmony default export */ var components_VideoPlayervue_type_script_lang_js_ = (VideoPlayervue_type_script_lang_js_);
// EXTERNAL MODULE: ./src/components/VideoPlayer.vue?vue&type=style&index=0&id=1c218ecc&scoped=true&lang=css&
var VideoPlayervue_type_style_index_0_id_1c218ecc_scoped_true_lang_css_ = __webpack_require__("1fe0");
// EXTERNAL MODULE: ./src/components/VideoPlayer.vue?vue&type=style&index=0&id=5eaa139b&scoped=true&lang=css&
var VideoPlayervue_type_style_index_0_id_5eaa139b_scoped_true_lang_css_ = __webpack_require__("76ae");

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
/* globals __VUE_SSR_CONTEXT__ */
Expand Down Expand Up @@ -4006,11 +4001,11 @@ function normalizeComponent (

var component = normalizeComponent(
components_VideoPlayervue_type_script_lang_js_,
VideoPlayervue_type_template_id_1c218ecc_scoped_true_render,
VideoPlayervue_type_template_id_1c218ecc_scoped_true_staticRenderFns,
VideoPlayervue_type_template_id_5eaa139b_scoped_true_render,
VideoPlayervue_type_template_id_5eaa139b_scoped_true_staticRenderFns,
false,
null,
"1c218ecc",
"5eaa139b",
null

)
Expand Down
Loading

0 comments on commit 74ed86f

Please sign in to comment.