zwplayer-vue2x 1.0.13 → 1.0.15
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 +1 -1
- package/sources/index.js +9 -1
package/package.json
CHANGED
package/sources/index.js
CHANGED
|
@@ -20,7 +20,15 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
20
20
|
const zwplayer_js_def = 'zwplayer/zwplayer.js?v=3.6';
|
|
21
21
|
|
|
22
22
|
const Player = function(param) {
|
|
23
|
-
|
|
23
|
+
zwplayer_loadjs('zwplayer-core', zwplayer_js_def, function(jsid) {
|
|
24
|
+
if (jsid) {
|
|
25
|
+
console.log(typeof param);
|
|
26
|
+
console.log('Player param zwplayer_loadjs:', jsid);;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
console.log('Load zwplayer library failed.');
|
|
30
|
+
}
|
|
31
|
+
});
|
|
24
32
|
};
|
|
25
33
|
/*
|
|
26
34
|
if (typeof window.ZWPlayer === 'undefined') {
|