ezuikit-js 0.6.1-beta.1 → 0.6.1-beta.2

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.
@@ -39383,7 +39383,13 @@ class EZUIKitPlayer {
39383
39383
  stop() {
39384
39384
  if (!this.jSPlugin.bPlay) {
39385
39385
  console.log("当前非播放状态");
39386
- return false;
39386
+ const promise = new Promise((resolve, reject) => {
39387
+ reject({
39388
+ retcode: -1,
39389
+ msg: "当前非播放状态",
39390
+ });
39391
+ });
39392
+ return promise;
39387
39393
  }
39388
39394
  this.pluginStatus.setPlayStatus({ loading: true });
39389
39395
  return this.jSPlugin.JS_Stop(0).then(() => {
package/ezuikit.js CHANGED
@@ -39383,7 +39383,13 @@ class EZUIKitPlayer {
39383
39383
  stop() {
39384
39384
  if (!this.jSPlugin.bPlay) {
39385
39385
  console.log("当前非播放状态");
39386
- return false;
39386
+ const promise = new Promise((resolve, reject) => {
39387
+ reject({
39388
+ retcode: -1,
39389
+ msg: "当前非播放状态",
39390
+ });
39391
+ });
39392
+ return promise;
39387
39393
  }
39388
39394
  this.pluginStatus.setPlayStatus({ loading: true });
39389
39395
  return this.jSPlugin.JS_Stop(0).then(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezuikit-js",
3
- "version": "0.6.1-beta.1",
3
+ "version": "0.6.1-beta.2",
4
4
  "description": "ezuikit javascript for npm",
5
5
  "main": "ezuikit.js",
6
6
  "scripts": {