xgplayer 2.32.5 → 2.32.6

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 (371) hide show
  1. package/browser/controls/airplay.js +1 -1
  2. package/browser/controls/cssFullscreen.js +1 -1
  3. package/browser/controls/danmu.js +3 -1
  4. package/browser/controls/definition.js +1 -1
  5. package/browser/controls/download.js +1 -1
  6. package/browser/controls/enter.js +1 -1
  7. package/browser/controls/error.js +1 -1
  8. package/browser/controls/errorRetry.js +1 -1
  9. package/browser/controls/flex.js +1 -1
  10. package/browser/controls/fullscreen.js +1 -1
  11. package/browser/controls/loading.js +1 -1
  12. package/browser/controls/memoryPlay.js +1 -1
  13. package/browser/controls/miniplayer.js +9 -7
  14. package/browser/controls/mobile.js +1 -1
  15. package/browser/controls/nativeTextTrack.js +1 -1
  16. package/browser/controls/pc.js +1 -1
  17. package/browser/controls/pip.js +1 -1
  18. package/browser/controls/play.js +1 -1
  19. package/browser/controls/playNext.js +1 -1
  20. package/browser/controls/playbackRate.js +1 -1
  21. package/browser/controls/poster.js +1 -1
  22. package/browser/controls/progress.js +1 -1
  23. package/browser/controls/reload.js +1 -1
  24. package/browser/controls/replay.js +1 -1
  25. package/browser/controls/rotate.js +1 -1
  26. package/browser/controls/screenShot.js +1 -1
  27. package/browser/controls/start.js +1 -1
  28. package/browser/controls/textTrack.js +1 -1
  29. package/browser/controls/time.js +1 -1
  30. package/browser/controls/volume.js +1 -1
  31. package/browser/core_player.js +1 -1
  32. package/browser/core_player.js.map +1 -1
  33. package/browser/index.js +11 -7
  34. package/browser/index.js.map +1 -1
  35. package/browser/simple_player.js +1 -1
  36. package/browser/simple_player.js.map +1 -1
  37. package/dist/controls/airplay.js +1 -1
  38. package/dist/controls/cssFullscreen.js +1 -1
  39. package/dist/controls/danmu.js +3 -1
  40. package/dist/controls/definition.js +1 -1
  41. package/dist/controls/download.js +1 -1
  42. package/dist/controls/enter.js +1 -1
  43. package/dist/controls/error.js +1 -1
  44. package/dist/controls/errorRetry.js +1 -1
  45. package/dist/controls/flex.js +1 -1
  46. package/dist/controls/fullscreen.js +1 -1
  47. package/dist/controls/loading.js +1 -1
  48. package/dist/controls/memoryPlay.js +1 -1
  49. package/dist/controls/miniplayer.js +9 -7
  50. package/dist/controls/mobile.js +1 -1
  51. package/dist/controls/nativeTextTrack.js +1 -1
  52. package/dist/controls/pc.js +1 -1
  53. package/dist/controls/pip.js +1 -1
  54. package/dist/controls/play.js +1 -1
  55. package/dist/controls/playNext.js +1 -1
  56. package/dist/controls/playbackRate.js +1 -1
  57. package/dist/controls/poster.js +1 -1
  58. package/dist/controls/progress.js +1 -1
  59. package/dist/controls/reload.js +1 -1
  60. package/dist/controls/replay.js +1 -1
  61. package/dist/controls/rotate.js +1 -1
  62. package/dist/controls/screenShot.js +1 -1
  63. package/dist/controls/start.js +1 -1
  64. package/dist/controls/textTrack.js +1 -1
  65. package/dist/controls/time.js +1 -1
  66. package/dist/controls/volume.js +1 -1
  67. package/dist/core_player.js +2960 -2889
  68. package/dist/core_player.js.map +1 -1
  69. package/dist/index.js +1938 -3321
  70. package/dist/index.js.map +1 -1
  71. package/dist/index.min.css +1 -0
  72. package/dist/index.min.js +2 -0
  73. package/dist/index.min.js.map +1 -0
  74. package/dist/simple_player.js +274 -281
  75. package/dist/simple_player.js.map +1 -1
  76. package/es/_virtual/_rollupPluginBabelHelpers.js +216 -0
  77. package/es/constant.d.ts +4 -0
  78. package/es/constant.js +5 -0
  79. package/es/controls/airplay.js +1 -1
  80. package/es/controls/cssFullscreen.js +1 -1
  81. package/es/controls/danmu.js +3 -1
  82. package/es/controls/definition.js +1 -1
  83. package/es/controls/download.js +1 -1
  84. package/es/controls/enter.js +1 -1
  85. package/es/controls/error.js +1 -1
  86. package/es/controls/errorRetry.js +1 -1
  87. package/es/controls/flex.js +1 -1
  88. package/es/controls/fullscreen.js +1 -1
  89. package/es/controls/i18n.js +1 -1
  90. package/es/controls/keyboard.js +1 -1
  91. package/es/controls/loading.js +1 -1
  92. package/es/controls/localPreview.js +1 -1
  93. package/es/controls/memoryPlay.js +1 -1
  94. package/es/controls/miniplayer.js +9 -7
  95. package/es/controls/mobile.js +1 -1
  96. package/es/controls/nativeTextTrack.js +1 -1
  97. package/es/controls/pc.js +1 -1
  98. package/es/controls/pip.js +1 -1
  99. package/es/controls/play.js +1 -1
  100. package/es/controls/playNext.js +1 -1
  101. package/es/controls/playbackRate.js +1 -1
  102. package/es/controls/poster.js +1 -1
  103. package/es/controls/progress.js +1 -1
  104. package/es/controls/reload.js +1 -1
  105. package/es/controls/replay.js +1 -1
  106. package/es/controls/rotate.js +1 -1
  107. package/es/controls/screenShot.js +1 -1
  108. package/es/controls/start.js +1 -1
  109. package/es/controls/textTrack.js +1 -1
  110. package/es/controls/time.js +1 -1
  111. package/es/controls/volume.js +1 -1
  112. package/es/core_player.js +1 -1
  113. package/es/core_player.js.map +1 -1
  114. package/es/defaultConfig.d.ts +243 -0
  115. package/es/defaultConfig.js +85 -0
  116. package/es/error.d.ts +114 -0
  117. package/es/error.js +75 -0
  118. package/es/events.d.ts +61 -0
  119. package/es/events.js +62 -0
  120. package/es/icons.d.ts +2 -0
  121. package/es/index.css +499 -0
  122. package/es/index.d.ts +25 -0
  123. package/es/index.js +11 -7
  124. package/es/index.js.map +1 -1
  125. package/es/index.scss +29 -0
  126. package/es/index.umd.d.ts +60 -0
  127. package/es/index.umd.js +30 -0
  128. package/es/lang/en.d.ts +91 -0
  129. package/es/lang/en.js +77 -0
  130. package/es/lang/i18n.d.ts +36 -0
  131. package/es/lang/i18n.js +122 -0
  132. package/es/lang/index.d.ts +2 -0
  133. package/es/lang/jp.d.ts +91 -0
  134. package/es/lang/jp.js +77 -0
  135. package/es/lang/zh-cn.d.ts +91 -0
  136. package/es/lang/zh-cn.js +77 -0
  137. package/es/lang/zh-hk.d.ts +91 -0
  138. package/es/lang/zh-hk.js +77 -0
  139. package/es/mediaProxy.d.ts +334 -0
  140. package/es/mediaProxy.js +623 -0
  141. package/es/player.d.ts +825 -0
  142. package/es/player.js +1945 -0
  143. package/es/plugin/basePlugin.d.ts +180 -0
  144. package/es/plugin/basePlugin.js +259 -0
  145. package/es/plugin/hooksDescriptor.d.ts +60 -0
  146. package/es/plugin/hooksDescriptor.js +149 -0
  147. package/es/plugin/index.d.ts +13 -0
  148. package/es/plugin/plugin.d.ts +207 -0
  149. package/es/plugin/plugin.js +542 -0
  150. package/es/plugin/pluginsManager.d.ts +162 -0
  151. package/es/plugin/pluginsManager.js +362 -0
  152. package/es/plugin/preset.d.ts +1 -0
  153. package/es/plugin/preset.js +28 -0
  154. package/es/plugin/resizeObserver.d.ts +3 -0
  155. package/es/plugin/resizeObserver.js +108 -0
  156. package/es/plugins/assets/back.js +4 -0
  157. package/es/plugins/assets/download.js +4 -0
  158. package/es/plugins/assets/exitCssFull.js +4 -0
  159. package/es/plugins/assets/exitFull.js +4 -0
  160. package/es/plugins/assets/loading.js +4 -0
  161. package/es/plugins/assets/panel.js +4 -0
  162. package/es/plugins/assets/pause.js +4 -0
  163. package/es/plugins/assets/pipIcon.js +4 -0
  164. package/es/plugins/assets/pipIconExit.js +4 -0
  165. package/es/plugins/assets/play.js +4 -0
  166. package/es/plugins/assets/playNext.js +4 -0
  167. package/es/plugins/assets/replay.js +4 -0
  168. package/es/plugins/assets/requestCssFull.js +7 -0
  169. package/es/plugins/assets/requestFull.js +4 -0
  170. package/es/plugins/assets/rotate.js +4 -0
  171. package/es/plugins/assets/seekicon.js +4 -0
  172. package/es/plugins/assets/volumeLarge.js +4 -0
  173. package/es/plugins/assets/volumeMuted.js +4 -0
  174. package/es/plugins/assets/volumeSmall.js +4 -0
  175. package/es/plugins/common/iconPlugin.d.ts +5 -0
  176. package/es/plugins/common/iconPlugin.js +42 -0
  177. package/es/plugins/common/iconTools.d.ts +1 -0
  178. package/es/plugins/common/iconTools.js +8 -0
  179. package/es/plugins/common/index.scss +2 -0
  180. package/es/plugins/common/optionList.d.ts +15 -0
  181. package/es/plugins/common/optionList.js +120 -0
  182. package/es/plugins/common/optionsIcon.d.ts +40 -0
  183. package/es/plugins/common/optionsIcon.js +304 -0
  184. package/es/plugins/common/optionsIcon.scss +154 -0
  185. package/es/plugins/common/thumbnail.d.ts +62 -0
  186. package/es/plugins/common/thumbnail.js +191 -0
  187. package/es/plugins/common/thumbnail.scss +27 -0
  188. package/es/plugins/controls/index.css +132 -0
  189. package/es/plugins/controls/index.d.ts +73 -0
  190. package/es/plugins/controls/index.js +189 -0
  191. package/es/plugins/controls/index.scss +204 -0
  192. package/es/plugins/cssFullScreen/index.css +12 -0
  193. package/es/plugins/cssFullScreen/index.d.ts +40 -0
  194. package/es/plugins/cssFullScreen/index.js +136 -0
  195. package/es/plugins/cssFullScreen/index.scss +19 -0
  196. package/es/plugins/danmu/danmuIcon.d.ts +24 -0
  197. package/es/plugins/danmu/danmuIcon.js +98 -0
  198. package/es/plugins/danmu/danmuPanel.d.ts +39 -0
  199. package/es/plugins/danmu/danmuPanel.js +81 -0
  200. package/es/plugins/danmu/index.css +603 -0
  201. package/es/plugins/danmu/index.d.ts +96 -0
  202. package/es/plugins/danmu/index.js +313 -0
  203. package/es/plugins/danmu/index.scss +356 -0
  204. package/es/plugins/definition/index.css +4 -0
  205. package/es/plugins/definition/index.d.ts +38 -0
  206. package/es/plugins/definition/index.js +164 -0
  207. package/es/plugins/definition/index.scss +4 -0
  208. package/es/plugins/download/index.css +13 -0
  209. package/es/plugins/download/index.d.ts +31 -0
  210. package/es/plugins/download/index.js +107 -0
  211. package/es/plugins/download/index.scss +22 -0
  212. package/es/plugins/dynamicBg/index.css +16 -0
  213. package/es/plugins/dynamicBg/index.d.ts +83 -0
  214. package/es/plugins/dynamicBg/index.js +316 -0
  215. package/es/plugins/dynamicBg/index.scss +19 -0
  216. package/es/plugins/enter/index.css +104 -0
  217. package/es/plugins/enter/index.d.ts +19 -0
  218. package/es/plugins/enter/index.js +46 -0
  219. package/es/plugins/enter/index.scss +78 -0
  220. package/es/plugins/error/index.css +29 -0
  221. package/es/plugins/error/index.d.ts +8 -0
  222. package/es/plugins/error/index.js +75 -0
  223. package/es/plugins/error/index.scss +34 -0
  224. package/es/plugins/fpsDetect/index.d.ts +34 -0
  225. package/es/plugins/fpsDetect/index.js +149 -0
  226. package/es/plugins/fullscreen/backicon.d.ts +17 -0
  227. package/es/plugins/fullscreen/backicon.js +72 -0
  228. package/es/plugins/fullscreen/index.css +23 -0
  229. package/es/plugins/fullscreen/index.d.ts +58 -0
  230. package/es/plugins/fullscreen/index.js +202 -0
  231. package/es/plugins/fullscreen/index.scss +35 -0
  232. package/es/plugins/gapJump/index.d.ts +21 -0
  233. package/es/plugins/gapJump/index.js +142 -0
  234. package/es/plugins/keyboard/index.d.ts +89 -0
  235. package/es/plugins/keyboard/index.js +421 -0
  236. package/es/plugins/loading/index.css +58 -0
  237. package/es/plugins/loading/index.d.ts +11 -0
  238. package/es/plugins/loading/index.js +43 -0
  239. package/es/plugins/loading/index.scss +70 -0
  240. package/es/plugins/logger/index.d.ts +54 -0
  241. package/es/plugins/logger/index.js +311 -0
  242. package/es/plugins/miniScreen/index.css +179 -0
  243. package/es/plugins/miniScreen/index.d.ts +68 -0
  244. package/es/plugins/miniScreen/index.js +212 -0
  245. package/es/plugins/miniScreen/index.scss +198 -0
  246. package/es/plugins/miniScreen/miniScreenIcon.d.ts +11 -0
  247. package/es/plugins/miniScreen/miniScreenIcon.js +56 -0
  248. package/es/plugins/mobile/index.css +181 -0
  249. package/es/plugins/mobile/index.d.ts +125 -0
  250. package/es/plugins/mobile/index.js +631 -0
  251. package/es/plugins/mobile/index.scss +180 -0
  252. package/es/plugins/mobile/touch.d.ts +43 -0
  253. package/es/plugins/mobile/touch.js +214 -0
  254. package/es/plugins/netAdaption/index.d.ts +5 -0
  255. package/es/plugins/pc/index.css +3 -0
  256. package/es/plugins/pc/index.d.ts +14 -0
  257. package/es/plugins/pc/index.js +199 -0
  258. package/es/plugins/pc/index.scss +5 -0
  259. package/es/plugins/pip/index.css +12 -0
  260. package/es/plugins/pip/index.d.ts +37 -0
  261. package/es/plugins/pip/index.js +222 -0
  262. package/es/plugins/pip/index.scss +21 -0
  263. package/es/plugins/play/index.css +12 -0
  264. package/es/plugins/play/index.d.ts +23 -0
  265. package/es/plugins/play/index.js +127 -0
  266. package/es/plugins/play/index.scss +18 -0
  267. package/es/plugins/playNext/index.css +22 -0
  268. package/es/plugins/playNext/index.d.ts +19 -0
  269. package/es/plugins/playNext/index.js +104 -0
  270. package/es/plugins/playNext/index.scss +35 -0
  271. package/es/plugins/playbackRate/index.css +4 -0
  272. package/es/plugins/playbackRate/index.d.ts +31 -0
  273. package/es/plugins/playbackRate/index.js +140 -0
  274. package/es/plugins/playbackRate/index.scss +6 -0
  275. package/es/plugins/poster/index.css +39 -0
  276. package/es/plugins/poster/index.d.ts +27 -0
  277. package/es/plugins/poster/index.js +109 -0
  278. package/es/plugins/poster/index.scss +56 -0
  279. package/es/plugins/progress/index.css +234 -0
  280. package/es/plugins/progress/index.d.ts +178 -0
  281. package/es/plugins/progress/index.js +687 -0
  282. package/es/plugins/progress/index.scss +288 -0
  283. package/es/plugins/progress/innerList.d.ts +49 -0
  284. package/es/plugins/progress/innerList.js +285 -0
  285. package/es/plugins/progress/miniProgress.d.ts +9 -0
  286. package/es/plugins/progress/miniProgress.js +55 -0
  287. package/es/plugins/progressPreview/dotsApi.d.ts +1 -0
  288. package/es/plugins/progressPreview/dotsApi.js +269 -0
  289. package/es/plugins/progressPreview/index.css +190 -0
  290. package/es/plugins/progressPreview/index.d.ts +87 -0
  291. package/es/plugins/progressPreview/index.js +475 -0
  292. package/es/plugins/progressPreview/index.scss +235 -0
  293. package/es/plugins/prompt/index.css +47 -0
  294. package/es/plugins/prompt/index.d.ts +24 -0
  295. package/es/plugins/prompt/index.js +110 -0
  296. package/es/plugins/prompt/index.scss +53 -0
  297. package/es/plugins/replay/index.css +33 -0
  298. package/es/plugins/replay/index.d.ts +16 -0
  299. package/es/plugins/replay/index.js +109 -0
  300. package/es/plugins/replay/index.scss +41 -0
  301. package/es/plugins/rotate/index.css +0 -0
  302. package/es/plugins/rotate/index.d.ts +22 -0
  303. package/es/plugins/rotate/index.js +148 -0
  304. package/es/plugins/rotate/index.scss +0 -0
  305. package/es/plugins/rotate/index2.js +2 -0
  306. package/es/plugins/screenShot/index.css +3 -0
  307. package/es/plugins/screenShot/index.d.ts +30 -0
  308. package/es/plugins/screenShot/index.js +178 -0
  309. package/es/plugins/screenShot/index.scss +5 -0
  310. package/es/plugins/start/index.css +91 -0
  311. package/es/plugins/start/index.d.ts +41 -0
  312. package/es/plugins/start/index.js +267 -0
  313. package/es/plugins/start/index.scss +115 -0
  314. package/es/plugins/stats/index.d.ts +38 -0
  315. package/es/plugins/stats/index.js +194 -0
  316. package/es/plugins/testspeed/index.d.ts +26 -0
  317. package/es/plugins/testspeed/index.js +207 -0
  318. package/es/plugins/time/index.css +46 -0
  319. package/es/plugins/time/index.d.ts +28 -0
  320. package/es/plugins/time/index.js +225 -0
  321. package/es/plugins/time/index.scss +57 -0
  322. package/es/plugins/time/timesegments.d.ts +24 -0
  323. package/es/plugins/time/timesegments.js +216 -0
  324. package/es/plugins/track/index.css +91 -0
  325. package/es/plugins/track/index.d.ts +132 -0
  326. package/es/plugins/track/index.js +463 -0
  327. package/es/plugins/track/index.scss +111 -0
  328. package/es/plugins/track/nativeSubTitle.d.ts +22 -0
  329. package/es/plugins/track/nativeSubTitle.js +94 -0
  330. package/es/plugins/volume/index.css +95 -0
  331. package/es/plugins/volume/index.d.ts +88 -0
  332. package/es/plugins/volume/index.js +319 -0
  333. package/es/plugins/volume/index.scss +124 -0
  334. package/es/plugins/waitingTimeoutJump/index.d.ts +15 -0
  335. package/es/plugins/waitingTimeoutJump/index.js +88 -0
  336. package/es/presets/default-en.d.ts +33 -0
  337. package/es/presets/default-en.js +63 -0
  338. package/es/presets/default.d.ts +34 -0
  339. package/es/presets/default.js +70 -0
  340. package/es/presets/index.d.ts +4 -0
  341. package/es/presets/live.d.ts +94 -0
  342. package/es/presets/live.js +39 -0
  343. package/es/presets/mobile.d.ts +103 -0
  344. package/es/presets/mobile.js +34 -0
  345. package/es/simple_player.js +1 -1
  346. package/es/simple_player.js.map +1 -1
  347. package/es/state.d.ts +11 -0
  348. package/es/state.js +12 -0
  349. package/es/stateClassMap.d.ts +32 -0
  350. package/es/stateClassMap.js +32 -0
  351. package/es/style/common/animation.scss +16 -0
  352. package/es/style/common/svg-url.scss +70 -0
  353. package/es/style/common.scss +457 -0
  354. package/es/style/index.scss +4 -0
  355. package/es/style/variable.scss +76 -0
  356. package/es/utils/database.d.ts +31 -0
  357. package/es/utils/database.js +107 -0
  358. package/es/utils/debug.d.ts +10 -0
  359. package/es/utils/debug.js +43 -0
  360. package/es/utils/draggabilly.d.ts +54 -0
  361. package/es/utils/draggabilly.js +410 -0
  362. package/es/utils/sniffer.d.ts +28 -0
  363. package/es/utils/sniffer.js +150 -0
  364. package/es/utils/url.d.ts +1 -0
  365. package/es/utils/util.d.ts +304 -0
  366. package/es/utils/util.js +827 -0
  367. package/es/utils/xgplayerTimeRange.d.ts +7 -0
  368. package/es/utils/xgplayerTimeRange.js +25 -0
  369. package/es/version.d.ts +2 -0
  370. package/es/version.js +2 -0
  371. package/package.json +2 -3
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
91
91
  /******/
