zwplayer-vue2x 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zwplayer-vue2x",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "A fully functional and lightweight free open-source web player",
5
5
  "main": "lib/zwplayervue2.umd.min.js",
6
6
  "keyword": "zwplayervue2, zwplayer-vue2x, zero-web-player",
package/sources/index.js CHANGED
@@ -19,8 +19,17 @@ if (typeof window !== 'undefined' && window.Vue) {
19
19
 
20
20
  const zwplayer_js_def = 'zwplayer/zwplayer.js?v=3.6';
21
21
 
22
- let Player;
23
-
22
+ const Player = function(param) {
23
+ zwplayer_loadjs('zwplayer-core', zwplayer_js_def, function(jsid) {
24
+ if (jsid) {
25
+ console.log('Player param zwplayer_loadjs:', jsid);;
26
+ }
27
+ else {
28
+ console.log('Load zwplayer library failed.');
29
+ }
30
+ });
31
+ };
32
+ /*
24
33
  if (typeof window.ZWPlayer === 'undefined') {
25
34
  const loadTask = new Promise(function(resolve, reject) {
26
35
  zwplayer_loadjs('zwplayer-core', zwplayer_js_def, function(jsid) {
@@ -43,6 +52,7 @@ if (typeof window.ZWPlayer === 'undefined') {
43
52
  else {
44
53
  Player = window.ZWPlayer;
45
54
  }
55
+ */
46
56
 
47
57
  export {
48
58
  zwplayer,
package/lib/demo.html DELETED
@@ -1 +0,0 @@
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>