inl-ui 0.1.21 → 0.1.23
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/dist/components/index.cjs +84 -23
- package/dist/components/index.d.ts +68 -10
- package/dist/components/index.js +83 -24
- package/dist/components/style.css +2 -1
- package/dist/hooks/index.cjs +5 -9
- package/dist/hooks/index.js +5 -9
- package/dist/index.cjs +85 -24
- package/dist/index.d.ts +86 -28
- package/dist/index.js +84 -24
- package/dist/style.css +2 -1
- package/dist/tplib/index.cjs +5 -9
- package/dist/tplib/index.d.ts +0 -1
- package/dist/tplib/index.js +5 -9
- package/dist/video/index.cjs +84 -23
- package/dist/video/index.d.ts +65 -7
- package/dist/video/index.js +83 -24
- package/dist/video/style.css +2 -1
- package/dist/videoMobile/index.cjs +7 -11
- package/dist/videoMobile/index.js +7 -11
- package/package.json +3 -1
package/dist/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var dayjs = require('dayjs');
|
|
|
13
13
|
var vueRouter = require('vue-router');
|
|
14
14
|
var iconsVue = require('@ant-design/icons-vue');
|
|
15
15
|
var qiankun$1 = require('qiankun');
|
|
16
|
+
var EZUIKit = require('ezuikit-js');
|
|
16
17
|
var mobile = require('@sszj-temp/mobile');
|
|
17
18
|
require('@sszj-temp/mobile/style.css');
|
|
18
19
|
|
|
@@ -41,8 +42,9 @@ var renderWithQiankun__default = /*#__PURE__*/_interopDefaultLegacy(renderWithQi
|
|
|
41
42
|
var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
42
43
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
43
44
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
45
|
+
var EZUIKit__default = /*#__PURE__*/_interopDefaultLegacy(EZUIKit);
|
|
44
46
|
|
|
45
|
-
var version = "0.1.
|
|
47
|
+
var version = "0.1.22";
|
|
46
48
|
|
|
47
49
|
const setTheme = theme => {
|
|
48
50
|
if (theme === "dark") {
|
|
@@ -5467,7 +5469,7 @@ class WebRtcMt$1 {
|
|
|
5467
5469
|
}
|
|
5468
5470
|
}
|
|
5469
5471
|
}
|
|
5470
|
-
retryTime;
|
|
5472
|
+
// protected retryTime;
|
|
5471
5473
|
// 拉流创建播放器
|
|
5472
5474
|
createVideo(plays) {
|
|
5473
5475
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
@@ -5478,7 +5480,6 @@ class WebRtcMt$1 {
|
|
|
5478
5480
|
fetch(addRtspProxyUrl, {
|
|
5479
5481
|
method: "GET"
|
|
5480
5482
|
}).then(response => {
|
|
5481
|
-
this.retryTime = 0;
|
|
5482
5483
|
response.json().then(res => {
|
|
5483
5484
|
if (res.code === 0) {
|
|
5484
5485
|
this.startPlay(plays);
|
|
@@ -5490,12 +5491,9 @@ class WebRtcMt$1 {
|
|
|
5490
5491
|
}
|
|
5491
5492
|
});
|
|
5492
5493
|
}).catch(err => {
|
|
5493
|
-
|
|
5494
|
-
this.
|
|
5495
|
-
|
|
5496
|
-
this.rePlay();
|
|
5497
|
-
}, 60 * 1e3);
|
|
5498
|
-
}
|
|
5494
|
+
setTimeout(() => {
|
|
5495
|
+
this.rePlay();
|
|
5496
|
+
}, 3 * 60 * 1e3);
|
|
5499
5497
|
});
|
|
5500
5498
|
});
|
|
5501
5499
|
}
|
|
@@ -5554,7 +5552,7 @@ class WebRtcMt$1 {
|
|
|
5554
5552
|
this.stopPlay();
|
|
5555
5553
|
setTimeout(() => {
|
|
5556
5554
|
this.init(this.opt);
|
|
5557
|
-
}, 1e3);
|
|
5555
|
+
}, 5 * 1e3);
|
|
5558
5556
|
}
|
|
5559
5557
|
// 播放
|
|
5560
5558
|
play(videoElm) {
|
|
@@ -8601,9 +8599,9 @@ const VideoPlayerV2 = vue.defineComponent({
|
|
|
8601
8599
|
});
|
|
8602
8600
|
vue.onBeforeUnmount(() => {
|
|
8603
8601
|
stopPlay();
|
|
8604
|
-
|
|
8605
|
-
const videoElement = document.getElementById(uuid);
|
|
8602
|
+
const videoElement = document.getElementById(`videoPlayer_${uuid}`);
|
|
8606
8603
|
if (videoElement) {
|
|
8604
|
+
videoElement.pause();
|
|
8607
8605
|
videoElement.src = null;
|
|
8608
8606
|
videoElement.srcObject = null;
|
|
8609
8607
|
videoElement.remove();
|
|
@@ -9046,23 +9044,12 @@ const VideoBoxV2 = vue.defineComponent({
|
|
|
9046
9044
|
camera.value = res.data.data;
|
|
9047
9045
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
9048
9046
|
};
|
|
9049
|
-
let interval;
|
|
9050
9047
|
let timeout;
|
|
9051
9048
|
let show = vue.ref(true);
|
|
9052
|
-
|
|
9053
|
-
show.value = false;
|
|
9054
|
-
setTimeout(() => {
|
|
9055
|
-
show.value = true;
|
|
9056
|
-
}, 500);
|
|
9057
|
-
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
9058
|
-
vue.onBeforeUnmount(() => {
|
|
9059
|
-
clearInterval(interval);
|
|
9060
|
-
clearInterval(timer);
|
|
9061
|
-
});
|
|
9049
|
+
vue.onBeforeUnmount(() => {});
|
|
9062
9050
|
const fill = vue.ref("fill");
|
|
9063
9051
|
vue.watch(() => _prop.camera, val => {
|
|
9064
9052
|
if (val && Object.keys(val).length != 0) {
|
|
9065
|
-
clearInterval(interval);
|
|
9066
9053
|
getVideoParams(val);
|
|
9067
9054
|
getVideoDetail(val);
|
|
9068
9055
|
const fillVal = localStorage.getItem(val);
|
|
@@ -9668,6 +9655,79 @@ const AlarmVideo = vue.defineComponent({
|
|
|
9668
9655
|
});
|
|
9669
9656
|
var alarmVideo = installComponent(AlarmVideo, "alarm-video");
|
|
9670
9657
|
|
|
9658
|
+
const CloudVideo = vue.defineComponent({
|
|
9659
|
+
props: {
|
|
9660
|
+
// 视频信息|视频源uuid
|
|
9661
|
+
cameraId: {
|
|
9662
|
+
require: true,
|
|
9663
|
+
type: String
|
|
9664
|
+
},
|
|
9665
|
+
channelNo: {
|
|
9666
|
+
type: Number,
|
|
9667
|
+
default: 1
|
|
9668
|
+
},
|
|
9669
|
+
token: {
|
|
9670
|
+
type: String,
|
|
9671
|
+
default: ""
|
|
9672
|
+
},
|
|
9673
|
+
template: {
|
|
9674
|
+
type: String,
|
|
9675
|
+
default: ""
|
|
9676
|
+
},
|
|
9677
|
+
height: {
|
|
9678
|
+
type: Number,
|
|
9679
|
+
default: ""
|
|
9680
|
+
},
|
|
9681
|
+
width: {
|
|
9682
|
+
type: Number,
|
|
9683
|
+
default: ""
|
|
9684
|
+
}
|
|
9685
|
+
},
|
|
9686
|
+
emits: [],
|
|
9687
|
+
setup(prop, _context) {
|
|
9688
|
+
const uuid = vue.ref(UUID());
|
|
9689
|
+
let player;
|
|
9690
|
+
const initVideo = async () => {
|
|
9691
|
+
const res = await axios__default["default"].post("https://open.ys7.com/api/lapp/v2/live/address/get", void 0, {
|
|
9692
|
+
params: {
|
|
9693
|
+
accessToken: prop.token,
|
|
9694
|
+
deviceSerial: prop.cameraId,
|
|
9695
|
+
channelNo: prop.channelNo || 1
|
|
9696
|
+
}
|
|
9697
|
+
});
|
|
9698
|
+
const opt = {
|
|
9699
|
+
id: `cloudVideo_${uuid.value}`,
|
|
9700
|
+
url: res.data.data.url,
|
|
9701
|
+
accessToken: prop.token,
|
|
9702
|
+
template: "6298aca808d643fb99f481f2db5bf6a2",
|
|
9703
|
+
height: 300
|
|
9704
|
+
};
|
|
9705
|
+
if (prop.template) {
|
|
9706
|
+
opt.template = prop.template;
|
|
9707
|
+
}
|
|
9708
|
+
if (prop.width) {
|
|
9709
|
+
opt.width = prop.width;
|
|
9710
|
+
}
|
|
9711
|
+
if (prop.template) {
|
|
9712
|
+
opt.height = prop.height;
|
|
9713
|
+
}
|
|
9714
|
+
player = new EZUIKit__default["default"].EZUIKitPlayer(opt);
|
|
9715
|
+
};
|
|
9716
|
+
vue.onMounted(() => {
|
|
9717
|
+
initVideo();
|
|
9718
|
+
});
|
|
9719
|
+
vue.onBeforeUnmount(() => {
|
|
9720
|
+
player?.stop();
|
|
9721
|
+
});
|
|
9722
|
+
return () => vue.createVNode("div", {
|
|
9723
|
+
"class": "cloudVideo"
|
|
9724
|
+
}, [vue.createVNode("div", {
|
|
9725
|
+
"id": `cloudVideo_${uuid.value}`
|
|
9726
|
+
}, null)]);
|
|
9727
|
+
}
|
|
9728
|
+
});
|
|
9729
|
+
var cloudVideo = installComponent(CloudVideo, "cloud-video");
|
|
9730
|
+
|
|
9671
9731
|
const appName = "live";
|
|
9672
9732
|
class WebRtcMt {
|
|
9673
9733
|
constructor(opt) {
|
|
@@ -12262,6 +12322,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
12262
12322
|
VideoBoxV2: VideoBoxV2$1,
|
|
12263
12323
|
PollingPlay: pollingPlay,
|
|
12264
12324
|
AlarmVideo: alarmVideo,
|
|
12325
|
+
CloudVideo: cloudVideo,
|
|
12265
12326
|
IconSelect: icons,
|
|
12266
12327
|
PeopleSelect: index$4,
|
|
12267
12328
|
FontSelect: index$2,
|
package/dist/index.d.ts
CHANGED
|
@@ -11,9 +11,9 @@ import { Key } from 'ant-design-vue/lib/table/interface';
|
|
|
11
11
|
import * as vue_jsx_runtime from 'vue/jsx-runtime';
|
|
12
12
|
import * as _ant_design_icons_vue_lib_components_IconFont from '@ant-design/icons-vue/lib/components/IconFont';
|
|
13
13
|
|
|
14
|
-
var version = "0.1.
|
|
14
|
+
var version = "0.1.22";
|
|
15
15
|
|
|
16
|
-
declare const _default$
|
|
16
|
+
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
|
18
18
|
settingTheme(theme?: string): void;
|
|
19
19
|
};
|
|
@@ -106,7 +106,7 @@ declare function encodeStr(str: string): string;
|
|
|
106
106
|
* @returns 解密后的字符串
|
|
107
107
|
*/
|
|
108
108
|
declare function decodeStr(str: string): string;
|
|
109
|
-
declare const _default$
|
|
109
|
+
declare const _default$o: {
|
|
110
110
|
encodeStr: typeof encodeStr;
|
|
111
111
|
decodeStr: typeof decodeStr;
|
|
112
112
|
};
|
|
@@ -141,7 +141,7 @@ declare function randomNumber(min: any, max: any): any;
|
|
|
141
141
|
* @param length 长度
|
|
142
142
|
*/
|
|
143
143
|
declare function randomString(length: number): string;
|
|
144
|
-
declare const _default$
|
|
144
|
+
declare const _default$n: {
|
|
145
145
|
randomNumber: typeof randomNumber;
|
|
146
146
|
randomString: typeof randomString;
|
|
147
147
|
UUID: (n?: number | undefined) => string;
|
|
@@ -219,7 +219,7 @@ declare const formatDuring: (time?: number, type?: string, unit?: number, isComp
|
|
|
219
219
|
* @param fileName 下载的文件名
|
|
220
220
|
*/
|
|
221
221
|
declare function downloadFile(data: Blob, fileName: string): void;
|
|
222
|
-
declare const _default$
|
|
222
|
+
declare const _default$m: {
|
|
223
223
|
downloadFile: typeof downloadFile;
|
|
224
224
|
};
|
|
225
225
|
|
|
@@ -239,18 +239,18 @@ declare const utils_forcedDecimals: typeof forcedDecimals;
|
|
|
239
239
|
declare const utils_formatDuring: typeof formatDuring;
|
|
240
240
|
declare namespace utils {
|
|
241
241
|
export {
|
|
242
|
-
_default$
|
|
242
|
+
_default$p as changeTheme,
|
|
243
243
|
utils_setRem as setRem,
|
|
244
244
|
microApp as microAppUtils,
|
|
245
245
|
utils_ApiInstance as ApiInstance,
|
|
246
246
|
utils_getCommonHeaders as getCommonHeaders,
|
|
247
|
-
_default$
|
|
247
|
+
_default$o as base64,
|
|
248
248
|
utils_Login as Login,
|
|
249
|
-
_default$
|
|
249
|
+
_default$n as random,
|
|
250
250
|
utils_upload as upload,
|
|
251
251
|
utils_phoneNumber as phoneNumber,
|
|
252
252
|
utils_screen as screen,
|
|
253
|
-
_default$
|
|
253
|
+
_default$m as file,
|
|
254
254
|
utils_formatMoney as formatMoney,
|
|
255
255
|
utils_toChinese as toChinese,
|
|
256
256
|
utils_limitDecimal as limitDecimal,
|
|
@@ -447,7 +447,6 @@ declare class WebRtcMt {
|
|
|
447
447
|
sdpUrl: any;
|
|
448
448
|
};
|
|
449
449
|
protected init(opt: WebRtc): void;
|
|
450
|
-
protected retryTime: any;
|
|
451
450
|
protected createVideo(plays: PlayVideoArgs): Promise<unknown>;
|
|
452
451
|
log(type: "err" | "info" | "warn", text: string): void;
|
|
453
452
|
stopPlay(id?: string): void;
|
|
@@ -769,7 +768,7 @@ declare namespace index {
|
|
|
769
768
|
};
|
|
770
769
|
}
|
|
771
770
|
|
|
772
|
-
declare const _default$
|
|
771
|
+
declare const _default$l: vue.DefineComponent<{
|
|
773
772
|
name: {
|
|
774
773
|
type: StringConstructor;
|
|
775
774
|
default: string;
|
|
@@ -783,7 +782,7 @@ declare const _default$k: vue.DefineComponent<{
|
|
|
783
782
|
name: string;
|
|
784
783
|
}, {}>;
|
|
785
784
|
|
|
786
|
-
declare const _default$
|
|
785
|
+
declare const _default$k: vue.FunctionalComponent<_ant_design_icons_vue_lib_components_IconFont.IconFontProps, {}, any>;
|
|
787
786
|
|
|
788
787
|
interface IMenuItem {
|
|
789
788
|
id: string;
|
|
@@ -797,7 +796,7 @@ interface IMenuItem {
|
|
|
797
796
|
subList: IMenuItem[];
|
|
798
797
|
}
|
|
799
798
|
type MenuList = IMenuItem[];
|
|
800
|
-
declare const _default$
|
|
799
|
+
declare const _default$j: vue.DefineComponent<{
|
|
801
800
|
userMenu: {
|
|
802
801
|
type: PropType<MenuList>;
|
|
803
802
|
required: true;
|
|
@@ -894,7 +893,7 @@ declare const _default$i: vue.DefineComponent<{
|
|
|
894
893
|
showNotice: boolean;
|
|
895
894
|
}, {}>;
|
|
896
895
|
|
|
897
|
-
declare const _default$
|
|
896
|
+
declare const _default$i: vue.DefineComponent<{
|
|
898
897
|
isClould: {
|
|
899
898
|
default: boolean;
|
|
900
899
|
type: BooleanConstructor;
|
|
@@ -956,7 +955,7 @@ declare const _default$h: vue.DefineComponent<{
|
|
|
956
955
|
bg: string;
|
|
957
956
|
}, {}>;
|
|
958
957
|
|
|
959
|
-
declare const _default$
|
|
958
|
+
declare const _default$h: vue.DefineComponent<Readonly<vue.ComponentPropsOptions<{
|
|
960
959
|
[x: string]: unknown;
|
|
961
960
|
}>>, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, never[], never, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<readonly string[] | vue.ExtractPropTypes<Readonly<vue.ComponentObjectPropsOptions<{
|
|
962
961
|
[x: string]: unknown;
|
|
@@ -964,7 +963,7 @@ declare const _default$g: vue.DefineComponent<Readonly<vue.ComponentPropsOptions
|
|
|
964
963
|
[x: number]: string;
|
|
965
964
|
} | {}, {}>;
|
|
966
965
|
|
|
967
|
-
declare const _default$
|
|
966
|
+
declare const _default$g: vue.DefineComponent<{
|
|
968
967
|
withHeader: {
|
|
969
968
|
type: BooleanConstructor;
|
|
970
969
|
default: boolean;
|
|
@@ -1035,9 +1034,9 @@ declare const getDetailContainer: () => vue.DefineComponent<{
|
|
|
1035
1034
|
unmountOnDeactived: boolean;
|
|
1036
1035
|
}, {}>;
|
|
1037
1036
|
|
|
1038
|
-
declare const _default$
|
|
1037
|
+
declare const _default$f: vue.DefineComponent<{}, () => vue_jsx_runtime.JSX.Element, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}, {}>;
|
|
1039
1038
|
|
|
1040
|
-
declare const _default$
|
|
1039
|
+
declare const _default$e: vue.DefineComponent<{
|
|
1041
1040
|
teams: {
|
|
1042
1041
|
type: {
|
|
1043
1042
|
(arrayLength: number): any[];
|
|
@@ -1104,7 +1103,7 @@ declare const _default$d: vue.DefineComponent<{
|
|
|
1104
1103
|
showHeader: boolean;
|
|
1105
1104
|
}, {}>;
|
|
1106
1105
|
|
|
1107
|
-
declare const _default$
|
|
1106
|
+
declare const _default$d: vue.DefineComponent<{
|
|
1108
1107
|
theme: {
|
|
1109
1108
|
type: StringConstructor;
|
|
1110
1109
|
default: string;
|
|
@@ -1144,6 +1143,64 @@ declare const _default$c: vue.DefineComponent<{
|
|
|
1144
1143
|
countDown: number;
|
|
1145
1144
|
}, {}>;
|
|
1146
1145
|
|
|
1146
|
+
declare const _default$c: vue.DefineComponent<{
|
|
1147
|
+
cameraId: {
|
|
1148
|
+
require: boolean;
|
|
1149
|
+
type: StringConstructor;
|
|
1150
|
+
};
|
|
1151
|
+
channelNo: {
|
|
1152
|
+
type: NumberConstructor;
|
|
1153
|
+
default: number;
|
|
1154
|
+
};
|
|
1155
|
+
token: {
|
|
1156
|
+
type: StringConstructor;
|
|
1157
|
+
default: string;
|
|
1158
|
+
};
|
|
1159
|
+
template: {
|
|
1160
|
+
type: StringConstructor;
|
|
1161
|
+
default: string;
|
|
1162
|
+
};
|
|
1163
|
+
height: {
|
|
1164
|
+
type: NumberConstructor;
|
|
1165
|
+
default: string;
|
|
1166
|
+
};
|
|
1167
|
+
width: {
|
|
1168
|
+
type: NumberConstructor;
|
|
1169
|
+
default: string;
|
|
1170
|
+
};
|
|
1171
|
+
}, () => vue_jsx_runtime.JSX.Element, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, never[], never, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
1172
|
+
cameraId: {
|
|
1173
|
+
require: boolean;
|
|
1174
|
+
type: StringConstructor;
|
|
1175
|
+
};
|
|
1176
|
+
channelNo: {
|
|
1177
|
+
type: NumberConstructor;
|
|
1178
|
+
default: number;
|
|
1179
|
+
};
|
|
1180
|
+
token: {
|
|
1181
|
+
type: StringConstructor;
|
|
1182
|
+
default: string;
|
|
1183
|
+
};
|
|
1184
|
+
template: {
|
|
1185
|
+
type: StringConstructor;
|
|
1186
|
+
default: string;
|
|
1187
|
+
};
|
|
1188
|
+
height: {
|
|
1189
|
+
type: NumberConstructor;
|
|
1190
|
+
default: string;
|
|
1191
|
+
};
|
|
1192
|
+
width: {
|
|
1193
|
+
type: NumberConstructor;
|
|
1194
|
+
default: string;
|
|
1195
|
+
};
|
|
1196
|
+
}>> & {}, {
|
|
1197
|
+
template: string;
|
|
1198
|
+
width: number;
|
|
1199
|
+
token: string;
|
|
1200
|
+
height: number;
|
|
1201
|
+
channelNo: number;
|
|
1202
|
+
}, {}>;
|
|
1203
|
+
|
|
1147
1204
|
declare const _default$b: vue.DefineComponent<{
|
|
1148
1205
|
camera: {
|
|
1149
1206
|
require: boolean;
|
|
@@ -1832,9 +1889,9 @@ declare const components_ImportModal: typeof ImportModal;
|
|
|
1832
1889
|
declare const components_ParamManagerV2: typeof ParamManagerV2;
|
|
1833
1890
|
declare namespace components {
|
|
1834
1891
|
export {
|
|
1835
|
-
_default$
|
|
1836
|
-
_default$
|
|
1837
|
-
_default$
|
|
1892
|
+
_default$h as LayoutTable,
|
|
1893
|
+
_default$j as Layout,
|
|
1894
|
+
_default$g as ChildLayout,
|
|
1838
1895
|
_default$7 as HeaderMenu,
|
|
1839
1896
|
_default$5 as QueryFormContainer,
|
|
1840
1897
|
components_getDetailContainer as getDetailContainer,
|
|
@@ -1843,15 +1900,16 @@ declare namespace components {
|
|
|
1843
1900
|
_default$a as VideoPlayerV1,
|
|
1844
1901
|
_default$9 as VideoBox,
|
|
1845
1902
|
_default$8 as VideoBoxV2,
|
|
1846
|
-
_default$
|
|
1847
|
-
_default$
|
|
1903
|
+
_default$e as PollingPlay,
|
|
1904
|
+
_default$d as AlarmVideo,
|
|
1905
|
+
_default$c as CloudVideo,
|
|
1848
1906
|
_default$6 as IconSelect,
|
|
1849
1907
|
_default$4 as PeopleSelect,
|
|
1850
1908
|
_default$2 as FontSelect,
|
|
1851
|
-
_default$
|
|
1852
|
-
_default$
|
|
1853
|
-
_default$
|
|
1854
|
-
_default$
|
|
1909
|
+
_default$l as Demo,
|
|
1910
|
+
_default$k as IconFont,
|
|
1911
|
+
_default$i as Login,
|
|
1912
|
+
_default$f as ChangeThemeSelect,
|
|
1855
1913
|
components_ImportModal as ImportModal,
|
|
1856
1914
|
_default$3 as ParamManager,
|
|
1857
1915
|
components_ParamManagerV2 as ParamManagerV2,
|
package/dist/index.js
CHANGED
|
@@ -9,10 +9,11 @@ import dayjs from 'dayjs';
|
|
|
9
9
|
import { useRouter, useRoute } from 'vue-router';
|
|
10
10
|
import { createFromIconfontCN, SearchOutlined, DownOutlined, PoweroffOutlined, MenuUnfoldOutlined, MenuFoldOutlined, SkinFilled, FullscreenOutlined, CaretUpOutlined, CaretRightOutlined, CaretDownOutlined, FileExcelTwoTone, InboxOutlined, MessageOutlined } from '@ant-design/icons-vue';
|
|
11
11
|
import { loadMicroApp } from 'qiankun';
|
|
12
|
+
import EZUIKit from 'ezuikit-js';
|
|
12
13
|
import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
13
14
|
import '@sszj-temp/mobile/style.css';
|
|
14
15
|
|
|
15
|
-
var version = "0.1.
|
|
16
|
+
var version = "0.1.22";
|
|
16
17
|
|
|
17
18
|
const setTheme = theme => {
|
|
18
19
|
if (theme === "dark") {
|
|
@@ -5437,7 +5438,7 @@ class WebRtcMt$1 {
|
|
|
5437
5438
|
}
|
|
5438
5439
|
}
|
|
5439
5440
|
}
|
|
5440
|
-
retryTime;
|
|
5441
|
+
// protected retryTime;
|
|
5441
5442
|
// 拉流创建播放器
|
|
5442
5443
|
createVideo(plays) {
|
|
5443
5444
|
this.mediaServerAddrMap.set(plays.videoElm, plays);
|
|
@@ -5448,7 +5449,6 @@ class WebRtcMt$1 {
|
|
|
5448
5449
|
fetch(addRtspProxyUrl, {
|
|
5449
5450
|
method: "GET"
|
|
5450
5451
|
}).then(response => {
|
|
5451
|
-
this.retryTime = 0;
|
|
5452
5452
|
response.json().then(res => {
|
|
5453
5453
|
if (res.code === 0) {
|
|
5454
5454
|
this.startPlay(plays);
|
|
@@ -5460,12 +5460,9 @@ class WebRtcMt$1 {
|
|
|
5460
5460
|
}
|
|
5461
5461
|
});
|
|
5462
5462
|
}).catch(err => {
|
|
5463
|
-
|
|
5464
|
-
this.
|
|
5465
|
-
|
|
5466
|
-
this.rePlay();
|
|
5467
|
-
}, 60 * 1e3);
|
|
5468
|
-
}
|
|
5463
|
+
setTimeout(() => {
|
|
5464
|
+
this.rePlay();
|
|
5465
|
+
}, 3 * 60 * 1e3);
|
|
5469
5466
|
});
|
|
5470
5467
|
});
|
|
5471
5468
|
}
|
|
@@ -5524,7 +5521,7 @@ class WebRtcMt$1 {
|
|
|
5524
5521
|
this.stopPlay();
|
|
5525
5522
|
setTimeout(() => {
|
|
5526
5523
|
this.init(this.opt);
|
|
5527
|
-
}, 1e3);
|
|
5524
|
+
}, 5 * 1e3);
|
|
5528
5525
|
}
|
|
5529
5526
|
// 播放
|
|
5530
5527
|
play(videoElm) {
|
|
@@ -8571,9 +8568,9 @@ const VideoPlayerV2 = defineComponent({
|
|
|
8571
8568
|
});
|
|
8572
8569
|
onBeforeUnmount(() => {
|
|
8573
8570
|
stopPlay();
|
|
8574
|
-
|
|
8575
|
-
const videoElement = document.getElementById(uuid);
|
|
8571
|
+
const videoElement = document.getElementById(`videoPlayer_${uuid}`);
|
|
8576
8572
|
if (videoElement) {
|
|
8573
|
+
videoElement.pause();
|
|
8577
8574
|
videoElement.src = null;
|
|
8578
8575
|
videoElement.srcObject = null;
|
|
8579
8576
|
videoElement.remove();
|
|
@@ -9016,23 +9013,12 @@ const VideoBoxV2 = defineComponent({
|
|
|
9016
9013
|
camera.value = res.data.data;
|
|
9017
9014
|
streams.value = JSON.parse(camera.value.brandTypePo?.streamTypeDict || "[]");
|
|
9018
9015
|
};
|
|
9019
|
-
let interval;
|
|
9020
9016
|
let timeout;
|
|
9021
9017
|
let show = ref(true);
|
|
9022
|
-
|
|
9023
|
-
show.value = false;
|
|
9024
|
-
setTimeout(() => {
|
|
9025
|
-
show.value = true;
|
|
9026
|
-
}, 500);
|
|
9027
|
-
}, _prop.intervalTime * (0.5 + Math.random()));
|
|
9028
|
-
onBeforeUnmount(() => {
|
|
9029
|
-
clearInterval(interval);
|
|
9030
|
-
clearInterval(timer);
|
|
9031
|
-
});
|
|
9018
|
+
onBeforeUnmount(() => {});
|
|
9032
9019
|
const fill = ref("fill");
|
|
9033
9020
|
watch(() => _prop.camera, val => {
|
|
9034
9021
|
if (val && Object.keys(val).length != 0) {
|
|
9035
|
-
clearInterval(interval);
|
|
9036
9022
|
getVideoParams(val);
|
|
9037
9023
|
getVideoDetail(val);
|
|
9038
9024
|
const fillVal = localStorage.getItem(val);
|
|
@@ -9638,6 +9624,79 @@ const AlarmVideo = defineComponent({
|
|
|
9638
9624
|
});
|
|
9639
9625
|
var alarmVideo = installComponent(AlarmVideo, "alarm-video");
|
|
9640
9626
|
|
|
9627
|
+
const CloudVideo = defineComponent({
|
|
9628
|
+
props: {
|
|
9629
|
+
// 视频信息|视频源uuid
|
|
9630
|
+
cameraId: {
|
|
9631
|
+
require: true,
|
|
9632
|
+
type: String
|
|
9633
|
+
},
|
|
9634
|
+
channelNo: {
|
|
9635
|
+
type: Number,
|
|
9636
|
+
default: 1
|
|
9637
|
+
},
|
|
9638
|
+
token: {
|
|
9639
|
+
type: String,
|
|
9640
|
+
default: ""
|
|
9641
|
+
},
|
|
9642
|
+
template: {
|
|
9643
|
+
type: String,
|
|
9644
|
+
default: ""
|
|
9645
|
+
},
|
|
9646
|
+
height: {
|
|
9647
|
+
type: Number,
|
|
9648
|
+
default: ""
|
|
9649
|
+
},
|
|
9650
|
+
width: {
|
|
9651
|
+
type: Number,
|
|
9652
|
+
default: ""
|
|
9653
|
+
}
|
|
9654
|
+
},
|
|
9655
|
+
emits: [],
|
|
9656
|
+
setup(prop, _context) {
|
|
9657
|
+
const uuid = ref(UUID());
|
|
9658
|
+
let player;
|
|
9659
|
+
const initVideo = async () => {
|
|
9660
|
+
const res = await axios.post("https://open.ys7.com/api/lapp/v2/live/address/get", void 0, {
|
|
9661
|
+
params: {
|
|
9662
|
+
accessToken: prop.token,
|
|
9663
|
+
deviceSerial: prop.cameraId,
|
|
9664
|
+
channelNo: prop.channelNo || 1
|
|
9665
|
+
}
|
|
9666
|
+
});
|
|
9667
|
+
const opt = {
|
|
9668
|
+
id: `cloudVideo_${uuid.value}`,
|
|
9669
|
+
url: res.data.data.url,
|
|
9670
|
+
accessToken: prop.token,
|
|
9671
|
+
template: "6298aca808d643fb99f481f2db5bf6a2",
|
|
9672
|
+
height: 300
|
|
9673
|
+
};
|
|
9674
|
+
if (prop.template) {
|
|
9675
|
+
opt.template = prop.template;
|
|
9676
|
+
}
|
|
9677
|
+
if (prop.width) {
|
|
9678
|
+
opt.width = prop.width;
|
|
9679
|
+
}
|
|
9680
|
+
if (prop.template) {
|
|
9681
|
+
opt.height = prop.height;
|
|
9682
|
+
}
|
|
9683
|
+
player = new EZUIKit.EZUIKitPlayer(opt);
|
|
9684
|
+
};
|
|
9685
|
+
onMounted(() => {
|
|
9686
|
+
initVideo();
|
|
9687
|
+
});
|
|
9688
|
+
onBeforeUnmount(() => {
|
|
9689
|
+
player?.stop();
|
|
9690
|
+
});
|
|
9691
|
+
return () => createVNode("div", {
|
|
9692
|
+
"class": "cloudVideo"
|
|
9693
|
+
}, [createVNode("div", {
|
|
9694
|
+
"id": `cloudVideo_${uuid.value}`
|
|
9695
|
+
}, null)]);
|
|
9696
|
+
}
|
|
9697
|
+
});
|
|
9698
|
+
var cloudVideo = installComponent(CloudVideo, "cloud-video");
|
|
9699
|
+
|
|
9641
9700
|
const appName = "live";
|
|
9642
9701
|
class WebRtcMt {
|
|
9643
9702
|
constructor(opt) {
|
|
@@ -12232,6 +12291,7 @@ var components = /*#__PURE__*/Object.freeze({
|
|
|
12232
12291
|
VideoBoxV2: VideoBoxV2$1,
|
|
12233
12292
|
PollingPlay: pollingPlay,
|
|
12234
12293
|
AlarmVideo: alarmVideo,
|
|
12294
|
+
CloudVideo: cloudVideo,
|
|
12235
12295
|
IconSelect: icons,
|
|
12236
12296
|
PeopleSelect: index$4,
|
|
12237
12297
|
FontSelect: index$2,
|