ezuikit-js 7.6.2 → 7.6.3

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 (2) hide show
  1. package/ezuikit.js +17 -3
  2. package/package.json +1 -1
package/ezuikit.js CHANGED
@@ -17352,7 +17352,7 @@ var MobileRec = /*#__PURE__*/function () {
17352
17352
  };
17353
17353
  var localRecSeek = function localRecSeek(callback) {
17354
17354
  _this.disabled = true;
17355
- _this.jSPlugin.pause().then(function () {
17355
+ _this.jSPlugin.pause(date).then(function () {
17356
17356
  console.log("暂停成功");
17357
17357
  _this.jSPlugin.resume(date).then(function (data) {
17358
17358
  console.log("恢复成功");
@@ -28934,6 +28934,7 @@ var Theme = /*#__PURE__*/function () {
28934
28934
  if (typeof jSPlugin.isMobile !== 'undefined') {
28935
28935
  this.isMobile = jSPlugin.isMobile;
28936
28936
  }
28937
+ this.pauseTime = null;
28937
28938
  // 默认主题 - 按钮全部展示
28938
28939
  this.themeData = emptyData.data;
28939
28940
  // 自适应主题数据
@@ -29706,7 +29707,16 @@ var Theme = /*#__PURE__*/function () {
29706
29707
  if (play) {
29707
29708
  if (rec || cloudRec) {
29708
29709
  //回放时调用暂停,而不是结束播放
29709
- _this9.jSPlugin.pause();
29710
+ if (_this9.isMobile) {
29711
+ _this9.jSPlugin.jSPlugin.JS_GetOSDTime(0).then(function (data) {
29712
+ var pauseDate = new Date(data * 1000);
29713
+ var pauseTime = "".concat(pauseDate.getFullYear()) + (pauseDate.getMonth() > 8 ? pauseDate.getMonth() + 1 : "0".concat(pauseDate.getMonth() + 1)) + (pauseDate.getDate() > 9 ? pauseDate.getDate() : "0".concat(pauseDate.getDate())) + (pauseDate.getHours() > 9 ? pauseDate.getHours() : "0".concat(pauseDate.getHours())) + (pauseDate.getMinutes() > 9 ? pauseDate.getMinutes() : "0".concat(pauseDate.getMinutes())) + (pauseDate.getSeconds() > 9 ? pauseDate.getSeconds() : "0".concat(pauseDate.getSeconds()));
29714
+ _this9.pauseTime = pauseTime;
29715
+ _this9.jSPlugin.pause(pauseTime);
29716
+ });
29717
+ } else {
29718
+ _this9.jSPlugin.pause();
29719
+ }
29710
29720
  } else {
29711
29721
  _this9.jSPlugin.stop();
29712
29722
  _this9.jSPlugin.Zoom.stopZoom();
@@ -29722,7 +29732,11 @@ var Theme = /*#__PURE__*/function () {
29722
29732
  } else {
29723
29733
  if (rec || cloudRec) {
29724
29734
  //回放时调用恢复播放状态
29725
- _this9.jSPlugin.resume();
29735
+ if (_this9.isMobile) {
29736
+ _this9.jSPlugin.resume(_this9.pauseTime);
29737
+ } else {
29738
+ _this9.jSPlugin.resume();
29739
+ }
29726
29740
  } else {
29727
29741
  _this9.jSPlugin.play();
29728
29742
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ezuikit-js",
3
3
  "maintainers": ["jzy"],
4
- "version": "7.6.2",
4
+ "version": "7.6.3",
5
5
  "description": "ezuikit javascript for npm",
6
6
  "main": "ezuikit.js",
7
7
  "scripts": {