zwplayer-vue2x 1.0.1

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 (65) hide show
  1. package/README.md +24 -0
  2. package/jsconfig.json +19 -0
  3. package/lib/demo.html +1 -0
  4. package/lib/zwplayervue2.common.js +599 -0
  5. package/lib/zwplayervue2.umd.js +618 -0
  6. package/lib/zwplayervue2.umd.min.js +2 -0
  7. package/npm-scripts.mjs +191 -0
  8. package/package.json +50 -0
  9. package/sources/index.js +23 -0
  10. package/sources/vueplayer/index.js +13 -0
  11. package/sources/vueplayer/src/loadjs.js +75 -0
  12. package/sources/vueplayer/src/main.vue +338 -0
  13. package/zwplayerlib/zwplayer/css/openhand.cur +0 -0
  14. package/zwplayerlib/zwplayer/css/zwplayer.css +3103 -0
  15. package/zwplayerlib/zwplayer/css/zwplayer.ttf +0 -0
  16. package/zwplayerlib/zwplayer/css/zwplayer.woff +0 -0
  17. package/zwplayerlib/zwplayer/css/zwplayer.woff2 +0 -0
  18. package/zwplayerlib/zwplayer/plugins/dash.all.min.js +3 -0
  19. package/zwplayerlib/zwplayer/plugins/flv.live.js +358 -0
  20. package/zwplayerlib/zwplayer/plugins/flv.min.js +2 -0
  21. package/zwplayerlib/zwplayer/plugins/hls.light.min.js +2 -0
  22. package/zwplayerlib/zwplayer/plugins/hls.min.js +2 -0
  23. package/zwplayerlib/zwplayer/plugins/mpeg.min.js +2 -0
  24. package/zwplayerlib/zwplayer/widgets/danmu_setting.html +116 -0
  25. package/zwplayerlib/zwplayer/widgets/smiles/p1.png +0 -0
  26. package/zwplayerlib/zwplayer/widgets/smiles/p10.png +0 -0
  27. package/zwplayerlib/zwplayer/widgets/smiles/p11.png +0 -0
  28. package/zwplayerlib/zwplayer/widgets/smiles/p12.png +0 -0
  29. package/zwplayerlib/zwplayer/widgets/smiles/p13.png +0 -0
  30. package/zwplayerlib/zwplayer/widgets/smiles/p14.png +0 -0
  31. package/zwplayerlib/zwplayer/widgets/smiles/p15.png +0 -0
  32. package/zwplayerlib/zwplayer/widgets/smiles/p16.png +0 -0
  33. package/zwplayerlib/zwplayer/widgets/smiles/p17.png +0 -0
  34. package/zwplayerlib/zwplayer/widgets/smiles/p18.png +0 -0
  35. package/zwplayerlib/zwplayer/widgets/smiles/p19.png +0 -0
  36. package/zwplayerlib/zwplayer/widgets/smiles/p2.png +0 -0
  37. package/zwplayerlib/zwplayer/widgets/smiles/p20.png +0 -0
  38. package/zwplayerlib/zwplayer/widgets/smiles/p21.png +0 -0
  39. package/zwplayerlib/zwplayer/widgets/smiles/p22.png +0 -0
  40. package/zwplayerlib/zwplayer/widgets/smiles/p23.png +0 -0
  41. package/zwplayerlib/zwplayer/widgets/smiles/p24.png +0 -0
  42. package/zwplayerlib/zwplayer/widgets/smiles/p25.png +0 -0
  43. package/zwplayerlib/zwplayer/widgets/smiles/p26.png +0 -0
  44. package/zwplayerlib/zwplayer/widgets/smiles/p27.png +0 -0
  45. package/zwplayerlib/zwplayer/widgets/smiles/p28.png +0 -0
  46. package/zwplayerlib/zwplayer/widgets/smiles/p29.png +0 -0
  47. package/zwplayerlib/zwplayer/widgets/smiles/p3.png +0 -0
  48. package/zwplayerlib/zwplayer/widgets/smiles/p30.png +0 -0
  49. package/zwplayerlib/zwplayer/widgets/smiles/p31.png +0 -0
  50. package/zwplayerlib/zwplayer/widgets/smiles/p32.png +0 -0
  51. package/zwplayerlib/zwplayer/widgets/smiles/p33.png +0 -0
  52. package/zwplayerlib/zwplayer/widgets/smiles/p34.png +0 -0
  53. package/zwplayerlib/zwplayer/widgets/smiles/p35.png +0 -0
  54. package/zwplayerlib/zwplayer/widgets/smiles/p36.png +0 -0
  55. package/zwplayerlib/zwplayer/widgets/smiles/p37.png +0 -0
  56. package/zwplayerlib/zwplayer/widgets/smiles/p38.png +0 -0
  57. package/zwplayerlib/zwplayer/widgets/smiles/p39.png +0 -0
  58. package/zwplayerlib/zwplayer/widgets/smiles/p4.png +0 -0
  59. package/zwplayerlib/zwplayer/widgets/smiles/p40.png +0 -0
  60. package/zwplayerlib/zwplayer/widgets/smiles/p5.png +0 -0
  61. package/zwplayerlib/zwplayer/widgets/smiles/p6.png +0 -0
  62. package/zwplayerlib/zwplayer/widgets/smiles/p7.png +0 -0
  63. package/zwplayerlib/zwplayer/widgets/smiles/p8.png +0 -0
  64. package/zwplayerlib/zwplayer/widgets/smiles/p9.png +0 -0
  65. package/zwplayerlib/zwplayer/zwplayer.js +424 -0
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # zwplayer-vue2x
2
+
3
+ ## Project setup
4
+ ```
5
+ npm install
6
+ ```
7
+
8
+ ### Compiles and hot-reloads for development
9
+ ```
10
+ npm run serve
11
+ ```
12
+
13
+ ### Compiles and minifies for production
14
+ ```
15
+ npm run build
16
+ ```
17
+
18
+ ### Lints and fixes files
19
+ ```
20
+ npm run lint
21
+ ```
22
+
23
+ ### Customize configuration
24
+ See [Configuration Reference](https://cli.vuejs.org/config/).
package/jsconfig.json ADDED
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "module": "esnext",
5
+ "baseUrl": "./",
6
+ "moduleResolution": "node",
7
+ "paths": {
8
+ "@/*": [
9
+ "src/*"
10
+ ]
11
+ },
12
+ "lib": [
13
+ "esnext",
14
+ "dom",
15
+ "dom.iterable",
16
+ "scripthost"
17
+ ]
18
+ }
19
+ }
package/lib/demo.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><meta charset="utf-8"><title>zwplayervue2 demo</title><script src="./zwplayervue2.umd.js"></script><link rel="stylesheet" href="./zwplayervue2.css"><script>console.log(zwplayervue2)</script>
@@ -0,0 +1,599 @@
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ var __webpack_modules__ = ({
3
+
4
+ /***/ 709:
5
+ /***/ (function(module) {
6
+
7
+ // zwplayer tools
8
+
9
+ const zwplayer_loadjs = function (id, url, cb) {
10
+ let headNode = document.getElementsByTagName("head");
11
+ if (headNode.length == 0) {
12
+ headNode = document.createElement("head");
13
+ let body = document.getElementsByTagName("body");
14
+ if (body.length > 0) {
15
+ body = body[0];
16
+ document.insertBefore(headNode, body);
17
+ } else {
18
+ alert('Invalid html document: no HEAD tag');
19
+ return false;
20
+ }
21
+ } else {
22
+ headNode = headNode[0];
23
+ const nodes = headNode.childNodes;
24
+ for (let i = 0; i < nodes.length; i++) {
25
+ const node = nodes[i];
26
+ if (node.nodeName.toUpperCase() === 'SCRIPT') {
27
+ if (node.id && node.id == id) {
28
+ if (node.getAttribute('loadstate') != 'true') {
29
+ const checkLoad = function () {
30
+ if (node.getAttribute('loadstate') != 'true') {
31
+ setTimeout(checkLoad, 50);
32
+ } else {
33
+ if (typeof cb == 'function') cb(id);
34
+ }
35
+ };
36
+ setTimeout(checkLoad, 50);
37
+ return false;
38
+ }
39
+ if (typeof cb == 'function') cb(id);
40
+ return true;
41
+ }
42
+ }
43
+ }
44
+ }
45
+ const script = document.createElement("script");
46
+ script.type = "text/javascript";
47
+ if (script.readyState) {
48
+ // IE
49
+ script.onreadystatechange = function () {
50
+ if (script.readyState == "loaded" || script.readyState == "complete") {
51
+ script.onreadystatechange = null;
52
+ script.setAttribute('loadstate', 'true');
53
+ if (typeof cb == 'function') cb(id);
54
+ }
55
+ };
56
+ } else {
57
+ script.onload = function () {
58
+ script.setAttribute('loadstate', 'true');
59
+ script.setAttribute('charset', 'utf-8');
60
+ if (typeof cb == 'function') cb(id);
61
+ };
62
+ }
63
+ script.id = id;
64
+ script.src = url;
65
+ headNode.appendChild(script);
66
+ return false;
67
+ };
68
+ module.exports.l = zwplayer_loadjs;
69
+
70
+ /***/ })
71
+
72
+ /******/ });
73
+ /************************************************************************/
74
+ /******/ // The module cache
75
+ /******/ var __webpack_module_cache__ = {};
76
+ /******/
77
+ /******/ // The require function
78
+ /******/ function __webpack_require__(moduleId) {
79
+ /******/ // Check if module is in cache
80
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
81
+ /******/ if (cachedModule !== undefined) {
82
+ /******/ return cachedModule.exports;
83
+ /******/ }
84
+ /******/ // Create a new module (and put it into the cache)
85
+ /******/ var module = __webpack_module_cache__[moduleId] = {
86
+ /******/ // no module.id needed
87
+ /******/ // no module.loaded needed
88
+ /******/ exports: {}
89
+ /******/ };
90
+ /******/
91
+ /******/ // Execute the module function
92
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
93
+ /******/
94
+ /******/ // Return the exports of the module
95
+ /******/ return module.exports;
96
+ /******/ }
97
+ /******/
98
+ /************************************************************************/
99
+ /******/ /* webpack/runtime/define property getters */
100
+ /******/ !function() {
101
+ /******/ // define getter functions for harmony exports
102
+ /******/ __webpack_require__.d = function(exports, definition) {
103
+ /******/ for(var key in definition) {
104
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
105
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
106
+ /******/ }
107
+ /******/ }
108
+ /******/ };
109
+ /******/ }();
110
+ /******/
111
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
112
+ /******/ !function() {
113
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
114
+ /******/ }();
115
+ /******/
116
+ /******/ /* webpack/runtime/make namespace object */
117
+ /******/ !function() {
118
+ /******/ // define __esModule on exports
119
+ /******/ __webpack_require__.r = function(exports) {
120
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
121
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
122
+ /******/ }
123
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
124
+ /******/ };
125
+ /******/ }();
126
+ /******/
127
+ /******/ /* webpack/runtime/publicPath */
128
+ /******/ !function() {
129
+ /******/ __webpack_require__.p = "";
130
+ /******/ }();
131
+ /******/
132
+ /************************************************************************/
133
+ var __webpack_exports__ = {};
134
+ // This entry need to be wrapped in an IIFE because it need to be in strict mode.
135
+ !function() {
136
+ "use strict";
137
+ // ESM COMPAT FLAG
138
+ __webpack_require__.r(__webpack_exports__);
139
+
140
+ // EXPORTS
141
+ __webpack_require__.d(__webpack_exports__, {
142
+ "default": function() { return /* binding */ entry_lib; },
143
+ zwplayer: function() { return /* reexport */ vueplayer; }
144
+ });
145
+
146
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
147
+ /* eslint-disable no-var */
148
+ // This file is imported into lib/wc client bundles.
149
+
150
+ if (typeof window !== 'undefined') {
151
+ var currentScript = window.document.currentScript
152
+ if (false) { var getCurrentScript; }
153
+
154
+ var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
155
+ if (src) {
156
+ __webpack_require__.p = src[1] // eslint-disable-line
157
+ }
158
+ }
159
+
160
+ // Indicate to webpack that this file can be concatenated
161
+ /* harmony default export */ var setPublicPath = (null);
162
+
163
+ ;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
164
+ var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
165
+ // EXTERNAL MODULE: ./sources/vueplayer/src/loadjs.js
166
+ var loadjs = __webpack_require__(709);
167
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./sources/vueplayer/src/main.vue?vue&type=script&lang=js
168
+
169
+
170
+ const zwplayer_js_def = 'zwplayer/zwplayer.js?v=3.2';
171
+ const availabe_props = {
172
+ isLive: 'boolean',
173
+ useOldFlv: 'boolean',
174
+ useFlv: 'boolean',
175
+ streamtype: 'string',
176
+ hasAudio: 'boolean',
177
+ hasVideo: 'boolean',
178
+ xmc_url: 'string',
179
+ fixedControlbar: 'boolean',
180
+ nativecontrols: 'boolean',
181
+ infoButton: 'boolean',
182
+ speedButton: 'boolean',
183
+ optionButton: 'boolean',
184
+ snapshotButton: 'boolean',
185
+ chapterButton: 'boolean',
186
+ enableDanmu: 'boolean',
187
+ useProgressTooltip: 'boolean',
188
+ hidePlayBtn: 'boolean',
189
+ disablePlayBtn: 'boolean',
190
+ disableSeek: 'boolean',
191
+ disableFullscreenWin: 'boolean',
192
+ disablePicInPic: 'boolean',
193
+ disableVolumeControl: 'boolean',
194
+ lostFocusPause: 'boolean',
195
+ autoSmallWindow: 'boolean',
196
+ thumbnails: 'object',
197
+ sendDanmu: 'function',
198
+ danmuBarId: 'string'
199
+ };
200
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
201
+ name: 'ZwPlayer',
202
+ data() {
203
+ return {
204
+ zwplayer: null,
205
+ nodename: 'ZwPlayer'
206
+ };
207
+ },
208
+ props: {
209
+ zwplayerlib: String,
210
+ murl: String,
211
+ nodeid: String,
212
+ muted: Boolean,
213
+ autoplay: {
214
+ type: Boolean,
215
+ default: true
216
+ },
217
+ videoprop: Object,
218
+ videostyle: String,
219
+ reconnect: {
220
+ type: Boolean,
221
+ default: true
222
+ },
223
+ controlbar: {
224
+ type: Boolean,
225
+ default: true
226
+ },
227
+ useProgressTooltip: {
228
+ type: Boolean,
229
+ default: true
230
+ }
231
+ },
232
+ emits: ['oneterror', 'onmediaevent', 'onready'],
233
+ methods: {
234
+ play(url, isLive, useOldFlv) {
235
+ let vm = this;
236
+ if (!url) url = this.murl;
237
+ if (!vm.zwplayer) return;
238
+ vm.zwplayer.play(url, isLive, useOldFlv);
239
+ },
240
+ stop() {
241
+ let vm = this;
242
+ if (vm.zwplayer) {
243
+ vm.zwplayer.stop();
244
+ }
245
+ },
246
+ pause() {
247
+ let vm = this;
248
+ if (vm.zwplayer) {
249
+ vm.zwplayer.pause();
250
+ }
251
+ },
252
+ resume() {
253
+ let vm = this;
254
+ if (vm.zwplayer) {
255
+ vm.zwplayer.resume();
256
+ }
257
+ },
258
+ getDuration() {
259
+ let vm = this;
260
+ if (vm.zwplayer) {
261
+ return vm.zwplayer.getDuration();
262
+ }
263
+ return undefined;
264
+ },
265
+ seekTime(time) {
266
+ let vm = this;
267
+ if (vm.zwplayer) {
268
+ vm.zwplayer.seekTime(time);
269
+ }
270
+ },
271
+ destroy() {
272
+ let vm = this;
273
+ if (vm.zwplayer) {
274
+ vm.zwplayer.destroy();
275
+ }
276
+ },
277
+ setplaystate(bPlaying) {
278
+ let vm = this;
279
+ if (vm.zwplayer) {
280
+ vm.zwplayer.setplaystate(bPlaying);
281
+ }
282
+ },
283
+ setEnableDanmu(bEnable) {
284
+ let vm = this;
285
+ if (vm.zwplayer) {
286
+ vm.zwplayer.setEnableDanmu(bEnable);
287
+ }
288
+ },
289
+ appendDanmu(msgObj, setting) {
290
+ let vm = this;
291
+ if (vm.zwplayer) {
292
+ vm.zwplayer.appendDanmu(msgObj, setting);
293
+ }
294
+ },
295
+ setChapters(chapters) {
296
+ let vm = this;
297
+ if (vm.zwplayer) {
298
+ vm.zwplayer.setChapters(chapters);
299
+ }
300
+ },
301
+ addSubtitle(subtitleUrl, pos, title) {
302
+ let vm = this;
303
+ if (vm.zwplayer) {
304
+ vm.zwplayer.addSubtitle(subtitleUrl, pos, title);
305
+ }
306
+ },
307
+ removeSubtitle() {
308
+ let vm = this;
309
+ if (vm.zwplayer) {
310
+ vm.zwplayer.removeSubtitle();
311
+ }
312
+ },
313
+ buildDanmuControlbar(parentId, className) {
314
+ let vm = this;
315
+ if (vm.zwplayer) {
316
+ vm.zwplayer.buildDanmuControlbar(parentId, className);
317
+ }
318
+ },
319
+ notifyResize(width, height) {
320
+ let vm = this;
321
+ if (vm.zwplayer) {
322
+ vm.zwplayer.notifyResize(width, height);
323
+ }
324
+ },
325
+ setMute(bMute) {
326
+ let vm = this;
327
+ if (vm.zwplayer) {
328
+ vm.zwplayer.setMuted(bMute);
329
+ }
330
+ },
331
+ setullscr(bFullScr) {
332
+ let vm = this;
333
+ if (vm.zwplayer) {
334
+ vm.is_fullscr = bFullScr;
335
+ vm.zwplayer.setFullscreen(bFullScr);
336
+ }
337
+ }
338
+ },
339
+ render() {
340
+ let playerid;
341
+
342
+ // console.log('render');
343
+ if (this.nodeid) {
344
+ playerid = this.nodeid;
345
+ } else {
346
+ let now = new Date().getTime();
347
+ if (!window.nextZWPlayerId) {
348
+ window.nextZWPlayerId = 1000;
349
+ } else {
350
+ window.nextZWPlayerId++;
351
+ }
352
+ playerid = 'zwplayer-' + window.nextZWPlayerId + '-' + now;
353
+ }
354
+ let playerWrap = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.h)('div', {
355
+ class: {
356
+ 'zwplayer-vue': true
357
+ },
358
+ id: playerid
359
+ }, []);
360
+ if (playerWrap) {
361
+ let vm = this;
362
+ vm.playerid = playerid;
363
+ }
364
+ if (this.zwplayer && this.murl !== this.old_murl) {
365
+ this.zwplayer.play(this.murl); // change movie url
366
+ this.old_murl = this.murl;
367
+ }
368
+ return playerWrap;
369
+ },
370
+ mounted() {
371
+ let vm = this;
372
+ // console.log('mounted');
373
+ let zwplayer_js;
374
+ if (vm.zwplayerlib) zwplayer_js = vm.zwplayerlib;else zwplayer_js = zwplayer_js_def;
375
+ vm.rootElm = document.getElementById(vm.playerid);
376
+ if (vm.rootElm) {
377
+ vm.rootElm.style.width = '100%';
378
+ vm.rootElm.style.height = '100%';
379
+ vm.rootElm.style.margin = '0';
380
+ vm.rootElm.style.padding = '0';
381
+ }
382
+ (0,loadjs/* zwplayer_loadjs */.l)('zwplayer-core', zwplayer_js, function (jsid) {
383
+ let url = '';
384
+ if (!jsid) {
385
+ console.log('zwplayer_loadjs failed!');
386
+ }
387
+ if (vm.murl) url = vm.murl;else if (vm.videoprop && typeof vm.videoprop.url !== 'undefined') url = vm.videoprop.url;
388
+ let videostyle = "width:100%;height:100%;";
389
+ if (vm.videoprop && typeof vm.videoprop.videostyle !== 'undefined') videostyle = vm.videoprop.videostyle;
390
+ let params = {
391
+ url: url,
392
+ playerElm: vm.rootElm,
393
+ videostyle: videostyle,
394
+ reconnect: vm.reconnect,
395
+ autoplay: vm.autoplay,
396
+ muted: vm.muted,
397
+ controlbar: vm.controlbar,
398
+ useProgressTooltip: vm.useProgressTooltip,
399
+ onready: function () {
400
+ vm.$emit('onready', this);
401
+ },
402
+ onnetclose: function () {
403
+ vm.$emit('onnetclose', this);
404
+ return true;
405
+ },
406
+ onneterror: function () {
407
+ vm.$emit('onneterror', this);
408
+ },
409
+ onmediaevent: function (event) {
410
+ vm.$emit('onmediaevent', event, this);
411
+ }
412
+ };
413
+ let props_list = availabe_props;
414
+ for (let prop in vm.$attrs) {
415
+ if (prop in props_list && typeof vm.$attrs[prop] === props_list[prop]) {
416
+ if (typeof vm.$attrs[prop] === 'object') params[prop] = JSON.parse(JSON.stringify(vm.$attrs[prop]));else params[prop] = vm.$attrs[prop];
417
+ }
418
+ }
419
+ vm.zwplayer = new window.ZWPlayer(params);
420
+ if (params.danmuBarId) {
421
+ vm.zwplayer.buildDanmuControlbar(params.danmuBarId, 'vue-zwp-danmubar');
422
+ }
423
+ vm.old_murl = url;
424
+ });
425
+ },
426
+ beforeUnmount() {
427
+ let vm = this;
428
+ // console.log('beforeUnmount');
429
+ if (vm.zwplayer) {
430
+ vm.zwplayer.stop();
431
+ }
432
+ },
433
+ unmounted() {
434
+ let vm = this;
435
+ // console.log('unmounted');
436
+ if (vm.zwplayer) {
437
+ vm.zwplayer.destroy();
438
+ delete vm.zwplayer;
439
+ }
440
+ }
441
+ });
442
+ ;// CONCATENATED MODULE: ./sources/vueplayer/src/main.vue?vue&type=script&lang=js
443
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
444
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
445
+ /* globals __VUE_SSR_CONTEXT__ */
446
+
447
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
448
+ // This module is a runtime utility for cleaner component module output and will
449
+ // be included in the final webpack user bundle.
450
+
451
+ function normalizeComponent(
452
+ scriptExports,
453
+ render,
454
+ staticRenderFns,
455
+ functionalTemplate,
456
+ injectStyles,
457
+ scopeId,
458
+ moduleIdentifier /* server only */,
459
+ shadowMode /* vue-cli only */
460
+ ) {
461
+ // Vue.extend constructor export interop
462
+ var options =
463
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
464
+
465
+ // render functions
466
+ if (render) {
467
+ options.render = render
468
+ options.staticRenderFns = staticRenderFns
469
+ options._compiled = true
470
+ }
471
+
472
+ // functional template
473
+ if (functionalTemplate) {
474
+ options.functional = true
475
+ }
476
+
477
+ // scopedId
478
+ if (scopeId) {
479
+ options._scopeId = 'data-v-' + scopeId
480
+ }
481
+
482
+ var hook
483
+ if (moduleIdentifier) {
484
+ // server build
485
+ hook = function (context) {
486
+ // 2.3 injection
487
+ context =
488
+ context || // cached call
489
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
490
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
491
+ // 2.2 with runInNewContext: true
492
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
493
+ context = __VUE_SSR_CONTEXT__
494
+ }
495
+ // inject component styles
496
+ if (injectStyles) {
497
+ injectStyles.call(this, context)
498
+ }
499
+ // register component module identifier for async chunk inferrence
500
+ if (context && context._registeredComponents) {
501
+ context._registeredComponents.add(moduleIdentifier)
502
+ }
503
+ }
504
+ // used by ssr in case component is cached and beforeCreate
505
+ // never gets called
506
+ options._ssrRegister = hook
507
+ } else if (injectStyles) {
508
+ hook = shadowMode
509
+ ? function () {
510
+ injectStyles.call(
511
+ this,
512
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
513
+ )
514
+ }
515
+ : injectStyles
516
+ }
517
+
518
+ if (hook) {
519
+ if (options.functional) {
520
+ // for template-only hot-reload because in that case the render fn doesn't
521
+ // go through the normalizer
522
+ options._injectStyles = hook
523
+ // register for functional component in vue file
524
+ var originalRender = options.render
525
+ options.render = function renderWithStyleInjection(h, context) {
526
+ hook.call(context)
527
+ return originalRender(h, context)
528
+ }
529
+ } else {
530
+ // inject component registration as beforeCreate hook
531
+ var existing = options.beforeCreate
532
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
533
+ }
534
+ }
535
+
536
+ return {
537
+ exports: scriptExports,
538
+ options: options
539
+ }
540
+ }
541
+
542
+ ;// CONCATENATED MODULE: ./sources/vueplayer/src/main.vue
543
+ var render, staticRenderFns
544
+ ;
545
+
546
+
547
+
548
+ /* normalize component */
549
+ ;
550
+ var component = normalizeComponent(
551
+ src_mainvue_type_script_lang_js,
552
+ render,
553
+ staticRenderFns,
554
+ false,
555
+ null,
556
+ null,
557
+ null
558
+
559
+ )
560
+
561
+ /* harmony default export */ var main = (component.exports);
562
+ ;// CONCATENATED MODULE: ./sources/vueplayer/index.js
563
+ //export defines
564
+
565
+
566
+ /* istanbul ignore next */
567
+ main.install = function (Vue) {
568
+ Vue.component(main.name, main); //
569
+ Vue.component('zero-web-player', main);
570
+ Vue.component('zero-player', main);
571
+ Vue.component('ZPlayer', main);
572
+ };
573
+ /* harmony default export */ var vueplayer = (main);
574
+ ;// CONCATENATED MODULE: ./sources/index.js
575
+ // 引入该目录下所有的组件
576
+
577
+ const components = [vueplayer];
578
+ const ZwModule = {};
579
+ ZwModule.install = Vue => {
580
+ components.forEach(component => {
581
+ component.install(Vue);
582
+ });
583
+ };
584
+ if (typeof window !== 'undefined' && window.Vue) {
585
+ ZwModule.install(window.Vue);
586
+ }
587
+
588
+ /* harmony default export */ var sources = (ZwModule);
589
+ ;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
590
+
591
+
592
+ /* harmony default export */ var entry_lib = (sources);
593
+
594
+
595
+ }();
596
+ module.exports = __webpack_exports__;
597
+ /******/ })()
598
+ ;
599
+ //# sourceMappingURL=zwplayervue2.common.js.map