ezuikit-js 7.6.3 → 7.6.4
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/demos/base-demo/ezuikit.js +10712 -942
- package/demos/base-demo/ezuikit_static/v65/v1/js/SuperRender_10.js +394 -394
- package/demos/base-demo/ezuikit_static/v65/v1/js/jsPluginV1-1.0.0.min.js +7 -7
- package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/DecodeWorker.js +617 -617
- package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/JSPlaySDKInterface.js +2052 -2052
- package/demos/base-demo/ezuikit_static/v65/v1/js/playctrl/SuperRender_10.js +395 -395
- package/demos/base-demo/ezuikit_static/v65/v1/js/transform/SystemTransform.js +22 -22
- package/demos/base-demo/ezuikit_static/v65/v1/js/tts-v4.js +346 -346
- package/demos/base-demo/ezuikit_static/v65/v1/rec/jquery.min.js +1 -1
- package/demos/base-demo/ezuikit_static/v65/v1/talk/tts-v4.js +346 -346
- package/demos/base-demo/ezuikit_static/v65/v2/js/jsPluginV2-2.0.1.min.js +11487 -108
- package/demos/base-demo/ezuikit_static/v65/v2/rec/jquery.min.js +1 -1
- package/demos/base-demo/ezuikit_static/v65/v2/talk/tts-v4.js +343 -343
- package/demos/react-demo/package.json +1 -1
- package/demos/vue-demo/package.json +1 -1
- package/ezuikit.js +233 -122
- package/ezuikit_static/v65/v2/js/jsPluginV2-2.0.1.min.js +6 -3
- package/package.json +2 -2
package/ezuikit.js
CHANGED
|
@@ -16433,43 +16433,93 @@ var Rec = /*#__PURE__*/function () {
|
|
|
16433
16433
|
_this.disabled = false;
|
|
16434
16434
|
}, _this.seekFrequency);
|
|
16435
16435
|
};
|
|
16436
|
+
var play = _this.jSPlugin.Theme.decoderState.state.play;
|
|
16436
16437
|
var localRecSeek = function localRecSeek(callback) {
|
|
16437
16438
|
_this.disabled = true;
|
|
16438
|
-
|
|
16439
|
-
|
|
16440
|
-
_this.jSPlugin.
|
|
16441
|
-
console.log("
|
|
16442
|
-
|
|
16443
|
-
|
|
16444
|
-
|
|
16445
|
-
|
|
16446
|
-
|
|
16447
|
-
|
|
16448
|
-
|
|
16449
|
-
|
|
16450
|
-
|
|
16451
|
-
|
|
16452
|
-
|
|
16453
|
-
|
|
16454
|
-
|
|
16455
|
-
|
|
16439
|
+
if (play) {
|
|
16440
|
+
//正在播放时先暂停
|
|
16441
|
+
_this.jSPlugin.pause(newBegin).then(function () {
|
|
16442
|
+
console.log("暂停成功");
|
|
16443
|
+
_this.jSPlugin.resume(newBegin).then(function (data) {
|
|
16444
|
+
console.log("恢复成功:", data);
|
|
16445
|
+
if (_this.jSPlugin.Theme) {
|
|
16446
|
+
_this.jSPlugin.Theme.setDecoderState({
|
|
16447
|
+
play: true
|
|
16448
|
+
});
|
|
16449
|
+
}
|
|
16450
|
+
// 打开声音
|
|
16451
|
+
if (_this.jSPlugin.Theme && _this.jSPlugin.Theme.decoderState.state.sound) {
|
|
16452
|
+
_this.jSPlugin.openSound();
|
|
16453
|
+
}
|
|
16454
|
+
if (callback) {
|
|
16455
|
+
callback();
|
|
16456
|
+
}
|
|
16457
|
+
})["catch"](function (err) {
|
|
16458
|
+
console.log("恢复失败", err);
|
|
16459
|
+
});
|
|
16460
|
+
})["catch"](function () {
|
|
16461
|
+
console.log("暂停失败");
|
|
16462
|
+
_this.jSPlugin.resume(newBegin).then(function (data) {
|
|
16463
|
+
console.log("恢复成功");
|
|
16464
|
+
if (_this.jSPlugin.Theme) {
|
|
16465
|
+
_this.jSPlugin.Theme.setDecoderState({
|
|
16466
|
+
play: true
|
|
16467
|
+
});
|
|
16468
|
+
}
|
|
16469
|
+
if (callback) {
|
|
16470
|
+
callback();
|
|
16471
|
+
}
|
|
16472
|
+
})["catch"](function (err) {
|
|
16473
|
+
console.log("恢复失败", err);
|
|
16474
|
+
});
|
|
16456
16475
|
});
|
|
16457
|
-
}
|
|
16458
|
-
|
|
16459
|
-
_this.jSPlugin.resume(
|
|
16460
|
-
|
|
16461
|
-
|
|
16462
|
-
_this.jSPlugin.
|
|
16463
|
-
|
|
16476
|
+
} else {
|
|
16477
|
+
//暂停状态下先停止旧的取流
|
|
16478
|
+
_this.jSPlugin.resume().then(function () {
|
|
16479
|
+
_this.jSPlugin.pause(newBegin).then(function () {
|
|
16480
|
+
console.log("暂停成功");
|
|
16481
|
+
_this.jSPlugin.resume(newBegin).then(function (data) {
|
|
16482
|
+
console.log("恢复成功:", data);
|
|
16483
|
+
if (_this.jSPlugin.Theme) {
|
|
16484
|
+
_this.jSPlugin.Theme.setDecoderState({
|
|
16485
|
+
play: true
|
|
16486
|
+
});
|
|
16487
|
+
}
|
|
16488
|
+
// 打开声音
|
|
16489
|
+
if (_this.jSPlugin.Theme && _this.jSPlugin.Theme.decoderState.state.sound) {
|
|
16490
|
+
_this.jSPlugin.openSound();
|
|
16491
|
+
}
|
|
16492
|
+
if (callback) {
|
|
16493
|
+
callback();
|
|
16494
|
+
}
|
|
16495
|
+
})["catch"](function (err) {
|
|
16496
|
+
console.log("恢复失败", err);
|
|
16464
16497
|
});
|
|
16465
|
-
}
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
16470
|
-
|
|
16498
|
+
})["catch"](function () {
|
|
16499
|
+
console.log("暂停失败");
|
|
16500
|
+
_this.jSPlugin.resume(newBegin).then(function (data) {
|
|
16501
|
+
console.log("恢复成功");
|
|
16502
|
+
if (_this.jSPlugin.Theme) {
|
|
16503
|
+
_this.jSPlugin.Theme.setDecoderState({
|
|
16504
|
+
play: true
|
|
16505
|
+
});
|
|
16506
|
+
}
|
|
16507
|
+
if (callback) {
|
|
16508
|
+
callback();
|
|
16509
|
+
}
|
|
16510
|
+
})["catch"](function (err) {
|
|
16511
|
+
console.log("恢复失败", err);
|
|
16512
|
+
});
|
|
16513
|
+
});
|
|
16471
16514
|
});
|
|
16472
|
-
}
|
|
16515
|
+
}
|
|
16516
|
+
//重置放大倍数
|
|
16517
|
+
if (_this.jSPlugin.Theme && _this.jSPlugin.Theme.decoderState && _this.jSPlugin.Theme.decoderState.state && _this.jSPlugin.Theme.decoderState.state.zoom) {
|
|
16518
|
+
_this.jSPlugin.Theme.setDecoderState({
|
|
16519
|
+
zoom: false
|
|
16520
|
+
});
|
|
16521
|
+
_this.jSPlugin.Zoom.stopZoom();
|
|
16522
|
+
}
|
|
16473
16523
|
};
|
|
16474
16524
|
if (_this.disabled) {
|
|
16475
16525
|
console.log("操作频繁,等待2秒后执行");
|
|
@@ -16517,13 +16567,13 @@ var Rec = /*#__PURE__*/function () {
|
|
|
16517
16567
|
} else {
|
|
16518
16568
|
document.getElementById("".concat(_this.jSPlugin.id, "-datepicker")).value = new Date(e.date).Format('yyyy-MM-dd');
|
|
16519
16569
|
_this.renderRec(e.date);
|
|
16520
|
-
if (_this.jSPlugin.decoderState && _this.jSPlugin.decoderState.state) {
|
|
16521
|
-
if (_this.jSPlugin.decoderState.state.cloudRec) {
|
|
16570
|
+
if (_this.jSPlugin.Theme.decoderState && _this.jSPlugin.Theme.decoderState.state) {
|
|
16571
|
+
if (_this.jSPlugin.Theme.decoderState.state.cloudRec) {
|
|
16522
16572
|
_this.jSPlugin.changePlayUrl({
|
|
16523
16573
|
begin: new Date(e.date).Format('yyyyMMdd'),
|
|
16524
16574
|
type: 'cloud.rec'
|
|
16525
16575
|
});
|
|
16526
|
-
} else if (_this.jSPlugin.decoderState.state.rec) {
|
|
16576
|
+
} else if (_this.jSPlugin.Theme.decoderState.state.rec) {
|
|
16527
16577
|
_this.jSPlugin.changePlayUrl({
|
|
16528
16578
|
begin: new Date(e.date).Format('yyyyMMdd'),
|
|
16529
16579
|
type: 'rec'
|
|
@@ -16544,8 +16594,8 @@ var Rec = /*#__PURE__*/function () {
|
|
|
16544
16594
|
}
|
|
16545
16595
|
_this.datepickerVisible = false;
|
|
16546
16596
|
//xuehb 重置放大倍数
|
|
16547
|
-
if (_this.jSPlugin.
|
|
16548
|
-
_this.jSPlugin.setDecoderState({
|
|
16597
|
+
if (_this.jSPlugin.Theme && _this.jSPlugin.Theme.decoderState && _this.jSPlugin.Theme.decoderState.state && _this.jSPlugin.Theme.decoderState.state.zoom) {
|
|
16598
|
+
_this.jSPlugin.Theme.setDecoderState({
|
|
16549
16599
|
zoom: false
|
|
16550
16600
|
});
|
|
16551
16601
|
_this.jSPlugin.Zoom.stopZoom();
|
|
@@ -29734,6 +29784,7 @@ var Theme = /*#__PURE__*/function () {
|
|
|
29734
29784
|
//回放时调用恢复播放状态
|
|
29735
29785
|
if (_this9.isMobile) {
|
|
29736
29786
|
_this9.jSPlugin.resume(_this9.pauseTime);
|
|
29787
|
+
_this9.pauseTime = null;
|
|
29737
29788
|
} else {
|
|
29738
29789
|
_this9.jSPlugin.resume();
|
|
29739
29790
|
}
|
|
@@ -33847,9 +33898,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
33847
33898
|
console.log(iWndIndex, iErrorCode, oError);
|
|
33848
33899
|
if (iErrorCode === 1003) {
|
|
33849
33900
|
console.log("断流");
|
|
33850
|
-
_this2.Theme
|
|
33851
|
-
|
|
33852
|
-
|
|
33901
|
+
if (_this2.Theme) {
|
|
33902
|
+
_this2.Theme.setDecoderState({
|
|
33903
|
+
play: false
|
|
33904
|
+
});
|
|
33905
|
+
}
|
|
33853
33906
|
_this2.pluginStatus.setPlayStatus({
|
|
33854
33907
|
play: false
|
|
33855
33908
|
});
|
|
@@ -33878,9 +33931,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
33878
33931
|
} else if (errorInfo && errorInfo.description) {
|
|
33879
33932
|
msg = errorInfo.description;
|
|
33880
33933
|
}
|
|
33881
|
-
_this2.Theme
|
|
33882
|
-
|
|
33883
|
-
|
|
33934
|
+
if (_this2.Theme) {
|
|
33935
|
+
_this2.Theme.setDecoderState({
|
|
33936
|
+
play: false
|
|
33937
|
+
});
|
|
33938
|
+
}
|
|
33884
33939
|
_this2.pluginStatus.setPlayStatus({
|
|
33885
33940
|
play: false
|
|
33886
33941
|
});
|
|
@@ -33994,7 +34049,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
33994
34049
|
msg: "初始化成功"
|
|
33995
34050
|
}
|
|
33996
34051
|
});
|
|
33997
|
-
if (params.url.indexOf('rec') != -1) {
|
|
34052
|
+
if (params.url.indexOf('rec') != -1 && params.template && params.template.length < 32 && params.template != 'simple' && _this2.Theme) {
|
|
33998
34053
|
//传入rec播放地址时将主题切换至回放
|
|
33999
34054
|
_this2.Theme.changeTheme(_this2.isMobile ? "mobileRec" : "pcRec");
|
|
34000
34055
|
}
|
|
@@ -34093,9 +34148,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34093
34148
|
console.log(iWndIndex, iErrorCode, oError);
|
|
34094
34149
|
if (iErrorCode === 1003) {
|
|
34095
34150
|
console.log("断流");
|
|
34096
|
-
_this2.Theme
|
|
34097
|
-
|
|
34098
|
-
|
|
34151
|
+
if (_this2.Theme) {
|
|
34152
|
+
_this2.Theme.setDecoderState({
|
|
34153
|
+
play: false
|
|
34154
|
+
});
|
|
34155
|
+
}
|
|
34099
34156
|
_this2.pluginStatus.setPlayStatus({
|
|
34100
34157
|
play: false
|
|
34101
34158
|
});
|
|
@@ -34124,9 +34181,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34124
34181
|
} else if (errorInfo && errorInfo.description) {
|
|
34125
34182
|
msg = errorInfo.description;
|
|
34126
34183
|
}
|
|
34127
|
-
_this2.Theme
|
|
34128
|
-
|
|
34129
|
-
|
|
34184
|
+
if (_this2.Theme) {
|
|
34185
|
+
_this2.Theme.setDecoderState({
|
|
34186
|
+
play: false
|
|
34187
|
+
});
|
|
34188
|
+
}
|
|
34130
34189
|
_this2.pluginStatus.setPlayStatus({
|
|
34131
34190
|
play: false
|
|
34132
34191
|
});
|
|
@@ -34188,7 +34247,7 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34188
34247
|
msg: "初始化成功"
|
|
34189
34248
|
}
|
|
34190
34249
|
});
|
|
34191
|
-
if (params.url.indexOf('rec') != -1) {
|
|
34250
|
+
if (params.url.indexOf('rec') != -1 && params.template && params.template.length < 32 && params.template != 'simple' && _this2.Theme) {
|
|
34192
34251
|
//传入rec播放地址时将主题切换至回放
|
|
34193
34252
|
_this2.Theme.changeTheme(_this2.isMobile ? "mobileRec" : "pcRec");
|
|
34194
34253
|
}
|
|
@@ -34220,9 +34279,9 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34220
34279
|
var apiUrl = apiDomain + "/api/lapp/live/url/ezopen";
|
|
34221
34280
|
var data = new FormData();
|
|
34222
34281
|
data.append("ezopen", url);
|
|
34223
|
-
data.append("isFlv", false);
|
|
34282
|
+
data.append("isFlv", 'false');
|
|
34224
34283
|
data.append("userAgent", window.navigator.userAgent);
|
|
34225
|
-
data.append("isHttp", false);
|
|
34284
|
+
data.append("isHttp", 'false');
|
|
34226
34285
|
data.append("accessToken", accessToken);
|
|
34227
34286
|
fetch(apiUrl, {
|
|
34228
34287
|
method: "POST",
|
|
@@ -34459,10 +34518,10 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34459
34518
|
} else {
|
|
34460
34519
|
if (_this3.Theme) {
|
|
34461
34520
|
_this3.Theme.setDisabled(true);
|
|
34521
|
+
_this3.Theme.setDecoderState({
|
|
34522
|
+
play: false
|
|
34523
|
+
});
|
|
34462
34524
|
}
|
|
34463
|
-
_this3.Theme.setDecoderState({
|
|
34464
|
-
play: false
|
|
34465
|
-
});
|
|
34466
34525
|
_this3.pluginStatus.setPlayStatus({
|
|
34467
34526
|
play: false
|
|
34468
34527
|
});
|
|
@@ -34850,11 +34909,15 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34850
34909
|
this.is3DZooming = false;
|
|
34851
34910
|
this.close3DZoom();
|
|
34852
34911
|
} else {
|
|
34853
|
-
this.Zoom
|
|
34912
|
+
if (this.Zoom && this.Zoom.currentScale > 1) {
|
|
34913
|
+
this.Zoom.stopZoom();
|
|
34914
|
+
}
|
|
34915
|
+
}
|
|
34916
|
+
if (this.Theme) {
|
|
34917
|
+
this.Theme.setDecoderState({
|
|
34918
|
+
zoom: false
|
|
34919
|
+
});
|
|
34854
34920
|
}
|
|
34855
|
-
this.Theme.setDecoderState({
|
|
34856
|
-
zoom: false
|
|
34857
|
-
});
|
|
34858
34921
|
}
|
|
34859
34922
|
// 对讲初始化
|
|
34860
34923
|
if (this.Theme && this.Theme.decoderState.state.talk) {
|
|
@@ -34923,22 +34986,28 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
34923
34986
|
_this7.Theme.expend();
|
|
34924
34987
|
}
|
|
34925
34988
|
if (options.type) {
|
|
34926
|
-
if (
|
|
34927
|
-
|
|
34928
|
-
|
|
34929
|
-
|
|
34989
|
+
if (_this7.Theme) {
|
|
34990
|
+
if (options.type == 'rec' || options.type == 'cloud.rec') {
|
|
34991
|
+
_this7.Theme.changeTheme(_this7.isMobile ? "mobileRec" : "pcRec");
|
|
34992
|
+
} else {
|
|
34993
|
+
_this7.Theme.changeTheme(_this7.isMobile ? "mobileLive" : "pcLive");
|
|
34994
|
+
}
|
|
34930
34995
|
}
|
|
34931
34996
|
} else {
|
|
34932
|
-
if (_this7.
|
|
34933
|
-
_this7.
|
|
34934
|
-
|
|
34935
|
-
|
|
34997
|
+
if (_this7.Theme) {
|
|
34998
|
+
if (_this7.url.indexOf('.rec') > -1) {
|
|
34999
|
+
_this7.Theme.changeTheme(_this7.isMobile ? "mobileRec" : "pcRec");
|
|
35000
|
+
} else {
|
|
35001
|
+
_this7.Theme.changeTheme(_this7.isMobile ? "mobileLive" : "pcLive");
|
|
35002
|
+
}
|
|
34936
35003
|
}
|
|
34937
35004
|
}
|
|
34938
|
-
if (options && options.begin && options.deviceSerial) {
|
|
35005
|
+
if (options && options.begin && options.deviceSerial && _this7.Theme) {
|
|
34939
35006
|
_this7.Theme.Rec.setDatepickerDate(options.begin);
|
|
34940
35007
|
}
|
|
34941
|
-
_this7.Theme
|
|
35008
|
+
if (_this7.Theme) {
|
|
35009
|
+
_this7.Theme.setDisabled(false);
|
|
35010
|
+
}
|
|
34942
35011
|
resolve(url);
|
|
34943
35012
|
})["catch"](function (err) {
|
|
34944
35013
|
reject(url);
|
|
@@ -35306,16 +35375,22 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35306
35375
|
}
|
|
35307
35376
|
if (!this.is3DZooming) {
|
|
35308
35377
|
if (!this.isMobile) {
|
|
35309
|
-
this.Zoom
|
|
35310
|
-
|
|
35311
|
-
|
|
35312
|
-
|
|
35378
|
+
if (this.Zoom) {
|
|
35379
|
+
this.Zoom.stopZoom();
|
|
35380
|
+
}
|
|
35381
|
+
if (this.Theme) {
|
|
35382
|
+
this.Theme.setDecoderState({
|
|
35383
|
+
zoom: false
|
|
35384
|
+
});
|
|
35385
|
+
}
|
|
35313
35386
|
}
|
|
35314
35387
|
if (this.support3DZoom) {
|
|
35315
35388
|
this.is3DZooming = true;
|
|
35316
|
-
this.Theme
|
|
35317
|
-
|
|
35318
|
-
|
|
35389
|
+
if (this.Theme) {
|
|
35390
|
+
this.Theme.setDecoderState({
|
|
35391
|
+
zoom: true
|
|
35392
|
+
});
|
|
35393
|
+
}
|
|
35319
35394
|
if (document.getElementById("".concat(this.id, "-zoom-content"))) {
|
|
35320
35395
|
document.getElementById("".concat(this.id, "-zoom-content")).title = '3D定位';
|
|
35321
35396
|
}
|
|
@@ -35399,9 +35474,11 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35399
35474
|
});
|
|
35400
35475
|
}
|
|
35401
35476
|
if (this.is3DZooming) {
|
|
35402
|
-
this.Theme
|
|
35403
|
-
|
|
35404
|
-
|
|
35477
|
+
if (this.Theme) {
|
|
35478
|
+
this.Theme.setDecoderState({
|
|
35479
|
+
zoom: false
|
|
35480
|
+
});
|
|
35481
|
+
}
|
|
35405
35482
|
var close3DZoomRT = this.jSPlugin.JS_Disable3DZoom(0);
|
|
35406
35483
|
if (this.isMobile) {
|
|
35407
35484
|
this.Zoom = new MobileZoom(this);
|
|
@@ -35437,12 +35514,14 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35437
35514
|
//切换缩放模式
|
|
35438
35515
|
if (this.is3DZooming) {
|
|
35439
35516
|
this.close3DZoom();
|
|
35440
|
-
} else if (this.Theme.decoderState.state.zoom) {
|
|
35517
|
+
} else if (this.Theme && this.Theme.decoderState.state.zoom) {
|
|
35441
35518
|
this.Zoom && this.Zoom.stopZoom();
|
|
35442
35519
|
}
|
|
35443
|
-
this.Theme
|
|
35444
|
-
|
|
35445
|
-
|
|
35520
|
+
if (this.Theme) {
|
|
35521
|
+
this.Theme.setDecoderState({
|
|
35522
|
+
zoom: false
|
|
35523
|
+
});
|
|
35524
|
+
}
|
|
35446
35525
|
this.use3DZoom = flag;
|
|
35447
35526
|
if (this.isMobile) {
|
|
35448
35527
|
this.Zoom = new MobileZoom(this);
|
|
@@ -35541,8 +35620,10 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35541
35620
|
var speed = this.speed;
|
|
35542
35621
|
if (next) {
|
|
35543
35622
|
var fastRT = this.jSPlugin.JS_Speed(next);
|
|
35544
|
-
this.Theme
|
|
35545
|
-
|
|
35623
|
+
if (this.Theme) {
|
|
35624
|
+
this.Theme.changeRecSpeed(next);
|
|
35625
|
+
this.Theme.nextRate = next;
|
|
35626
|
+
}
|
|
35546
35627
|
} else {
|
|
35547
35628
|
if (speed === 1) {
|
|
35548
35629
|
speed = 2;
|
|
@@ -35570,8 +35651,10 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35570
35651
|
});
|
|
35571
35652
|
}
|
|
35572
35653
|
var fastRT = this.jSPlugin.JS_Speed(speed);
|
|
35573
|
-
this.Theme
|
|
35574
|
-
|
|
35654
|
+
if (this.Theme) {
|
|
35655
|
+
this.Theme.changeRecSpeed(speed);
|
|
35656
|
+
this.Theme.nextRate = speed;
|
|
35657
|
+
}
|
|
35575
35658
|
}
|
|
35576
35659
|
return new Promise(function (resolve) {
|
|
35577
35660
|
_this14.speed = speed;
|
|
@@ -35870,8 +35953,12 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35870
35953
|
}, {
|
|
35871
35954
|
key: "getDefinition",
|
|
35872
35955
|
value: function getDefinition() {
|
|
35873
|
-
|
|
35874
|
-
|
|
35956
|
+
if (this.Theme) {
|
|
35957
|
+
console.log('当前清晰度:', this.Theme.decoderState.state.hd ? 'hd' : 'sd');
|
|
35958
|
+
return this.Theme.decoderState.state.hd ? 'hd' : 'sd';
|
|
35959
|
+
} else {
|
|
35960
|
+
return false;
|
|
35961
|
+
}
|
|
35875
35962
|
}
|
|
35876
35963
|
|
|
35877
35964
|
//切换清晰度
|
|
@@ -35884,12 +35971,14 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35884
35971
|
return;
|
|
35885
35972
|
}
|
|
35886
35973
|
this.changeVideoLevel(type === 'hd' ? 1 : 0);
|
|
35887
|
-
this.Theme
|
|
35888
|
-
|
|
35889
|
-
|
|
35890
|
-
|
|
35974
|
+
if (this.Theme) {
|
|
35975
|
+
this.Theme.setDecoderState({
|
|
35976
|
+
hd: type === 'hd'
|
|
35977
|
+
});
|
|
35978
|
+
this.Theme.resetMobileZoomStatus();
|
|
35979
|
+
}
|
|
35891
35980
|
//切换清晰度时停止录像并关闭录像计时
|
|
35892
|
-
if (this.Theme.decoderState.state.recordvideo) {
|
|
35981
|
+
if (this.Theme && this.Theme.decoderState.state.recordvideo) {
|
|
35893
35982
|
this.Theme.setDecoderState({
|
|
35894
35983
|
recordvideo: false
|
|
35895
35984
|
});
|
|
@@ -35900,53 +35989,73 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35900
35989
|
}, {
|
|
35901
35990
|
key: "getPtzStatus",
|
|
35902
35991
|
value: function getPtzStatus() {
|
|
35903
|
-
|
|
35904
|
-
|
|
35992
|
+
if (this.Theme) {
|
|
35993
|
+
console.log('当前是否开启云台:', this.Theme.Ptz.showPtz);
|
|
35994
|
+
return this.Theme.Ptz.showPtz;
|
|
35995
|
+
}
|
|
35905
35996
|
}
|
|
35906
35997
|
|
|
35907
35998
|
//开启云台
|
|
35908
35999
|
}, {
|
|
35909
36000
|
key: "openPtz",
|
|
35910
36001
|
value: function openPtz() {
|
|
35911
|
-
if (this.
|
|
35912
|
-
|
|
35913
|
-
|
|
35914
|
-
|
|
36002
|
+
if (this.Theme) {
|
|
36003
|
+
if (this.isMobile && this.Theme && !this.Theme.decoderState.state.expend) {
|
|
36004
|
+
console.log("移动端,非全屏状态不展示云台");
|
|
36005
|
+
// 移动端,非全屏状态不展示云台
|
|
36006
|
+
return false;
|
|
36007
|
+
}
|
|
36008
|
+
console.log('显示云台');
|
|
36009
|
+
this.Theme.setDecoderState({
|
|
36010
|
+
pantile: true
|
|
36011
|
+
});
|
|
36012
|
+
this.Theme.Ptz.show();
|
|
36013
|
+
} else {
|
|
36014
|
+
return {
|
|
36015
|
+
code: -1,
|
|
36016
|
+
msg: "未加载Theme模块,无法操作云台"
|
|
36017
|
+
};
|
|
35915
36018
|
}
|
|
35916
|
-
console.log('显示云台');
|
|
35917
|
-
this.Theme.setDecoderState({
|
|
35918
|
-
pantile: true
|
|
35919
|
-
});
|
|
35920
|
-
this.Theme.Ptz.show();
|
|
35921
36019
|
}
|
|
35922
36020
|
|
|
35923
36021
|
//关闭云台
|
|
35924
36022
|
}, {
|
|
35925
36023
|
key: "closePtz",
|
|
35926
36024
|
value: function closePtz() {
|
|
35927
|
-
|
|
35928
|
-
|
|
35929
|
-
|
|
35930
|
-
|
|
35931
|
-
|
|
36025
|
+
if (this.Theme) {
|
|
36026
|
+
console.log('隐藏云台');
|
|
36027
|
+
this.Theme.setDecoderState({
|
|
36028
|
+
pantile: false
|
|
36029
|
+
});
|
|
36030
|
+
this.Theme.Ptz.hide();
|
|
36031
|
+
} else {
|
|
36032
|
+
return {
|
|
36033
|
+
code: -1,
|
|
36034
|
+
msg: "未加载Theme模块,无法操作云台"
|
|
36035
|
+
};
|
|
36036
|
+
}
|
|
35932
36037
|
}
|
|
35933
36038
|
|
|
35934
36039
|
//获取浏览器全屏状态
|
|
35935
36040
|
}, {
|
|
35936
36041
|
key: "isBrowserFullscreen",
|
|
35937
36042
|
value: function isBrowserFullscreen() {
|
|
35938
|
-
|
|
35939
|
-
|
|
36043
|
+
if (this.Theme) {
|
|
36044
|
+
console.log('当前是否为浏览器全屏状态:', this.Theme.decoderState.state.webExpend);
|
|
36045
|
+
return this.Theme.decoderState.state.webExpend;
|
|
36046
|
+
}
|
|
35940
36047
|
}
|
|
35941
36048
|
|
|
35942
36049
|
//开启网页全屏
|
|
35943
36050
|
}, {
|
|
35944
36051
|
key: "browserFullscreen",
|
|
35945
36052
|
value: function browserFullscreen() {
|
|
35946
|
-
this.Theme
|
|
35947
|
-
|
|
35948
|
-
|
|
35949
|
-
|
|
36053
|
+
if (this.Theme) {
|
|
36054
|
+
this.Theme.webExpend();
|
|
36055
|
+
this.Theme.setDecoderState({
|
|
36056
|
+
webExpend: true
|
|
36057
|
+
});
|
|
36058
|
+
}
|
|
35950
36059
|
}
|
|
35951
36060
|
|
|
35952
36061
|
//退出网页全屏
|
|
@@ -35957,12 +36066,14 @@ var EZUIKitPlayer = /*#__PURE__*/function () {
|
|
|
35957
36066
|
var cancelPromise = cancelFullScreenPromise();
|
|
35958
36067
|
cancelPromise.then(function (data) {
|
|
35959
36068
|
_this21.jSPlugin.JS_Resize(width ? width : _this21.width, height ? height : _this21.height);
|
|
35960
|
-
if (_this21.Theme
|
|
35961
|
-
_this21.Theme.Rec
|
|
36069
|
+
if (_this21.Theme) {
|
|
36070
|
+
if (_this21.Theme.Rec) {
|
|
36071
|
+
_this21.Theme.Rec.recAutoSize();
|
|
36072
|
+
}
|
|
36073
|
+
_this21.Theme.setDecoderState({
|
|
36074
|
+
webExpend: false
|
|
36075
|
+
});
|
|
35962
36076
|
}
|
|
35963
|
-
_this21.Theme.setDecoderState({
|
|
35964
|
-
webExpend: false
|
|
35965
|
-
});
|
|
35966
36077
|
});
|
|
35967
36078
|
}
|
|
35968
36079
|
|
|
@@ -15809,11 +15809,14 @@ class JSPluginV2 {
|
|
|
15809
15809
|
}
|
|
15810
15810
|
JS_Speed(nextRate) {
|
|
15811
15811
|
this.oStreamClient.setPlayRate(this.szStreamUUID, nextRate);
|
|
15812
|
-
window.Module._JSPlayM4_SetDecodeFrameType(
|
|
15813
|
-
|
|
15812
|
+
window.Module._JSPlayM4_SetDecodeFrameType(0);
|
|
15813
|
+
if (nextRate > this.iRate) {
|
|
15814
|
+
window.Module._JSPlayM4_Fast(this.g_port);
|
|
15815
|
+
} else if (nextRate < this.iRate) {
|
|
15816
|
+
window.Module._JSPlayM4_Slow(this.g_port);
|
|
15817
|
+
}
|
|
15814
15818
|
this.iRate = nextRate;
|
|
15815
15819
|
console.log("开启倍速播放", nextRate);
|
|
15816
|
-
console.log("开启倍速播放res:", fastRes);
|
|
15817
15820
|
}
|
|
15818
15821
|
JS_Seek(iWndNum, szStartTime, szStopTime) {
|
|
15819
15822
|
let oPromise = new Promise((resolve, reject) => {
|