xgplayer 2.31.6 → 2.31.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1221,7 +1221,7 @@ module.exports = exports["default"];
1221
1221
  /* 8 */
1222
1222
  /***/ (function(module) {
1223
1223
 
1224
- module.exports = JSON.parse("{\"version\":\"2.31.6\"}");
1224
+ module.exports = JSON.parse("{\"version\":\"2.31.7\"}");
1225
1225
 
1226
1226
  /***/ }),
1227
1227
  /* 9 */
@@ -1659,12 +1659,12 @@ var Player = function (_Proxy) {
1659
1659
  (0, _allOff2.default)(this);
1660
1660
  }
1661
1661
 
1662
- if (!this.paused) {
1663
- this.pause();
1664
- this.once('pause', destroyFunc);
1665
- } else {
1666
- destroyFunc.call(this);
1667
- }
1662
+ // destroy immediately
1663
+ // Don't use the paused property detection, it doesn't use MediaElement.paused,
1664
+ // so it's not accurate enough. Destroy after waiting for pause event, this
1665
+ // changes the synchronous behavior of destroy api
1666
+ destroyFunc.call(this);
1667
+
1668
1668
  _get(Player.prototype.__proto__ || Object.getPrototypeOf(Player.prototype), 'destroy', this).call(this);
1669
1669
  }
1670
1670
  }, {
@@ -6503,7 +6503,7 @@ module.exports = exports['default'];
6503
6503
  /***/ (function(module, exports, __webpack_require__) {
6504
6504
 
6505
6505
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
6506
- * Draggabilly v2.3.0
6506
+ * Draggabilly v2.4.1
6507
6507
  * Make that shiz draggable
6508
6508
  * https://draggabilly.desandro.com
6509
6509
  * MIT license
@@ -7141,7 +7141,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7141
7141
  /***/ (function(module, exports, __webpack_require__) {
7142
7142
 
7143
7143
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7144
- * Unidragger v2.3.1
7144
+ * Unidragger v2.4.0
7145
7145
  * Draggable base class
7146
7146
  * MIT license
7147
7147
  */
@@ -7414,7 +7414,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7414
7414
  /***/ (function(module, exports, __webpack_require__) {
7415
7415
 
7416
7416
  var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7417
- * Unipointer v2.3.0
7417
+ * Unipointer v2.4.0
7418
7418
  * base class for doing one thing with pointer event
7419
7419
  * MIT license
7420
7420
  */
@@ -7461,12 +7461,13 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
7461
7461
 
7462
7462
  // default to mouse events
7463
7463
  var startEvent = 'mousedown';
7464
- if (window.PointerEvent) {
7464
+ if ('ontouchstart' in window) {
7465
+ // HACK prefer Touch Events as you can preventDefault on touchstart to
7466
+ // disable scroll in iOS & mobile Chrome metafizzy/flickity#1177
7467
+ startEvent = 'touchstart';
7468
+ } else if (window.PointerEvent) {
7465
7469
  // Pointer Events
7466
7470
  startEvent = 'pointerdown';
7467
- } else if ('ontouchstart' in window) {
7468
- // Touch Events. iOS Safari
7469
- startEvent = 'touchstart';
7470
7471
  }
7471
7472
  elem[bindMethod](startEvent, this);
7472
7473
  };
@@ -9664,7 +9665,7 @@ module.exports = exports['default'];
9664
9665
  Er = /^\:\:cue/,
9665
9666
  Pr = /^}+$/,
9666
9667
  jr = /^\[Script Info\].*/,
9667
- Mr = [/[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}-->[0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}/, /[0-9]{2}:[0-9]{2}\.[0-9]{3}-->[0-9]{2}:[0-9]{2}\.[0-9]{3}/, /[0-9]{2}\.[0-9]{3}-->[0-9]{2}\.[0-9]{3}/],
9668
+ Mr = [/[0-9]{1,3}:[0-9]{2}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,3}:[0-9]{2}:[0-9]{2}\.[0-9]{1,3}/, /[0-9]{1,2}:[0-9]{2}\.[0-9]{1,3}-->[0-9]{1,2}:[0-9]{2}\.[0-9]{1,3}/, /[0-9]{1,2}\.[0-9]{1,3}-->[0-9]{1,2}\.[0-9]{1,3}/],
9668
9669
  Ar = /^Format:\s/,
9669
9670
  Cr = /^Style:\s/,
9670
9671
  Rr = /^Dialogue:\s/,
@@ -10491,6 +10492,7 @@ var s_definition = function s_definition() {
10491
10492
  return a.href === src;
10492
10493
  }
10493
10494
  });
10495
+ console.warn('cursrc:', cursrc, 'src:', src, 'list:', list);
10494
10496
  tmp.push('</ul><p class=\'name\'>' + (cursrc[0] || { name: '' }).name + '</p>');
10495
10497
  var urlInRoot = root.querySelector('.xgplayer-definition');
10496
10498
  if (urlInRoot) {