xgplayer 2.31.6 → 2.31.8

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.
Files changed (40) hide show
  1. package/bin/xgplayer.js +0 -0
  2. package/browser/controls/definition.js +1 -1
  3. package/browser/controls/errorRetry.js +1 -1
  4. package/browser/controls/miniplayer.js +4 -4
  5. package/browser/controls/nativeTextTrack.js +1 -1
  6. package/browser/controls/screenShot.js +1 -1
  7. package/browser/core_player.js +1 -1
  8. package/browser/core_player.js.map +1 -1
  9. package/browser/index.js +5 -5
  10. package/browser/index.js.map +1 -1
  11. package/browser/simple_player.js +1 -1
  12. package/browser/simple_player.js.map +1 -1
  13. package/dist/controls/definition.js +1 -1
  14. package/dist/controls/errorRetry.js +1 -1
  15. package/dist/controls/miniplayer.js +4 -4
  16. package/dist/controls/nativeTextTrack.js +1 -1
  17. package/dist/controls/screenShot.js +1 -1
  18. package/dist/core_player.js +7 -7
  19. package/dist/core_player.js.map +1 -1
  20. package/dist/index.js +28 -17
  21. package/dist/index.js.map +1 -1
  22. package/dist/simple_player.js +7 -7
  23. package/dist/simple_player.js.map +1 -1
  24. package/es/controls/definition.js +1 -1
  25. package/es/controls/errorRetry.js +1 -1
  26. package/es/controls/miniplayer.js +4 -4
  27. package/es/controls/nativeTextTrack.js +1 -1
  28. package/es/controls/screenShot.js +1 -1
  29. package/es/core_player.js +1 -1
  30. package/es/core_player.js.map +1 -1
  31. package/es/index.js +6 -6
  32. package/es/index.js.map +1 -1
  33. package/es/simple_player.js +1 -1
  34. package/es/simple_player.js.map +1 -1
  35. package/package.json +1 -1
  36. package/src/controls/screenShot.js +13 -4
  37. package/src/player.js +6 -6
  38. package/src/skin/controls/definition.js +1 -0
  39. package/src/skin/controls/playNext.js +1 -1
  40. package/version.json +1 -1
@@ -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.8\"}");
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
  }, {