92
92
  /******/
93
93
  /******/ // Load entry module and return exports
94
- /******/ return __webpack_require__(__webpack_require__.s = 182);
94
+ /******/ return __webpack_require__(__webpack_require__.s = 172);
95
95
  /******/ })
96
96
  /************************************************************************/
97
97
  /******/ ([
@@ -514,10 +514,7 @@ var util = exports.util = {
514
514
 
515
515
  /***/ }),
516
516
  /* 1 */
517
- /***/ (function(module, exports, __webpack_require__) {
518
-
519
- "use strict";
520
-
517
+ /***/ (function(module, exports) {
521
518
 
522
519
  /*
523
520
  MIT License http://www.opensource.org/licenses/mit-license.php
@@ -661,7 +658,7 @@ var singleton = null;
661
658
  var singletonCounter = 0;
662
659
  var stylesInsertedAtTop = [];
663
660
 
664
- var fixUrls = __webpack_require__(37);
661
+ var fixUrls = __webpack_require__(36);
665
662
 
666
663
  module.exports = function(list, options) {
667
664
  if (typeof DEBUG !== "undefined" && DEBUG) {
@@ -983,7 +980,7 @@ function updateLink (link, options, obj) {
983
980
  "use strict";
984
981
 
985
982
 
986
- var _undefined = __webpack_require__(25)(); // Support ES3 engines
983
+ var _undefined = __webpack_require__(24)(); // Support ES3 engines
987
984
 
988
985
  module.exports = function (val) {
989
986
  return val !== _undefined && val !== null;
@@ -1224,7 +1221,7 @@ module.exports = exports["default"];
1224
1221
  /* 8 */
1225
1222
  /***/ (function(module) {
1226
1223
 
1227
- module.exports = JSON.parse("{\"version\":\"2.32.5\"}");
1224
+ module.exports = JSON.parse("{\"version\":\"2.32.6\"}");
1228
1225
 
1229
1226
  /***/ }),
1230
1227
  /* 9 */
@@ -1233,8 +1230,6 @@ module.exports = JSON.parse("{\"version\":\"2.32.5\"}");
1233
1230
  "use strict";
1234
1231
 
1235
1232
 
1236
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
1237
-
1238
1233
  Object.defineProperty(exports, "__esModule", {
1239
1234
  value: true
1240
1235
  });
@@ -1265,7 +1260,7 @@ var _get = function get(object, property, receiver) {
1265
1260
  }
1266
1261
  };
1267
1262
 
1268
- var _proxy = __webpack_require__(12);
1263
+ var _proxy = __webpack_require__(11);
1269
1264
 
1270
1265
  var _proxy2 = _interopRequireDefault(_proxy);
1271
1266
 
@@ -1283,7 +1278,7 @@ var _error = __webpack_require__(4);
1283
1278
 
1284
1279
  var _error2 = _interopRequireDefault(_error);
1285
1280
 
1286
- var _allOff = __webpack_require__(32);
1281
+ var _allOff = __webpack_require__(31);
1287
1282
 
1288
1283
  var _allOff2 = _interopRequireDefault(_allOff);
1289
1284
 
@@ -1291,7 +1286,7 @@ var _i18n = __webpack_require__(10);
1291
1286
 
1292
1287
  var _i18n2 = _interopRequireDefault(_i18n);
1293
1288
 
1294
- __webpack_require__(35);
1289
+ __webpack_require__(34);
1295
1290
 
1296
1291
  var _version = __webpack_require__(8);
1297
1292
 
@@ -1308,12 +1303,12 @@ function _classCallCheck(instance, Constructor) {
1308
1303
  function _possibleConstructorReturn(self, call) {
1309
1304
  if (!self) {
1310
1305
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1311
- }return call && ((typeof call === "undefined" ? "undefined" : _typeof(call)) === "object" || typeof call === "function") ? call : self;
1306
+ }return call && (typeof call === "object" || typeof call === "function") ? call : self;
1312
1307
  }
1313
1308
 
1314
1309
  function _inherits(subClass, superClass) {
1315
1310
  if (typeof superClass !== "function" && superClass !== null) {
1316
- throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === "undefined" ? "undefined" : _typeof(superClass)));
1311
+ throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
1317
1312
  }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
1318
1313
  }
1319
1314
 
@@ -2099,8 +2094,7 @@ exports.default = {
2099
2094
  module.exports = exports['default'];
2100
2095
 
2101
2096
  /***/ }),
2102
- /* 11 */,
2103
- /* 12 */
2097
+ /* 11 */
2104
2098
  /***/ (function(module, exports, __webpack_require__) {
2105
2099
 
2106
2100
  "use strict";
@@ -2120,7 +2114,7 @@ var _createClass = function () {
2120
2114
  };
2121
2115
  }();
2122
2116
 
2123
- var _eventEmitter = __webpack_require__(13);
2117
+ var _eventEmitter = __webpack_require__(12);
2124
2118
 
2125
2119
  var _eventEmitter2 = _interopRequireDefault(_eventEmitter);
2126
2120
 
@@ -2479,7 +2473,7 @@ var Proxy = function () {
2479
2473
  }, {
2480
2474
  key: 'duration',
2481
2475
  get: function get() {
2482
- if (this.config.duration) {
2476
+ if (this.config && this.config.duration) {
2483
2477
  if (this.video) return Math.min(this.config.duration, this.video.duration);else return this.config.duration;
2484
2478
  }
2485
2479
  if (!this.video) return null;
@@ -2723,16 +2717,14 @@ exports.default = Proxy;
2723
2717
  module.exports = exports['default'];
2724
2718
 
2725
2719
  /***/ }),
2726
- /* 13 */
2720
+ /* 12 */
2727
2721
  /***/ (function(module, exports, __webpack_require__) {
2728
2722
 
2729
2723
  "use strict";
2730
2724
 
2731
2725
 
2732
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
2733
-
2734
- var d = __webpack_require__(14),
2735
- callable = __webpack_require__(31),
2726
+ var d = __webpack_require__(13),
2727
+ callable = __webpack_require__(30),
2736
2728
  apply = Function.prototype.apply,
2737
2729
  call = Function.prototype.call,
2738
2730
  create = Object.create,
@@ -2741,14 +2733,14 @@ var d = __webpack_require__(14),
2741
2733
  hasOwnProperty = Object.prototype.hasOwnProperty,
2742
2734
  descriptor = { configurable: true, enumerable: false, writable: true },
2743
2735
  on,
2744
- _once2,
2736
+ once,
2745
2737
  off,
2746
2738
  emit,
2747
2739
  methods,
2748
2740
  descriptors,
2749
2741
  base;
2750
2742
 
2751
- on = function on(type, listener) {
2743
+ on = function (type, listener) {
2752
2744
  var data;
2753
2745
 
2754
2746
  callable(listener);
@@ -2760,26 +2752,26 @@ on = function on(type, listener) {
2760
2752
  } else {
2761
2753
  data = this.__ee__;
2762
2754
  }
2763
- if (!data[type]) data[type] = listener;else if (_typeof(data[type]) === 'object') data[type].push(listener);else data[type] = [data[type], listener];
2755
+ if (!data[type]) data[type] = listener;else if (typeof data[type] === 'object') data[type].push(listener);else data[type] = [data[type], listener];
2764
2756
 
2765
2757
  return this;
2766
2758
  };
2767
2759
 
2768
- _once2 = function once(type, listener) {
2769
- var _once, self;
2760
+ once = function (type, listener) {
2761
+ var once, self;
2770
2762
 
2771
2763
  callable(listener);
2772
2764
  self = this;
2773
- on.call(this, type, _once = function once() {
2774
- off.call(self, type, _once);
2765
+ on.call(this, type, once = function () {
2766
+ off.call(self, type, once);
2775
2767
  apply.call(listener, this, arguments);
2776
2768
  });
2777
2769
 
2778
- _once.__eeOnceListener__ = listener;
2770
+ once.__eeOnceListener__ = listener;
2779
2771
  return this;
2780
2772
  };
2781
2773
 
2782
- off = function off(type, listener) {
2774
+ off = function (type, listener) {
2783
2775
  var data, listeners, candidate, i;
2784
2776
 
2785
2777
  callable(listener);
@@ -2789,7 +2781,7 @@ off = function off(type, listener) {
2789
2781
  if (!data[type]) return this;
2790
2782
  listeners = data[type];
2791
2783
 
2792
- if ((typeof listeners === 'undefined' ? 'undefined' : _typeof(listeners)) === 'object') {
2784
+ if (typeof listeners === 'object') {
2793
2785
  for (i = 0; candidate = listeners[i]; ++i) {
2794
2786
  if (candidate === listener || candidate.__eeOnceListener__ === listener) {
2795
2787
  if (listeners.length === 2) data[type] = listeners[i ? 0 : 1];else listeners.splice(i, 1);
@@ -2804,19 +2796,19 @@ off = function off(type, listener) {
2804
2796
  return this;
2805
2797
  };
2806
2798
 
2807
- emit = function emit(type) {
2799
+ emit = function (type) {
2808
2800
  var i, l, listener, listeners, args;
2809
2801
 
2810
2802
  if (!hasOwnProperty.call(this, '__ee__')) return;
2811
2803
  listeners = this.__ee__[type];
2812
2804
  if (!listeners) return;
2813
2805
 
2814
- if ((typeof listeners === 'undefined' ? 'undefined' : _typeof(listeners)) === 'object') {
2806
+ if (typeof listeners === 'object') {
2815
2807
  l = arguments.length;
2816
2808
  args = new Array(l - 1);
2817
- for (i = 1; i < l; ++i) {
2818
- args[i - 1] = arguments[i];
2819
- }listeners = listeners.slice();
2809
+ for (i = 1; i < l; ++i) args[i - 1] = arguments[i];
2810
+
2811
+ listeners = listeners.slice();
2820
2812
  for (i = 0; listener = listeners[i]; ++i) {
2821
2813
  apply.call(listener, this, args);
2822
2814
  }
@@ -2844,37 +2836,37 @@ emit = function emit(type) {
2844
2836
 
2845
2837
  methods = {
2846
2838
  on: on,
2847
- once: _once2,
2839
+ once: once,
2848
2840
  off: off,
2849
2841
  emit: emit
2850
2842
  };
2851
2843
 
2852
2844
  descriptors = {
2853
2845
  on: d(on),
2854
- once: d(_once2),
2846
+ once: d(once),
2855
2847
  off: d(off),
2856
2848
  emit: d(emit)
2857
2849
  };
2858
2850
 
2859
2851
  base = defineProperties({}, descriptors);
2860
2852
 
2861
- module.exports = exports = function exports(o) {
2853
+ module.exports = exports = function (o) {
2862
2854
  return o == null ? create(base) : defineProperties(Object(o), descriptors);
2863
2855
  };
2864
2856
  exports.methods = methods;
2865
2857
 
2866
2858
  /***/ }),
2867
- /* 14 */
2859
+ /* 13 */
2868
2860
  /***/ (function(module, exports, __webpack_require__) {
2869
2861
 
2870
2862
  "use strict";
2871
2863
 
2872
2864
 
2873
2865
  var isValue = __webpack_require__(6),
2874
- isPlainFunction = __webpack_require__(15),
2875
- assign = __webpack_require__(19),
2876
- normalizeOpts = __webpack_require__(27),
2877
- contains = __webpack_require__(28);
2866
+ isPlainFunction = __webpack_require__(14),
2867
+ assign = __webpack_require__(18),
2868
+ normalizeOpts = __webpack_require__(26),
2869
+ contains = __webpack_require__(27);
2878
2870
 
2879
2871
  var d = module.exports = function (dscr, value /*, options*/) {
2880
2872
  var c, e, w, options, desc;
@@ -2932,13 +2924,13 @@ d.gs = function (dscr, get, set /*, options*/) {
2932
2924
  };
2933
2925
 
2934
2926
  /***/ }),
2935
- /* 15 */
2927
+ /* 14 */
2936
2928
  /***/ (function(module, exports, __webpack_require__) {
2937
2929
 
2938
2930
  "use strict";
2939
2931
 
2940
2932
 
2941
- var isFunction = __webpack_require__(16);
2933
+ var isFunction = __webpack_require__(15);
2942
2934
 
2943
2935
  var classRe = /^\s*class[\s{/}]/,
2944
2936
  functionToString = Function.prototype.toString;
@@ -2950,13 +2942,13 @@ module.exports = function (value) {
2950
2942
  };
2951
2943
 
2952
2944
  /***/ }),
2953
- /* 16 */
2945
+ /* 15 */
2954
2946
  /***/ (function(module, exports, __webpack_require__) {
2955
2947
 
2956
2948
  "use strict";
2957
2949
 
2958
2950
 
2959
- var isPrototype = __webpack_require__(17);
2951
+ var isPrototype = __webpack_require__(16);
2960
2952
 
2961
2953
  module.exports = function (value) {
2962
2954
  if (typeof value !== "function") return false;
@@ -2975,13 +2967,13 @@ module.exports = function (value) {
2975
2967
  };
2976
2968
 
2977
2969
  /***/ }),
2978
- /* 17 */
2970
+ /* 16 */
2979
2971
  /***/ (function(module, exports, __webpack_require__) {
2980
2972
 
2981
2973
  "use strict";
2982
2974
 
2983
2975
 
2984
- var isObject = __webpack_require__(18);
2976
+ var isObject = __webpack_require__(17);
2985
2977
 
2986
2978
  module.exports = function (value) {
2987
2979
  if (!isObject(value)) return false;
@@ -2994,14 +2986,12 @@ module.exports = function (value) {
2994
2986
  };
2995
2987
 
2996
2988
  /***/ }),
2997
- /* 18 */
2989
+ /* 17 */
2998
2990
  /***/ (function(module, exports, __webpack_require__) {
2999
2991
 
3000
2992
  "use strict";
3001
2993
 
3002
2994
 
3003
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3004
-
3005
2995
  var isValue = __webpack_require__(6);
3006
2996
 
3007
2997
  // prettier-ignore
@@ -3009,20 +2999,20 @@ var possibleTypes = { "object": true, "function": true, "undefined": true /* doc
3009
2999
 
3010
3000
  module.exports = function (value) {
3011
3001
  if (!isValue(value)) return false;
3012
- return hasOwnProperty.call(possibleTypes, typeof value === "undefined" ? "undefined" : _typeof(value));
3002
+ return hasOwnProperty.call(possibleTypes, typeof value);
3013
3003
  };
3014
3004
 
3015
3005
  /***/ }),
3016
- /* 19 */
3006
+ /* 18 */
3017
3007
  /***/ (function(module, exports, __webpack_require__) {
3018
3008
 
3019
3009
  "use strict";
3020
3010
 
3021
3011
 
3022
- module.exports = __webpack_require__(20)() ? Object.assign : __webpack_require__(21);
3012
+ module.exports = __webpack_require__(19)() ? Object.assign : __webpack_require__(20);
3023
3013
 
3024
3014
  /***/ }),
3025
- /* 20 */
3015
+ /* 19 */
3026
3016
  /***/ (function(module, exports, __webpack_require__) {
3027
3017
 
3028
3018
  "use strict";
@@ -3038,14 +3028,14 @@ module.exports = function () {
3038
3028
  };
3039
3029
 
3040
3030
  /***/ }),
3041
- /* 21 */
3031
+ /* 20 */
3042
3032
  /***/ (function(module, exports, __webpack_require__) {
3043
3033
 
3044
3034
  "use strict";
3045
3035
 
3046
3036
 
3047
- var keys = __webpack_require__(22),
3048
- value = __webpack_require__(26),
3037
+ var keys = __webpack_require__(21),
3038
+ value = __webpack_require__(25),
3049
3039
  max = Math.max;
3050
3040
 
3051
3041
  module.exports = function (dest, src /*, …srcn*/) {
@@ -3054,7 +3044,7 @@ module.exports = function (dest, src /*, …srcn*/) {
3054
3044
  length = max(arguments.length, 2),
3055
3045
  assign;
3056
3046
  dest = Object(value(dest));
3057
- assign = function assign(key) {
3047
+ assign = function (key) {
3058
3048
  try {
3059
3049
  dest[key] = src[key];
3060
3050
  } catch (e) {
@@ -3070,16 +3060,16 @@ module.exports = function (dest, src /*, …srcn*/) {
3070
3060
  };
3071
3061
 
3072
3062
  /***/ }),
3073
- /* 22 */
3063
+ /* 21 */
3074
3064
  /***/ (function(module, exports, __webpack_require__) {
3075
3065
 
3076
3066
  "use strict";
3077
3067
 
3078
3068
 
3079
- module.exports = __webpack_require__(23)() ? Object.keys : __webpack_require__(24);
3069
+ module.exports = __webpack_require__(22)() ? Object.keys : __webpack_require__(23);
3080
3070
 
3081
3071
  /***/ }),
3082
- /* 23 */
3072
+ /* 22 */
3083
3073
  /***/ (function(module, exports, __webpack_require__) {
3084
3074
 
3085
3075
  "use strict";
@@ -3095,7 +3085,7 @@ module.exports = function () {
3095
3085
  };
3096
3086
 
3097
3087
  /***/ }),
3098
- /* 24 */
3088
+ /* 23 */
3099
3089
  /***/ (function(module, exports, __webpack_require__) {
3100
3090
 
3101
3091
  "use strict";
@@ -3110,7 +3100,7 @@ module.exports = function (object) {
3110
3100
  };
3111
3101
 
3112
3102
  /***/ }),
3113
- /* 25 */
3103
+ /* 24 */
3114
3104
  /***/ (function(module, exports, __webpack_require__) {
3115
3105
 
3116
3106
  "use strict";
@@ -3121,7 +3111,7 @@ module.exports = function (object) {
3121
3111
  module.exports = function () {};
3122
3112
 
3123
3113
  /***/ }),
3124
- /* 26 */
3114
+ /* 25 */
3125
3115
  /***/ (function(module, exports, __webpack_require__) {
3126
3116
 
3127
3117
  "use strict";
@@ -3135,7 +3125,7 @@ module.exports = function (value) {
3135
3125
  };
3136
3126
 
3137
3127
  /***/ }),
3138
- /* 27 */
3128
+ /* 26 */
3139
3129
  /***/ (function(module, exports, __webpack_require__) {
3140
3130
 
3141
3131
  "use strict";
@@ -3146,11 +3136,9 @@ var isValue = __webpack_require__(3);
3146
3136
  var forEach = Array.prototype.forEach,
3147
3137
  create = Object.create;
3148
3138
 
3149
- var process = function process(src, obj) {
3139
+ var process = function (src, obj) {
3150
3140
  var key;
3151
- for (key in src) {
3152
- obj[key] = src[key];
3153
- }
3141
+ for (key in src) obj[key] = src[key];
3154
3142
  };
3155
3143
 
3156
3144
  // eslint-disable-next-line no-unused-vars
@@ -3164,16 +3152,16 @@ module.exports = function (opts1 /*, …options*/) {
3164
3152
  };
3165
3153
 
3166
3154
  /***/ }),
3167
- /* 28 */
3155
+ /* 27 */
3168
3156
  /***/ (function(module, exports, __webpack_require__) {
3169
3157
 
3170
3158
  "use strict";
3171
3159
 
3172
3160
 
3173
- module.exports = __webpack_require__(29)() ? String.prototype.contains : __webpack_require__(30);
3161
+ module.exports = __webpack_require__(28)() ? String.prototype.contains : __webpack_require__(29);
3174
3162
 
3175
3163
  /***/ }),
3176
- /* 29 */
3164
+ /* 28 */
3177
3165
  /***/ (function(module, exports, __webpack_require__) {
3178
3166
 
3179
3167
  "use strict";
@@ -3187,7 +3175,7 @@ module.exports = function () {
3187
3175
  };
3188
3176
 
3189
3177
  /***/ }),
3190
- /* 30 */
3178
+ /* 29 */
3191
3179
  /***/ (function(module, exports, __webpack_require__) {
3192
3180
 
3193
3181
  "use strict";
@@ -3200,7 +3188,7 @@ module.exports = function (searchString /*, position*/) {
3200
3188
  };
3201
3189
 
3202
3190
  /***/ }),
3203
- /* 31 */
3191
+ /* 30 */
3204
3192
  /***/ (function(module, exports, __webpack_require__) {
3205
3193
 
3206
3194
  "use strict";
@@ -3212,13 +3200,13 @@ module.exports = function (fn) {
3212
3200
  };
3213
3201
 
3214
3202
  /***/ }),
3215
- /* 32 */
3203
+ /* 31 */
3216
3204
  /***/ (function(module, exports, __webpack_require__) {
3217
3205
 
3218
3206
  "use strict";
3219
3207
 
3220
3208
 
3221
- var value = __webpack_require__(33),
3209
+ var value = __webpack_require__(32),
3222
3210
  hasOwnProperty = Object.prototype.hasOwnProperty;
3223
3211
 
3224
3212
  module.exports = function (emitter /*, type*/) {
@@ -3237,13 +3225,13 @@ module.exports = function (emitter /*, type*/) {
3237
3225
  };
3238
3226
 
3239
3227
  /***/ }),
3240
- /* 33 */
3228
+ /* 32 */
3241
3229
  /***/ (function(module, exports, __webpack_require__) {
3242
3230
 
3243
3231
  "use strict";
3244
3232
 
3245
3233
 
3246
- var isObject = __webpack_require__(34);
3234
+ var isObject = __webpack_require__(33);
3247
3235
 
3248
3236
  module.exports = function (value) {
3249
3237
  if (!isObject(value)) throw new TypeError(value + " is not an Object");
@@ -3251,28 +3239,26 @@ module.exports = function (value) {
3251
3239
  };
3252
3240
 
3253
3241
  /***/ }),
3254
- /* 34 */
3242
+ /* 33 */
3255
3243
  /***/ (function(module, exports, __webpack_require__) {
3256
3244
 
3257
3245
  "use strict";
3258
3246
 
3259
3247
 
3260
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3261
-
3262
3248
  var isValue = __webpack_require__(3);
3263
3249
 
3264
3250
  var map = { function: true, object: true };
3265
3251
 
3266
3252
  module.exports = function (value) {
3267
- return isValue(value) && map[typeof value === "undefined" ? "undefined" : _typeof(value)] || false;
3253
+ return isValue(value) && map[typeof value] || false;
3268
3254
  };
3269
3255
 
3270
3256
  /***/ }),
3271
- /* 35 */
3257
+ /* 34 */
3272
3258
  /***/ (function(module, exports, __webpack_require__) {
3273
3259
 
3274
3260
 
3275
- var content = __webpack_require__(36);
3261
+ var content = __webpack_require__(35);
3276
3262
 
3277
3263
  if(typeof content === 'string') content = [[module.i, content, '']];
3278
3264
 
@@ -3293,7 +3279,7 @@ if(content.locals) module.exports = content.locals;
3293
3279
  if(false) {}
3294
3280
 
3295
3281
  /***/ }),
3296
- /* 36 */
3282
+ /* 35 */
3297
3283
  /***/ (function(module, exports, __webpack_require__) {
3298
3284
 
3299
3285
  exports = module.exports = __webpack_require__(1)(false);
@@ -3307,10 +3293,8 @@ exports.push([module.i, ".xgplayer-skin-default{background:#000;width:100%;heigh
3307
3293
 
3308
3294
 
3309
3295
  /***/ }),
3310
- /* 37 */
3311
- /***/ (function(module, exports, __webpack_require__) {
3312
-
3313
- "use strict";
3296
+ /* 36 */
3297
+ /***/ (function(module, exports) {
3314
3298
 
3315
3299
 
3316
3300
  /**
@@ -3402,7 +3386,7 @@ module.exports = function (css) {
3402
3386
  };
3403
3387
 
3404
3388
  /***/ }),
3405
- /* 38 */
3389
+ /* 37 */
3406
3390
  /***/ (function(module, exports, __webpack_require__) {
3407
3391
 
3408
3392
  "use strict";
@@ -3487,7 +3471,6 @@ var mobile = function mobile() {
3487
3471
  };
3488
3472
 
3489
3473
  function onReady(e) {
3490
- if (!player || !player.video) return;
3491
3474
  player.video.addEventListener('touchend', function (e) {
3492
3475
  player.onElementTouchend(e, player.video);
3493
3476
  });
@@ -3517,7 +3500,7 @@ exports.default = {
3517
3500
  module.exports = exports['default'];
3518
3501
 
3519
3502
  /***/ }),
3520
- /* 39 */
3503
+ /* 38 */
3521
3504
  /***/ (function(module, exports, __webpack_require__) {
3522
3505
 
3523
3506
  "use strict";
@@ -3644,6 +3627,12 @@ var pc = function pc() {
3644
3627
  function onDestroy() {
3645
3628
  root.removeEventListener('mouseenter', onMouseEnter);
3646
3629
  root.removeEventListener('mouseleave', onMouseLeave);
3630
+ var controls = player.controls;
3631
+ if (controls) {
3632
+ controls.removeEventListener('mouseleave', onControlMouseLeave);
3633
+ controls.removeEventListener('mouseenter', onControlMouseEnter);
3634
+ controls.removeEventListener('click', onControlClick);
3635
+ }
3647
3636
  player.off('ready', onReady);
3648
3637
  player.off('destroy', onDestroy);
3649
3638
  }
@@ -3657,7 +3646,7 @@ exports.default = {
3657
3646
  module.exports = exports['default'];
3658
3647
 
3659
3648
  /***/ }),
3660
- /* 40 */
3649
+ /* 39 */
3661
3650
  /***/ (function(module, exports, __webpack_require__) {
3662
3651
 
3663
3652
  "use strict";
@@ -3730,7 +3719,7 @@ exports.default = {
3730
3719
  module.exports = exports['default'];
3731
3720
 
3732
3721
  /***/ }),
3733
- /* 41 */
3722
+ /* 40 */
3734
3723
  /***/ (function(module, exports, __webpack_require__) {
3735
3724
 
3736
3725
  "use strict";
@@ -3742,15 +3731,15 @@ Object.defineProperty(exports, "__esModule", {
3742
3731
 
3743
3732
  var _util = __webpack_require__(0);
3744
3733
 
3745
- var _startPlay = __webpack_require__(42);
3734
+ var _startPlay = __webpack_require__(41);
3746
3735
 
3747
3736
  var _startPlay2 = _interopRequireDefault(_startPlay);
3748
3737
 
3749
- var _startPause = __webpack_require__(43);
3738
+ var _startPause = __webpack_require__(42);
3750
3739
 
3751
3740
  var _startPause2 = _interopRequireDefault(_startPause);
3752
3741
 
3753
- __webpack_require__(44);
3742
+ __webpack_require__(43);
3754
3743
 
3755
3744
  function _interopRequireDefault(obj) {
3756
3745
  return obj && obj.__esModule ? obj : { default: obj };
@@ -3815,7 +3804,7 @@ exports.default = {
3815
3804
  module.exports = exports['default'];
3816
3805
 
3817
3806
  /***/ }),
3818
- /* 42 */
3807
+ /* 41 */
3819
3808
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3820
3809
 
3821
3810
  "use strict";
@@ -3823,7 +3812,7 @@ __webpack_require__.r(__webpack_exports__);
3823
3812
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"70\" height=\"70\" viewBox=\"0 0 70 70\">\n <path transform=\"translate(15,15) scale(0.04,0.04)\" d=\"M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z\"></path>\n</svg>\n");
3824
3813
 
3825
3814
  /***/ }),
3826
- /* 43 */
3815
+ /* 42 */
3827
3816
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
3828
3817
 
3829
3818
  "use strict";
@@ -3831,11 +3820,11 @@ __webpack_require__.r(__webpack_exports__);
3831
3820
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"70\" height=\"70\" viewBox=\"0 0 70 70\">\n <path transform=\"translate(15,15) scale(0.04 0.04)\" d=\"M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z\"></path>\n</svg>\n");
3832
3821
 
3833
3822
  /***/ }),
3834
- /* 44 */
3823
+ /* 43 */
3835
3824
  /***/ (function(module, exports, __webpack_require__) {
3836
3825
 
3837
3826
 
3838
- var content = __webpack_require__(45);
3827
+ var content = __webpack_require__(44);
3839
3828
 
3840
3829
  if(typeof content === 'string') content = [[module.i, content, '']];
3841
3830
 
@@ -3856,7 +3845,7 @@ if(content.locals) module.exports = content.locals;
3856
3845
  if(false) {}
3857
3846
 
3858
3847
  /***/ }),
3859
- /* 45 */
3848
+ /* 44 */
3860
3849
  /***/ (function(module, exports, __webpack_require__) {
3861
3850
 
3862
3851
  exports = module.exports = __webpack_require__(1)(false);
@@ -3870,7 +3859,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-start{border-radius:50
3870
3859
 
3871
3860
 
3872
3861
  /***/ }),
3873
- /* 46 */
3862
+ /* 45 */
3874
3863
  /***/ (function(module, exports, __webpack_require__) {
3875
3864
 
3876
3865
  "use strict";
@@ -4026,7 +4015,7 @@ exports.default = {
4026
4015
  module.exports = exports['default'];
4027
4016
 
4028
4017
  /***/ }),
4029
- /* 47 */
4018
+ /* 46 */
4030
4019
  /***/ (function(module, exports, __webpack_require__) {
4031
4020
 
4032
4021
  "use strict";
@@ -4073,7 +4062,7 @@ exports.default = {
4073
4062
  module.exports = exports['default'];
4074
4063
 
4075
4064
  /***/ }),
4076
- /* 48 */
4065
+ /* 47 */
4077
4066
  /***/ (function(module, exports, __webpack_require__) {
4078
4067
 
4079
4068
  "use strict";
@@ -4116,7 +4105,7 @@ exports.default = {
4116
4105
  module.exports = exports['default'];
4117
4106
 
4118
4107
  /***/ }),
4119
- /* 49 */
4108
+ /* 48 */
4120
4109
  /***/ (function(module, exports, __webpack_require__) {
4121
4110
 
4122
4111
  "use strict";
@@ -4128,15 +4117,15 @@ Object.defineProperty(exports, "__esModule", {
4128
4117
 
4129
4118
  var _util = __webpack_require__(0);
4130
4119
 
4131
- var _play = __webpack_require__(50);
4120
+ var _play = __webpack_require__(49);
4132
4121
 
4133
4122
  var _play2 = _interopRequireDefault(_play);
4134
4123
 
4135
- var _pause = __webpack_require__(51);
4124
+ var _pause = __webpack_require__(50);
4136
4125
 
4137
4126
  var _pause2 = _interopRequireDefault(_pause);
4138
4127
 
4139
- __webpack_require__(52);
4128
+ __webpack_require__(51);
4140
4129
 
4141
4130
  function _interopRequireDefault(obj) {
4142
4131
  return obj && obj.__esModule ? obj : { default: obj };
@@ -4179,7 +4168,7 @@ exports.default = {
4179
4168
  module.exports = exports['default'];
4180
4169
 
4181
4170
  /***/ }),
4182
- /* 50 */
4171
+ /* 49 */
4183
4172
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4184
4173
 
4185
4174
  "use strict";
@@ -4187,7 +4176,7 @@ __webpack_require__.r(__webpack_exports__);
4187
4176
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\">\n <path transform=\"translate(2,2) scale(0.0320625 0.0320625)\" d=\"M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z\"></path>\n</svg>\n");
4188
4177
 
4189
4178
  /***/ }),
4190
- /* 51 */
4179
+ /* 50 */
4191
4180
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4192
4181
 
4193
4182
  "use strict";
@@ -4195,11 +4184,11 @@ __webpack_require__.r(__webpack_exports__);
4195
4184
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\">\n <path transform=\"translate(2,2) scale(0.0320625 0.0320625)\" d=\"M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z\"></path>\n</svg>\n");
4196
4185
 
4197
4186
  /***/ }),
4198
- /* 52 */
4187
+ /* 51 */
4199
4188
  /***/ (function(module, exports, __webpack_require__) {
4200
4189
 
4201
4190
 
4202
- var content = __webpack_require__(53);
4191
+ var content = __webpack_require__(52);
4203
4192
 
4204
4193
  if(typeof content === 'string') content = [[module.i, content, '']];
4205
4194
 
@@ -4220,7 +4209,7 @@ if(content.locals) module.exports = content.locals;
4220
4209
  if(false) {}
4221
4210
 
4222
4211
  /***/ }),
4223
- /* 53 */
4212
+ /* 52 */
4224
4213
  /***/ (function(module, exports, __webpack_require__) {
4225
4214
 
4226
4215
  exports = module.exports = __webpack_require__(1)(false);
@@ -4234,7 +4223,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-play,.xgplayer-skin-de
4234
4223
 
4235
4224
 
4236
4225
  /***/ }),
4237
- /* 54 */
4226
+ /* 53 */
4238
4227
  /***/ (function(module, exports, __webpack_require__) {
4239
4228
 
4240
4229
  "use strict";
@@ -4246,7 +4235,7 @@ Object.defineProperty(exports, "__esModule", {
4246
4235
 
4247
4236
  var _util = __webpack_require__(0);
4248
4237
 
4249
- __webpack_require__(55);
4238
+ __webpack_require__(54);
4250
4239
 
4251
4240
  var s_poster = function s_poster() {
4252
4241
  var player = this;
@@ -4266,11 +4255,11 @@ exports.default = {
4266
4255
  module.exports = exports['default'];
4267
4256
 
4268
4257
  /***/ }),
4269
- /* 55 */
4258
+ /* 54 */
4270
4259
  /***/ (function(module, exports, __webpack_require__) {
4271
4260
 
4272
4261
 
4273
- var content = __webpack_require__(56);
4262
+ var content = __webpack_require__(55);
4274
4263
 
4275
4264
  if(typeof content === 'string') content = [[module.i, content, '']];
4276
4265
 
@@ -4291,7 +4280,7 @@ if(content.locals) module.exports = content.locals;
4291
4280
  if(false) {}
4292
4281
 
4293
4282
  /***/ }),
4294
- /* 56 */
4283
+ /* 55 */
4295
4284
  /***/ (function(module, exports, __webpack_require__) {
4296
4285
 
4297
4286
  exports = module.exports = __webpack_require__(1)(false);
@@ -4305,7 +4294,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-poster{display:none;po
4305
4294
 
4306
4295
 
4307
4296
  /***/ }),
4308
- /* 57 */
4297
+ /* 56 */
4309
4298
  /***/ (function(module, exports, __webpack_require__) {
4310
4299
 
4311
4300
  "use strict";
@@ -4317,7 +4306,7 @@ Object.defineProperty(exports, "__esModule", {
4317
4306
 
4318
4307
  var _util = __webpack_require__(0);
4319
4308
 
4320
- __webpack_require__(58);
4309
+ __webpack_require__(57);
4321
4310
 
4322
4311
  var s_flex = function s_flex() {
4323
4312
  var player = this;
@@ -4332,11 +4321,11 @@ exports.default = {
4332
4321
  module.exports = exports['default'];
4333
4322
 
4334
4323
  /***/ }),
4335
- /* 58 */
4324
+ /* 57 */
4336
4325
  /***/ (function(module, exports, __webpack_require__) {
4337
4326
 
4338
4327
 
4339
- var content = __webpack_require__(59);
4328
+ var content = __webpack_require__(58);
4340
4329
 
4341
4330
  if(typeof content === 'string') content = [[module.i, content, '']];
4342
4331
 
@@ -4357,7 +4346,7 @@ if(content.locals) module.exports = content.locals;
4357
4346
  if(false) {}
4358
4347
 
4359
4348
  /***/ }),
4360
- /* 59 */
4349
+ /* 58 */
4361
4350
  /***/ (function(module, exports, __webpack_require__) {
4362
4351
 
4363
4352
  exports = module.exports = __webpack_require__(1)(false);
@@ -4371,7 +4360,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-placeholder{-webkit-fl
4371
4360
 
4372
4361
 
4373
4362
  /***/ }),
4374
- /* 60 */
4363
+ /* 59 */
4375
4364
  /***/ (function(module, exports, __webpack_require__) {
4376
4365
 
4377
4366
  "use strict";
@@ -4383,15 +4372,15 @@ Object.defineProperty(exports, "__esModule", {
4383
4372
 
4384
4373
  var _util = __webpack_require__(0);
4385
4374
 
4386
- var _requestFull = __webpack_require__(61);
4375
+ var _requestFull = __webpack_require__(60);
4387
4376
 
4388
4377
  var _requestFull2 = _interopRequireDefault(_requestFull);
4389
4378
 
4390
- var _exitFull = __webpack_require__(62);
4379
+ var _exitFull = __webpack_require__(61);
4391
4380
 
4392
4381
  var _exitFull2 = _interopRequireDefault(_exitFull);
4393
4382
 
4394
- __webpack_require__(63);
4383
+ __webpack_require__(62);
4395
4384
 
4396
4385
  function _interopRequireDefault(obj) {
4397
4386
  return obj && obj.__esModule ? obj : { default: obj };
@@ -4434,7 +4423,7 @@ exports.default = {
4434
4423
  module.exports = exports['default'];
4435
4424
 
4436
4425
  /***/ }),
4437
- /* 61 */
4426
+ /* 60 */
4438
4427
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4439
4428
 
4440
4429
  "use strict";
@@ -4442,7 +4431,7 @@ __webpack_require__.r(__webpack_exports__);
4442
4431
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\">\n <path transform=\"scale(0.0320625 0.0320625)\" d=\"M598 214h212v212h-84v-128h-128v-84zM726 726v-128h84v212h-212v-84h128zM214 426v-212h212v84h-128v128h-84zM298 598v128h128v84h-212v-212h84z\"></path>\n</svg>\n");
4443
4432
 
4444
4433
  /***/ }),
4445
- /* 62 */
4434
+ /* 61 */
4446
4435
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4447
4436
 
4448
4437
  "use strict";
@@ -4450,11 +4439,11 @@ __webpack_require__.r(__webpack_exports__);
4450
4439
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"40\" height=\"40\" viewBox=\"0 0 40 40\">\n <path transform=\"scale(0.0320625 0.0320625)\" d=\"M682 342h128v84h-212v-212h84v128zM598 810v-212h212v84h-128v128h-84zM342 342v-128h84v212h-212v-84h128zM214 682v-84h212v212h-84v-128h-128z\"></path>\n</svg>\n");
4451
4440
 
4452
4441
  /***/ }),
4453
- /* 63 */
4442
+ /* 62 */
4454
4443
  /***/ (function(module, exports, __webpack_require__) {
4455
4444
 
4456
4445
 
4457
- var content = __webpack_require__(64);
4446
+ var content = __webpack_require__(63);
4458
4447
 
4459
4448
  if(typeof content === 'string') content = [[module.i, content, '']];
4460
4449
 
@@ -4475,7 +4464,7 @@ if(content.locals) module.exports = content.locals;
4475
4464
  if(false) {}
4476
4465
 
4477
4466
  /***/ }),
4478
- /* 64 */
4467
+ /* 63 */
4479
4468
  /***/ (function(module, exports, __webpack_require__) {
4480
4469
 
4481
4470
  exports = module.exports = __webpack_require__(1)(false);
@@ -4489,7 +4478,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-fullscreen,.xgplayer-s
4489
4478
 
4490
4479
 
4491
4480
  /***/ }),
4492
- /* 65 */
4481
+ /* 64 */
4493
4482
  /***/ (function(module, exports, __webpack_require__) {
4494
4483
 
4495
4484
  "use strict";
@@ -4501,11 +4490,11 @@ Object.defineProperty(exports, "__esModule", {
4501
4490
 
4502
4491
  var _util = __webpack_require__(0);
4503
4492
 
4504
- var _loading = __webpack_require__(66);
4493
+ var _loading = __webpack_require__(65);
4505
4494
 
4506
4495
  var _loading2 = _interopRequireDefault(_loading);
4507
4496
 
4508
- __webpack_require__(67);
4497
+ __webpack_require__(66);
4509
4498
 
4510
4499
  function _interopRequireDefault(obj) {
4511
4500
  return obj && obj.__esModule ? obj : { default: obj };
@@ -4527,7 +4516,7 @@ exports.default = {
4527
4516
  module.exports = exports['default'];
4528
4517
 
4529
4518
  /***/ }),
4530
- /* 66 */
4519
+ /* 65 */
4531
4520
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4532
4521
 
4533
4522
  "use strict";
@@ -4535,11 +4524,11 @@ __webpack_require__.r(__webpack_exports__);
4535
4524
  /* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100\" height=\"100\" viewbox=\"0 0 100 100\">\n <path d=\"M100,50A50,50,0,1,1,50,0\"></path>\n</svg>\n");
4536
4525
 
4537
4526
  /***/ }),
4538
- /* 67 */
4527
+ /* 66 */
4539
4528
  /***/ (function(module, exports, __webpack_require__) {
4540
4529
 
4541
4530
 
4542
- var content = __webpack_require__(68);
4531
+ var content = __webpack_require__(67);
4543
4532
 
4544
4533
  if(typeof content === 'string') content = [[module.i, content, '']];
4545
4534
 
@@ -4560,7 +4549,7 @@ if(content.locals) module.exports = content.locals;
4560
4549
  if(false) {}
4561
4550
 
4562
4551
  /***/ }),
4563
- /* 68 */
4552
+ /* 67 */
4564
4553
  /***/ (function(module, exports, __webpack_require__) {
4565
4554
 
4566
4555
  exports = module.exports = __webpack_require__(1)(false);
@@ -4574,7 +4563,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-loading{display:none;w
4574
4563
 
4575
4564
 
4576
4565
  /***/ }),
4577
- /* 69 */
4566
+ /* 68 */
4578
4567
  /***/ (function(module, exports, __webpack_require__) {
4579
4568
 
4580
4569
  "use strict";
@@ -4590,7 +4579,7 @@ var _sniffer = __webpack_require__(5);
4590
4579
 
4591
4580
  var _sniffer2 = _interopRequireDefault(_sniffer);
4592
4581
 
4593
- __webpack_require__(70);
4582
+ __webpack_require__(69);
4594
4583
 
4595
4584
  function _interopRequireDefault(obj) {
4596
4585
  return obj && obj.__esModule ? obj : { default: obj };
@@ -4757,35 +4746,85 @@ var s_progress = function s_progress() {
4757
4746
  // 解决在移动端触发多次seeking问题
4758
4747
  events.pop();
4759
4748
  }
4760
- events.forEach(function (item) {
4761
- container.addEventListener(item, function (e) {
4762
- if (player.config.disableProgress) return;
4749
+
4750
+ var move = null;
4751
+ var _up = null;
4752
+ var down = function down(e) {
4753
+ if (player.config.disableProgress) return;
4754
+ // e.preventDefault()
4755
+ e.stopPropagation();
4756
+ (0, _util.event)(e);
4757
+ if (e._target === point || !player.config.allowSeekAfterEnded && player.ended) {
4758
+ return true;
4759
+ }
4760
+
4761
+ container.focus();
4762
+
4763
+ var _progress$getBounding = progress.getBoundingClientRect(),
4764
+ left = _progress$getBounding.left;
4765
+
4766
+ var isRotate = isRotateFullscreen(player);
4767
+ if (isRotate) {
4768
+ left = progress.getBoundingClientRect().top;
4769
+ containerWidth = container.getBoundingClientRect().height;
4770
+ } else {
4771
+ containerWidth = container.getBoundingClientRect().width;
4772
+ left = progress.getBoundingClientRect().left;
4773
+ }
4774
+
4775
+ move = function move(e) {
4763
4776
  // e.preventDefault()
4764
4777
  e.stopPropagation();
4765
4778
  (0, _util.event)(e);
4766
- if (e._target === point || !player.config.allowSeekAfterEnded && player.ended) {
4767
- return true;
4779
+ player.isProgressMoving = true;
4780
+ var w = (isRotate ? e.clientY : e.clientX) - left;
4781
+ if (w > containerWidth) {
4782
+ w = containerWidth;
4783
+ }
4784
+ var now = w / containerWidth * player.duration;
4785
+ if (now < 0) now = 0;
4786
+ if (player.config.allowSeekPlayed && Number(now).toFixed(1) > player.maxPlayedTime) {} else {
4787
+ progress.style.width = w * 100 / containerWidth + '%';
4788
+
4789
+ if (player.videoConfig.mediaType === 'video' && !player.dash && !player.config.closeMoveSeek) {
4790
+ console.log('trigger touchmove');
4791
+ player.currentTime = Number(now).toFixed(1);
4792
+ } else {
4793
+ var time = (0, _util.findDom)(player.controls, '.xgplayer-time');
4794
+ if (time) {
4795
+ time.innerHTML = '<span class="xgplayer-time-current">' + (0, _util.format)(now || 0) + '</span><span>' + (0, _util.format)(player.duration) + '</span>';
4796
+ }
4797
+ }
4768
4798
  }
4769
4799
 
4770
- container.focus();
4771
-
4772
- var _progress$getBounding = progress.getBoundingClientRect(),
4773
- left = _progress$getBounding.left;
4800
+ if (player.config.thumbnail && player.config.thumbnail.isShowCoverPreview) {
4801
+ coverPreviewPoint.innerHTML = '<span>' + (0, _util.format)(now) + '</span> / ' + (0, _util.format)(player.duration || 0);
4774
4802
 
4775
- var isRotate = isRotateFullscreen(player);
4776
- if (isRotate) {
4777
- left = progress.getBoundingClientRect().top;
4778
- containerWidth = container.getBoundingClientRect().height;
4779
- } else {
4780
- containerWidth = container.getBoundingClientRect().width;
4781
- left = progress.getBoundingClientRect().left;
4803
+ interval = player.duration / tnailPicNum;
4804
+ var index = Math.floor(now / interval);
4805
+ thumbnail.style.backgroundImage = 'url(' + tnailUrls[Math.ceil((index + 1) / (tnailCol * tnailRow)) - 1] + ')';
4806
+ var indexInPage = index + 1 - tnailCol * tnailRow * (Math.ceil((index + 1) / (tnailCol * tnailRow)) - 1);
4807
+ var tnaiRowIndex = Math.ceil(indexInPage / tnailRow) - 1;
4808
+ var tnaiColIndex = indexInPage - tnaiRowIndex * tnailRow - 1;
4809
+ thumbnail.style['background-position'] = '-' + tnaiColIndex * tnailWidth + 'px -' + tnaiRowIndex * tnailHeight + 'px';
4810
+ coverPreviewContainer.style.display = 'block';
4782
4811
  }
4783
4812
 
4784
- var move = function move(e) {
4785
- // e.preventDefault()
4786
- e.stopPropagation();
4787
- (0, _util.event)(e);
4788
- player.isProgressMoving = true;
4813
+ player.emit('focus');
4814
+ };
4815
+ _up = function up(e) {
4816
+ console.log('up event', e);
4817
+ // e.preventDefault()
4818
+ e.stopPropagation();
4819
+ (0, _util.event)(e);
4820
+ window.removeEventListener('mousemove', move);
4821
+ window.removeEventListener('touchmove', move, { passive: false });
4822
+ window.removeEventListener('mouseup', _up);
4823
+ window.removeEventListener('touchend', _up);
4824
+ if (_sniffer2.default.browser.indexOf('ie') < 0) {
4825
+ container.blur();
4826
+ }
4827
+ if (!player.isProgressMoving || player.videoConfig && player.videoConfig.mediaType === 'audio' || player.dash || player.config.closeMoveSeek) {
4789
4828
  var w = (isRotate ? e.clientY : e.clientX) - left;
4790
4829
  if (w > containerWidth) {
4791
4830
  w = containerWidth;
@@ -4794,77 +4833,31 @@ var s_progress = function s_progress() {
4794
4833
  if (now < 0) now = 0;
4795
4834
  if (player.config.allowSeekPlayed && Number(now).toFixed(1) > player.maxPlayedTime) {} else {
4796
4835
  progress.style.width = w * 100 / containerWidth + '%';
4797
-
4798
- if (player.videoConfig.mediaType === 'video' && !player.dash && !player.config.closeMoveSeek) {
4799
- console.log('trigger touchmove');
4800
- player.currentTime = Number(now).toFixed(1);
4801
- } else {
4802
- var time = (0, _util.findDom)(player.controls, '.xgplayer-time');
4803
- if (time) {
4804
- time.innerHTML = '<span class="xgplayer-time-current">' + (0, _util.format)(now || 0) + '</span><span>' + (0, _util.format)(player.duration) + '</span>';
4805
- }
4806
- }
4807
- }
4808
-
4809
- if (player.config.thumbnail && player.config.thumbnail.isShowCoverPreview) {
4810
- coverPreviewPoint.innerHTML = '<span>' + (0, _util.format)(now) + '</span> / ' + (0, _util.format)(player.duration || 0);
4811
-
4812
- interval = player.duration / tnailPicNum;
4813
- var index = Math.floor(now / interval);
4814
- thumbnail.style.backgroundImage = 'url(' + tnailUrls[Math.ceil((index + 1) / (tnailCol * tnailRow)) - 1] + ')';
4815
- var indexInPage = index + 1 - tnailCol * tnailRow * (Math.ceil((index + 1) / (tnailCol * tnailRow)) - 1);
4816
- var tnaiRowIndex = Math.ceil(indexInPage / tnailRow) - 1;
4817
- var tnaiColIndex = indexInPage - tnaiRowIndex * tnailRow - 1;
4818
- thumbnail.style['background-position'] = '-' + tnaiColIndex * tnailWidth + 'px -' + tnaiRowIndex * tnailHeight + 'px';
4819
- coverPreviewContainer.style.display = 'block';
4820
- }
4821
-
4822
- player.emit('focus');
4823
- };
4824
- var up = function up(e) {
4825
- console.log('up event', e);
4826
- // e.preventDefault()
4827
- e.stopPropagation();
4828
- (0, _util.event)(e);
4829
- window.removeEventListener('mousemove', move);
4830
- window.removeEventListener('touchmove', move, { passive: false });
4831
- window.removeEventListener('mouseup', up);
4832
- window.removeEventListener('touchend', up);
4833
- if (_sniffer2.default.browser.indexOf('ie') < 0) {
4834
- container.blur();
4836
+ console.warn('trigger touchup');
4837
+ player.currentTime = Number(now).toFixed(1);
4835
4838
  }
4836
- if (!player.isProgressMoving || player.videoConfig && player.videoConfig.mediaType === 'audio' || player.dash || player.config.closeMoveSeek) {
4837
- var w = (isRotate ? e.clientY : e.clientX) - left;
4838
- if (w > containerWidth) {
4839
- w = containerWidth;
4840
- }
4841
- var now = w / containerWidth * player.duration;
4842
- if (now < 0) now = 0;
4843
- if (player.config.allowSeekPlayed && Number(now).toFixed(1) > player.maxPlayedTime) {} else {
4844
- progress.style.width = w * 100 / containerWidth + '%';
4845
- console.warn('trigger touchup');
4846
- player.currentTime = Number(now).toFixed(1);
4847
- }
4848
- }
4849
- if (player.config.thumbnail && player.config.thumbnail.isShowCoverPreview) {
4850
- coverPreviewContainer.style.display = 'none';
4851
- }
4852
- player.emit('focus');
4853
- player.isProgressMoving = false;
4854
- };
4855
- // if (item === 'touchstart') {
4856
- window.addEventListener('touchmove', move, { passive: false });
4857
- window.addEventListener('touchend', up);
4858
- // } else {
4859
- window.addEventListener('mousemove', move);
4860
- // console.warn('add envent mouseup')
4861
- window.addEventListener('mouseup', up);
4862
- // }
4863
- return true;
4864
- });
4839
+ }
4840
+ if (player.config.thumbnail && player.config.thumbnail.isShowCoverPreview) {
4841
+ coverPreviewContainer.style.display = 'none';
4842
+ }
4843
+ player.emit('focus');
4844
+ player.isProgressMoving = false;
4845
+ };
4846
+ // if (item === 'touchstart') {
4847
+ window.addEventListener('touchmove', move, { passive: false });
4848
+ window.addEventListener('touchend', _up);
4849
+ // } else {
4850
+ window.addEventListener('mousemove', move);
4851
+ // console.warn('add envent mouseup')
4852
+ window.addEventListener('mouseup', _up);
4853
+ // }
4854
+ return true;
4855
+ };
4856
+ events.forEach(function (item) {
4857
+ container.addEventListener(item, down);
4865
4858
  });
4866
4859
 
4867
- container.addEventListener('mouseenter', function (e) {
4860
+ var onMouseEnter = function onMouseEnter(e) {
4868
4861
  if (!player.config.allowSeekAfterEnded && player.ended) {
4869
4862
  return true;
4870
4863
  }
@@ -4919,7 +4912,8 @@ var s_progress = function s_progress() {
4919
4912
  container.addEventListener('mousemove', move, false);
4920
4913
  container.addEventListener('mouseleave', leave, false);
4921
4914
  compute(e);
4922
- }, false);
4915
+ };
4916
+ container.addEventListener('mouseenter', onMouseEnter, false);
4923
4917
 
4924
4918
  // let lastBtnLeft = false
4925
4919
  var onTimeupdate = function onTimeupdate() {
@@ -4979,6 +4973,14 @@ var s_progress = function s_progress() {
4979
4973
  player.off('currentTimeChange', onCurrentTimeChange);
4980
4974
  player.off('srcChange', onSrcChange);
4981
4975
  player.off('loadedmetadata', onLoadedmetadata);
4976
+ container.removeEventListener('mouseenter', onMouseEnter, false);
4977
+ events.forEach(function (item) {
4978
+ container.removeEventListener(item, down);
4979
+ });
4980
+ window.removeEventListener('mousemove', move);
4981
+ window.removeEventListener('touchmove', move, { passive: false });
4982
+ window.removeEventListener('mouseup', _up);
4983
+ window.removeEventListener('touchend', _up);
4982
4984
  cacheUpdateEvents.forEach(function (item) {
4983
4985
  player.off(item, onCacheUpdate);
4984
4986
  });
@@ -4994,11 +4996,11 @@ exports.default = {
4994
4996
  module.exports = exports['default'];
4995
4997
 
4996
4998
  /***/ }),
4997
- /* 70 */
4999
+ /* 69 */
4998
5000
  /***/ (function(module, exports, __webpack_require__) {
4999
5001
 
5000
5002
 
5001
- var content = __webpack_require__(71);
5003
+ var content = __webpack_require__(70);
5002
5004
 
5003
5005
  if(typeof content === 'string') content = [[module.i, content, '']];
5004
5006
 
@@ -5019,7 +5021,7 @@ if(content.locals) module.exports = content.locals;
5019
5021
  if(false) {}
5020
5022
 
5021
5023
  /***/ }),
5022
- /* 71 */
5024
+ /* 70 */
5023
5025
  /***/ (function(module, exports, __webpack_require__) {
5024
5026
 
5025
5027
  exports = module.exports = __webpack_require__(1)(false);
@@ -5033,7 +5035,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-progress{display:block
5033
5035
 
5034
5036
 
5035
5037
  /***/ }),
5036
- /* 72 */
5038
+ /* 71 */
5037
5039
  /***/ (function(module, exports, __webpack_require__) {
5038
5040
 
5039
5041
  "use strict";
@@ -5045,7 +5047,7 @@ Object.defineProperty(exports, "__esModule", {
5045
5047
 
5046
5048
  var _util = __webpack_require__(0);
5047
5049
 
5048
- __webpack_require__(73);
5050
+ __webpack_require__(72);
5049
5051
 
5050
5052
  var s_time = function s_time() {
5051
5053
  var player = this;
@@ -5086,11 +5088,11 @@ exports.default = {
5086
5088
  module.exports = exports['default'];
5087
5089
 
5088
5090
  /***/ }),
5089
- /* 73 */
5091
+ /* 72 */
5090
5092
  /***/ (function(module, exports, __webpack_require__) {
5091
5093
 
5092
5094
 
5093
- var content = __webpack_require__(74);
5095
+ var content = __webpack_require__(73);
5094
5096
 
5095
5097
  if(typeof content === 'string') content = [[module.i, content, '']];
5096
5098
 
@@ -5111,7 +5113,7 @@ if(content.locals) module.exports = content.locals;
5111
5113
  if(false) {}
5112
5114
 
5113
5115
  /***/ }),
5114
- /* 74 */
5116
+ /* 73 */
5115
5117
  /***/ (function(module, exports, __webpack_require__) {
5116
5118
 
5117
5119
  exports = module.exports = __webpack_require__(1)(false);
@@ -5125,7 +5127,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-time{-webkit-order:2;-
5125
5127
 
5126
5128
 
5127
5129
  /***/ }),
5128
- /* 75 */
5130
+ /* 74 */
5129
5131
  /***/ (function(module, exports, __webpack_require__) {
5130
5132
 
5131
5133
  "use strict";
@@ -5137,11 +5139,11 @@ Object.defineProperty(exports, "__esModule", {
5137
5139
 
5138
5140
  var _util = __webpack_require__(0);
5139
5141
 
5140
- var _replay = __webpack_require__(76);
5142
+ var _replay = __webpack_require__(75);
5141
5143
 
5142
5144
  var _replay2 = _interopRequireDefault(_replay);
5143
5145
 
5144
- __webpack_require__(77);
5146
+ __webpack_require__(76);
5145
5147
 
5146
5148
  function _interopRequireDefault(obj) {
5147
5149
  return obj && obj.__esModule ? obj : { default: obj };
@@ -5200,7 +5202,7 @@ exports.default = {
5200
5202
  module.exports = exports['default'];
5201
5203
 
5202
5204
  /***/ }),
5203
- /* 76 */
5205
+ /* 75 */
5204
5206
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5205
5207
 
5206
5208
  "use strict";
@@ -5208,11 +5210,11 @@ __webpack_require__.r(__webpack_exports__);
5208
5210
  /* harmony default export */ __webpack_exports__["default"] = ("<svg class=\"xgplayer-replay-svg\" xmlns=\"http://www.w3.org/2000/svg\" width=\"78\" height=\"78\" viewbox=\"0 0 78 78\">\n <path d=\"M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z\"></path>\n</svg>\n");
5209
5211
 
5210
5212
  /***/ }),
5211
- /* 77 */
5213
+ /* 76 */
5212
5214
  /***/ (function(module, exports, __webpack_require__) {
5213
5215
 
5214
5216
 
5215
- var content = __webpack_require__(78);
5217
+ var content = __webpack_require__(77);
5216
5218
 
5217
5219
  if(typeof content === 'string') content = [[module.i, content, '']];
5218
5220
 
@@ -5233,7 +5235,7 @@ if(content.locals) module.exports = content.locals;
5233
5235
  if(false) {}
5234
5236
 
5235
5237
  /***/ }),
5236
- /* 78 */
5238
+ /* 77 */
5237
5239
  /***/ (function(module, exports, __webpack_require__) {
5238
5240
 
5239
5241
  exports = module.exports = __webpack_require__(1)(false);
@@ -5247,6 +5249,7 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-replay{position:absolu
5247
5249
 
5248
5250
 
5249
5251
  /***/ }),
5252
+ /* 78 */,
5250
5253
  /* 79 */,
5251
5254
  /* 80 */,
5252
5255
  /* 81 */,
@@ -5340,24 +5343,14 @@ exports.push([module.i, ".xgplayer-skin-default .xgplayer-replay{position:absolu
5340
5343
  /* 169 */,
5341
5344
  /* 170 */,
5342
5345
  /* 171 */,
5343
- /* 172 */,
5344
- /* 173 */,
5345
- /* 174 */,
5346
- /* 175 */,
5347
- /* 176 */,
5348
- /* 177 */,
5349
- /* 178 */,
5350
- /* 179 */,
5351
- /* 180 */,
5352
- /* 181 */,
5353
- /* 182 */
5346
+ /* 172 */
5354
5347
  /***/ (function(module, exports, __webpack_require__) {
5355
5348
 
5356
- module.exports = __webpack_require__(183);
5349
+ module.exports = __webpack_require__(173);
5357
5350
 
5358
5351
 
5359
5352
  /***/ }),
5360
- /* 183 */
5353
+ /* 173 */
5361
5354
  /***/ (function(module, exports, __webpack_require__) {
5362
5355
 
5363
5356
  "use strict";
@@ -5371,63 +5364,63 @@ var _player = __webpack_require__(9);
5371
5364
 
5372
5365
  var _player2 = _interopRequireDefault(_player);
5373
5366
 
5374
- var _flex = __webpack_require__(57);
5367
+ var _flex = __webpack_require__(56);
5375
5368
 
5376
5369
  var _flex2 = _interopRequireDefault(_flex);
5377
5370
 
5378
- var _fullscreen = __webpack_require__(46);
5371
+ var _fullscreen = __webpack_require__(45);
5379
5372
 
5380
5373
  var _fullscreen2 = _interopRequireDefault(_fullscreen);
5381
5374
 
5382
- var _fullscreen3 = __webpack_require__(60);
5375
+ var _fullscreen3 = __webpack_require__(59);
5383
5376
 
5384
5377
  var _fullscreen4 = _interopRequireDefault(_fullscreen3);
5385
5378
 
5386
- var _loading = __webpack_require__(65);
5379
+ var _loading = __webpack_require__(64);
5387
5380
 
5388
5381
  var _loading2 = _interopRequireDefault(_loading);
5389
5382
 
5390
- var _mobile = __webpack_require__(38);
5383
+ var _mobile = __webpack_require__(37);
5391
5384
 
5392
5385
  var _mobile2 = _interopRequireDefault(_mobile);
5393
5386
 
5394
- var _pc = __webpack_require__(39);
5387
+ var _pc = __webpack_require__(38);
5395
5388
 
5396
5389
  var _pc2 = _interopRequireDefault(_pc);
5397
5390
 
5398
- var _play = __webpack_require__(47);
5391
+ var _play = __webpack_require__(46);
5399
5392
 
5400
5393
  var _play2 = _interopRequireDefault(_play);
5401
5394
 
5402
- var _play3 = __webpack_require__(49);
5395
+ var _play3 = __webpack_require__(48);
5403
5396
 
5404
5397
  var _play4 = _interopRequireDefault(_play3);
5405
5398
 
5406
- var _progress = __webpack_require__(69);
5399
+ var _progress = __webpack_require__(68);
5407
5400
 
5408
5401
  var _progress2 = _interopRequireDefault(_progress);
5409
5402
 
5410
- var _poster = __webpack_require__(54);
5403
+ var _poster = __webpack_require__(53);
5411
5404
 
5412
5405
  var _poster2 = _interopRequireDefault(_poster);
5413
5406
 
5414
- var _time = __webpack_require__(72);
5407
+ var _time = __webpack_require__(71);
5415
5408
 
5416
5409
  var _time2 = _interopRequireDefault(_time);
5417
5410
 
5418
- var _start = __webpack_require__(40);
5411
+ var _start = __webpack_require__(39);
5419
5412
 
5420
5413
  var _start2 = _interopRequireDefault(_start);
5421
5414
 
5422
- var _start3 = __webpack_require__(41);
5415
+ var _start3 = __webpack_require__(40);
5423
5416
 
5424
5417
  var _start4 = _interopRequireDefault(_start3);
5425
5418
 
5426
- var _replay = __webpack_require__(48);
5419
+ var _replay = __webpack_require__(47);
5427
5420
 
5428
5421
  var _replay2 = _interopRequireDefault(_replay);
5429
5422
 
5430
- var _replay3 = __webpack_require__(75);
5423
+ var _replay3 = __webpack_require__(74);
5431
5424
 
5432
5425
  var _replay4 = _interopRequireDefault(_replay3);
5433
5426