inl-ui 0.1.151 → 0.1.152
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 +24 -4
- package/dist/components/index.js +24 -4
- package/dist/index.cjs +25 -5
- package/dist/index.d.ts +1 -1
- package/dist/index.js +25 -5
- package/dist/video/index.cjs +24 -4
- package/dist/video/index.js +24 -4
- package/package.json +1 -1
|
@@ -17145,12 +17145,22 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17145
17145
|
const isPlaying = vue.ref(false);
|
|
17146
17146
|
const currentPlayTime = vue.ref(0);
|
|
17147
17147
|
const currentPlayPercent = vue.ref(0);
|
|
17148
|
+
const videoInfo = vue.ref({});
|
|
17148
17149
|
const startTime = vue.ref(props.start);
|
|
17149
17150
|
const init = async () => {
|
|
17150
17151
|
isLoading.value = true;
|
|
17151
17152
|
isError.value = false;
|
|
17152
17153
|
console.log("init video");
|
|
17153
17154
|
stopStream();
|
|
17155
|
+
const detailRes = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${props.cameraId}`, {
|
|
17156
|
+
headers: {
|
|
17157
|
+
token: sessionStorage.getItem("token") || ""
|
|
17158
|
+
}
|
|
17159
|
+
});
|
|
17160
|
+
const {
|
|
17161
|
+
data
|
|
17162
|
+
} = detailRes;
|
|
17163
|
+
videoInfo.value = data.data;
|
|
17154
17164
|
const params = {
|
|
17155
17165
|
buzKey: "playback_" + props.cameraId,
|
|
17156
17166
|
cUuid: props.cameraId,
|
|
@@ -17163,14 +17173,14 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17163
17173
|
token: sessionStorage.getItem("token") || ""
|
|
17164
17174
|
}
|
|
17165
17175
|
}).then(async ({
|
|
17166
|
-
data
|
|
17176
|
+
data: data2
|
|
17167
17177
|
}) => {
|
|
17168
17178
|
const {
|
|
17169
17179
|
addStreamUrl,
|
|
17170
17180
|
stream,
|
|
17171
17181
|
mediaServerUrl,
|
|
17172
17182
|
secret
|
|
17173
|
-
} =
|
|
17183
|
+
} = data2.data;
|
|
17174
17184
|
const playUrl = mediaServerUrl + "/index/api/webrtc?app=live&stream=" + stream + "&type=play";
|
|
17175
17185
|
const plays = {
|
|
17176
17186
|
videoElm: dom.value,
|
|
@@ -17279,7 +17289,17 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17279
17289
|
return () => vue.createVNode("div", {
|
|
17280
17290
|
"ref": cpnRef,
|
|
17281
17291
|
"class": "video-play-back-cpn"
|
|
17282
|
-
}, [
|
|
17292
|
+
}, [videoInfo.value.brandTypeCode === "MP4" && vue.createVNode("video", {
|
|
17293
|
+
"ref": videoRef,
|
|
17294
|
+
"id": dom.value,
|
|
17295
|
+
"class": "videoComponent fill",
|
|
17296
|
+
"src": videoInfo.value.mp4ResourcesPath,
|
|
17297
|
+
"webkit-playsinline": "false",
|
|
17298
|
+
"playsinline": "false",
|
|
17299
|
+
"autoplay": true,
|
|
17300
|
+
"loop": true,
|
|
17301
|
+
"muted": true
|
|
17302
|
+
}, null), videoInfo.value.brandTypeCode !== "MP4" && vue.createVNode(vue.Fragment, null, [isError.value ? vue.createVNode("div", {
|
|
17283
17303
|
"style": {
|
|
17284
17304
|
width: "100%",
|
|
17285
17305
|
textAlign: "center"
|
|
@@ -17323,7 +17343,7 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
17323
17343
|
}, [formatTime(fullDuration.value)])]), vue.createVNode("span", {
|
|
17324
17344
|
"class": "btn-fullscreen",
|
|
17325
17345
|
"onClick": toggleFullscreen
|
|
17326
|
-
}, [isFullscreen.value ? vue.createVNode(iconsVue.FullscreenExitOutlined, null, null) : vue.createVNode(iconsVue.FullscreenOutlined, null, null)])])])]);
|
|
17346
|
+
}, [isFullscreen.value ? vue.createVNode(iconsVue.FullscreenExitOutlined, null, null) : vue.createVNode(iconsVue.FullscreenOutlined, null, null)])])])])]);
|
|
17327
17347
|
}
|
|
17328
17348
|
});
|
|
17329
17349
|
|
package/dist/components/index.js
CHANGED
|
@@ -17116,12 +17116,22 @@ const VideoPlayBack = defineComponent({
|
|
|
17116
17116
|
const isPlaying = ref(false);
|
|
17117
17117
|
const currentPlayTime = ref(0);
|
|
17118
17118
|
const currentPlayPercent = ref(0);
|
|
17119
|
+
const videoInfo = ref({});
|
|
17119
17120
|
const startTime = ref(props.start);
|
|
17120
17121
|
const init = async () => {
|
|
17121
17122
|
isLoading.value = true;
|
|
17122
17123
|
isError.value = false;
|
|
17123
17124
|
console.log("init video");
|
|
17124
17125
|
stopStream();
|
|
17126
|
+
const detailRes = await axios$3.get(`/api/vms/v1/camera/getByUuid?uuid=${props.cameraId}`, {
|
|
17127
|
+
headers: {
|
|
17128
|
+
token: sessionStorage.getItem("token") || ""
|
|
17129
|
+
}
|
|
17130
|
+
});
|
|
17131
|
+
const {
|
|
17132
|
+
data
|
|
17133
|
+
} = detailRes;
|
|
17134
|
+
videoInfo.value = data.data;
|
|
17125
17135
|
const params = {
|
|
17126
17136
|
buzKey: "playback_" + props.cameraId,
|
|
17127
17137
|
cUuid: props.cameraId,
|
|
@@ -17134,14 +17144,14 @@ const VideoPlayBack = defineComponent({
|
|
|
17134
17144
|
token: sessionStorage.getItem("token") || ""
|
|
17135
17145
|
}
|
|
17136
17146
|
}).then(async ({
|
|
17137
|
-
data
|
|
17147
|
+
data: data2
|
|
17138
17148
|
}) => {
|
|
17139
17149
|
const {
|
|
17140
17150
|
addStreamUrl,
|
|
17141
17151
|
stream,
|
|
17142
17152
|
mediaServerUrl,
|
|
17143
17153
|
secret
|
|
17144
|
-
} =
|
|
17154
|
+
} = data2.data;
|
|
17145
17155
|
const playUrl = mediaServerUrl + "/index/api/webrtc?app=live&stream=" + stream + "&type=play";
|
|
17146
17156
|
const plays = {
|
|
17147
17157
|
videoElm: dom.value,
|
|
@@ -17250,7 +17260,17 @@ const VideoPlayBack = defineComponent({
|
|
|
17250
17260
|
return () => createVNode("div", {
|
|
17251
17261
|
"ref": cpnRef,
|
|
17252
17262
|
"class": "video-play-back-cpn"
|
|
17253
|
-
}, [
|
|
17263
|
+
}, [videoInfo.value.brandTypeCode === "MP4" && createVNode("video", {
|
|
17264
|
+
"ref": videoRef,
|
|
17265
|
+
"id": dom.value,
|
|
17266
|
+
"class": "videoComponent fill",
|
|
17267
|
+
"src": videoInfo.value.mp4ResourcesPath,
|
|
17268
|
+
"webkit-playsinline": "false",
|
|
17269
|
+
"playsinline": "false",
|
|
17270
|
+
"autoplay": true,
|
|
17271
|
+
"loop": true,
|
|
17272
|
+
"muted": true
|
|
17273
|
+
}, null), videoInfo.value.brandTypeCode !== "MP4" && createVNode(Fragment, null, [isError.value ? createVNode("div", {
|
|
17254
17274
|
"style": {
|
|
17255
17275
|
width: "100%",
|
|
17256
17276
|
textAlign: "center"
|
|
@@ -17294,7 +17314,7 @@ const VideoPlayBack = defineComponent({
|
|
|
17294
17314
|
}, [formatTime(fullDuration.value)])]), createVNode("span", {
|
|
17295
17315
|
"class": "btn-fullscreen",
|
|
17296
17316
|
"onClick": toggleFullscreen
|
|
17297
|
-
}, [isFullscreen.value ? createVNode(FullscreenExitOutlined, null, null) : createVNode(FullscreenOutlined, null, null)])])])]);
|
|
17317
|
+
}, [isFullscreen.value ? createVNode(FullscreenExitOutlined, null, null) : createVNode(FullscreenOutlined, null, null)])])])])]);
|
|
17298
17318
|
}
|
|
17299
17319
|
});
|
|
17300
17320
|
|
package/dist/index.cjs
CHANGED
|
@@ -45,7 +45,7 @@ var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
|
45
45
|
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
46
46
|
var mqtt__default = /*#__PURE__*/_interopDefaultLegacy(mqtt);
|
|
47
47
|
|
|
48
|
-
var version = "0.1.
|
|
48
|
+
var version = "0.1.151";
|
|
49
49
|
|
|
50
50
|
const setTheme = theme => {
|
|
51
51
|
if (theme === "dark") {
|
|
@@ -18131,12 +18131,22 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18131
18131
|
const isPlaying = vue.ref(false);
|
|
18132
18132
|
const currentPlayTime = vue.ref(0);
|
|
18133
18133
|
const currentPlayPercent = vue.ref(0);
|
|
18134
|
+
const videoInfo = vue.ref({});
|
|
18134
18135
|
const startTime = vue.ref(props.start);
|
|
18135
18136
|
const init = async () => {
|
|
18136
18137
|
isLoading.value = true;
|
|
18137
18138
|
isError.value = false;
|
|
18138
18139
|
console.log("init video");
|
|
18139
18140
|
stopStream();
|
|
18141
|
+
const detailRes = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${props.cameraId}`, {
|
|
18142
|
+
headers: {
|
|
18143
|
+
token: sessionStorage.getItem("token") || ""
|
|
18144
|
+
}
|
|
18145
|
+
});
|
|
18146
|
+
const {
|
|
18147
|
+
data
|
|
18148
|
+
} = detailRes;
|
|
18149
|
+
videoInfo.value = data.data;
|
|
18140
18150
|
const params = {
|
|
18141
18151
|
buzKey: "playback_" + props.cameraId,
|
|
18142
18152
|
cUuid: props.cameraId,
|
|
@@ -18149,14 +18159,14 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18149
18159
|
token: sessionStorage.getItem("token") || ""
|
|
18150
18160
|
}
|
|
18151
18161
|
}).then(async ({
|
|
18152
|
-
data
|
|
18162
|
+
data: data2
|
|
18153
18163
|
}) => {
|
|
18154
18164
|
const {
|
|
18155
18165
|
addStreamUrl,
|
|
18156
18166
|
stream,
|
|
18157
18167
|
mediaServerUrl,
|
|
18158
18168
|
secret
|
|
18159
|
-
} =
|
|
18169
|
+
} = data2.data;
|
|
18160
18170
|
const playUrl = mediaServerUrl + "/index/api/webrtc?app=live&stream=" + stream + "&type=play";
|
|
18161
18171
|
const plays = {
|
|
18162
18172
|
videoElm: dom.value,
|
|
@@ -18265,7 +18275,17 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18265
18275
|
return () => vue.createVNode("div", {
|
|
18266
18276
|
"ref": cpnRef,
|
|
18267
18277
|
"class": "video-play-back-cpn"
|
|
18268
|
-
}, [
|
|
18278
|
+
}, [videoInfo.value.brandTypeCode === "MP4" && vue.createVNode("video", {
|
|
18279
|
+
"ref": videoRef,
|
|
18280
|
+
"id": dom.value,
|
|
18281
|
+
"class": "videoComponent fill",
|
|
18282
|
+
"src": videoInfo.value.mp4ResourcesPath,
|
|
18283
|
+
"webkit-playsinline": "false",
|
|
18284
|
+
"playsinline": "false",
|
|
18285
|
+
"autoplay": true,
|
|
18286
|
+
"loop": true,
|
|
18287
|
+
"muted": true
|
|
18288
|
+
}, null), videoInfo.value.brandTypeCode !== "MP4" && vue.createVNode(vue.Fragment, null, [isError.value ? vue.createVNode("div", {
|
|
18269
18289
|
"style": {
|
|
18270
18290
|
width: "100%",
|
|
18271
18291
|
textAlign: "center"
|
|
@@ -18309,7 +18329,7 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
18309
18329
|
}, [formatTime(fullDuration.value)])]), vue.createVNode("span", {
|
|
18310
18330
|
"class": "btn-fullscreen",
|
|
18311
18331
|
"onClick": toggleFullscreen
|
|
18312
|
-
}, [isFullscreen.value ? vue.createVNode(iconsVue.FullscreenExitOutlined, null, null) : vue.createVNode(iconsVue.FullscreenOutlined, null, null)])])])]);
|
|
18332
|
+
}, [isFullscreen.value ? vue.createVNode(iconsVue.FullscreenExitOutlined, null, null) : vue.createVNode(iconsVue.FullscreenOutlined, null, null)])])])])]);
|
|
18313
18333
|
}
|
|
18314
18334
|
});
|
|
18315
18335
|
|
package/dist/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ 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.151";
|
|
15
15
|
|
|
16
16
|
declare const _default$p: {
|
|
17
17
|
set(theme: string): void;
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import { XPopup, CommentBlock, setAxiosOption } from '@sszj-temp/mobile';
|
|
|
14
14
|
import { marked } from 'marked';
|
|
15
15
|
import '@sszj-temp/mobile/style.css';
|
|
16
16
|
|
|
17
|
-
var version = "0.1.
|
|
17
|
+
var version = "0.1.151";
|
|
18
18
|
|
|
19
19
|
const setTheme = theme => {
|
|
20
20
|
if (theme === "dark") {
|
|
@@ -18100,12 +18100,22 @@ const VideoPlayBack = defineComponent({
|
|
|
18100
18100
|
const isPlaying = ref(false);
|
|
18101
18101
|
const currentPlayTime = ref(0);
|
|
18102
18102
|
const currentPlayPercent = ref(0);
|
|
18103
|
+
const videoInfo = ref({});
|
|
18103
18104
|
const startTime = ref(props.start);
|
|
18104
18105
|
const init = async () => {
|
|
18105
18106
|
isLoading.value = true;
|
|
18106
18107
|
isError.value = false;
|
|
18107
18108
|
console.log("init video");
|
|
18108
18109
|
stopStream();
|
|
18110
|
+
const detailRes = await axios$3.get(`/api/vms/v1/camera/getByUuid?uuid=${props.cameraId}`, {
|
|
18111
|
+
headers: {
|
|
18112
|
+
token: sessionStorage.getItem("token") || ""
|
|
18113
|
+
}
|
|
18114
|
+
});
|
|
18115
|
+
const {
|
|
18116
|
+
data
|
|
18117
|
+
} = detailRes;
|
|
18118
|
+
videoInfo.value = data.data;
|
|
18109
18119
|
const params = {
|
|
18110
18120
|
buzKey: "playback_" + props.cameraId,
|
|
18111
18121
|
cUuid: props.cameraId,
|
|
@@ -18118,14 +18128,14 @@ const VideoPlayBack = defineComponent({
|
|
|
18118
18128
|
token: sessionStorage.getItem("token") || ""
|
|
18119
18129
|
}
|
|
18120
18130
|
}).then(async ({
|
|
18121
|
-
data
|
|
18131
|
+
data: data2
|
|
18122
18132
|
}) => {
|
|
18123
18133
|
const {
|
|
18124
18134
|
addStreamUrl,
|
|
18125
18135
|
stream,
|
|
18126
18136
|
mediaServerUrl,
|
|
18127
18137
|
secret
|
|
18128
|
-
} =
|
|
18138
|
+
} = data2.data;
|
|
18129
18139
|
const playUrl = mediaServerUrl + "/index/api/webrtc?app=live&stream=" + stream + "&type=play";
|
|
18130
18140
|
const plays = {
|
|
18131
18141
|
videoElm: dom.value,
|
|
@@ -18234,7 +18244,17 @@ const VideoPlayBack = defineComponent({
|
|
|
18234
18244
|
return () => createVNode("div", {
|
|
18235
18245
|
"ref": cpnRef,
|
|
18236
18246
|
"class": "video-play-back-cpn"
|
|
18237
|
-
}, [
|
|
18247
|
+
}, [videoInfo.value.brandTypeCode === "MP4" && createVNode("video", {
|
|
18248
|
+
"ref": videoRef,
|
|
18249
|
+
"id": dom.value,
|
|
18250
|
+
"class": "videoComponent fill",
|
|
18251
|
+
"src": videoInfo.value.mp4ResourcesPath,
|
|
18252
|
+
"webkit-playsinline": "false",
|
|
18253
|
+
"playsinline": "false",
|
|
18254
|
+
"autoplay": true,
|
|
18255
|
+
"loop": true,
|
|
18256
|
+
"muted": true
|
|
18257
|
+
}, null), videoInfo.value.brandTypeCode !== "MP4" && createVNode(Fragment, null, [isError.value ? createVNode("div", {
|
|
18238
18258
|
"style": {
|
|
18239
18259
|
width: "100%",
|
|
18240
18260
|
textAlign: "center"
|
|
@@ -18278,7 +18298,7 @@ const VideoPlayBack = defineComponent({
|
|
|
18278
18298
|
}, [formatTime(fullDuration.value)])]), createVNode("span", {
|
|
18279
18299
|
"class": "btn-fullscreen",
|
|
18280
18300
|
"onClick": toggleFullscreen
|
|
18281
|
-
}, [isFullscreen.value ? createVNode(FullscreenExitOutlined, null, null) : createVNode(FullscreenOutlined, null, null)])])])]);
|
|
18301
|
+
}, [isFullscreen.value ? createVNode(FullscreenExitOutlined, null, null) : createVNode(FullscreenOutlined, null, null)])])])])]);
|
|
18282
18302
|
}
|
|
18283
18303
|
});
|
|
18284
18304
|
|
package/dist/video/index.cjs
CHANGED
|
@@ -14182,12 +14182,22 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14182
14182
|
const isPlaying = vue.ref(false);
|
|
14183
14183
|
const currentPlayTime = vue.ref(0);
|
|
14184
14184
|
const currentPlayPercent = vue.ref(0);
|
|
14185
|
+
const videoInfo = vue.ref({});
|
|
14185
14186
|
const startTime = vue.ref(props.start);
|
|
14186
14187
|
const init = async () => {
|
|
14187
14188
|
isLoading.value = true;
|
|
14188
14189
|
isError.value = false;
|
|
14189
14190
|
console.log("init video");
|
|
14190
14191
|
stopStream();
|
|
14192
|
+
const detailRes = await axios__default["default"].get(`/api/vms/v1/camera/getByUuid?uuid=${props.cameraId}`, {
|
|
14193
|
+
headers: {
|
|
14194
|
+
token: sessionStorage.getItem("token") || ""
|
|
14195
|
+
}
|
|
14196
|
+
});
|
|
14197
|
+
const {
|
|
14198
|
+
data
|
|
14199
|
+
} = detailRes;
|
|
14200
|
+
videoInfo.value = data.data;
|
|
14191
14201
|
const params = {
|
|
14192
14202
|
buzKey: "playback_" + props.cameraId,
|
|
14193
14203
|
cUuid: props.cameraId,
|
|
@@ -14200,14 +14210,14 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14200
14210
|
token: sessionStorage.getItem("token") || ""
|
|
14201
14211
|
}
|
|
14202
14212
|
}).then(async ({
|
|
14203
|
-
data
|
|
14213
|
+
data: data2
|
|
14204
14214
|
}) => {
|
|
14205
14215
|
const {
|
|
14206
14216
|
addStreamUrl,
|
|
14207
14217
|
stream,
|
|
14208
14218
|
mediaServerUrl,
|
|
14209
14219
|
secret
|
|
14210
|
-
} =
|
|
14220
|
+
} = data2.data;
|
|
14211
14221
|
const playUrl = mediaServerUrl + "/index/api/webrtc?app=live&stream=" + stream + "&type=play";
|
|
14212
14222
|
const plays = {
|
|
14213
14223
|
videoElm: dom.value,
|
|
@@ -14316,7 +14326,17 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14316
14326
|
return () => vue.createVNode("div", {
|
|
14317
14327
|
"ref": cpnRef,
|
|
14318
14328
|
"class": "video-play-back-cpn"
|
|
14319
|
-
}, [
|
|
14329
|
+
}, [videoInfo.value.brandTypeCode === "MP4" && vue.createVNode("video", {
|
|
14330
|
+
"ref": videoRef,
|
|
14331
|
+
"id": dom.value,
|
|
14332
|
+
"class": "videoComponent fill",
|
|
14333
|
+
"src": videoInfo.value.mp4ResourcesPath,
|
|
14334
|
+
"webkit-playsinline": "false",
|
|
14335
|
+
"playsinline": "false",
|
|
14336
|
+
"autoplay": true,
|
|
14337
|
+
"loop": true,
|
|
14338
|
+
"muted": true
|
|
14339
|
+
}, null), videoInfo.value.brandTypeCode !== "MP4" && vue.createVNode(vue.Fragment, null, [isError.value ? vue.createVNode("div", {
|
|
14320
14340
|
"style": {
|
|
14321
14341
|
width: "100%",
|
|
14322
14342
|
textAlign: "center"
|
|
@@ -14360,7 +14380,7 @@ const VideoPlayBack = vue.defineComponent({
|
|
|
14360
14380
|
}, [formatTime(fullDuration.value)])]), vue.createVNode("span", {
|
|
14361
14381
|
"class": "btn-fullscreen",
|
|
14362
14382
|
"onClick": toggleFullscreen
|
|
14363
|
-
}, [isFullscreen.value ? vue.createVNode(iconsVue.FullscreenExitOutlined, null, null) : vue.createVNode(iconsVue.FullscreenOutlined, null, null)])])])]);
|
|
14383
|
+
}, [isFullscreen.value ? vue.createVNode(iconsVue.FullscreenExitOutlined, null, null) : vue.createVNode(iconsVue.FullscreenOutlined, null, null)])])])])]);
|
|
14364
14384
|
}
|
|
14365
14385
|
});
|
|
14366
14386
|
|
package/dist/video/index.js
CHANGED
|
@@ -14154,12 +14154,22 @@ const VideoPlayBack = defineComponent({
|
|
|
14154
14154
|
const isPlaying = ref(false);
|
|
14155
14155
|
const currentPlayTime = ref(0);
|
|
14156
14156
|
const currentPlayPercent = ref(0);
|
|
14157
|
+
const videoInfo = ref({});
|
|
14157
14158
|
const startTime = ref(props.start);
|
|
14158
14159
|
const init = async () => {
|
|
14159
14160
|
isLoading.value = true;
|
|
14160
14161
|
isError.value = false;
|
|
14161
14162
|
console.log("init video");
|
|
14162
14163
|
stopStream();
|
|
14164
|
+
const detailRes = await axios$3.get(`/api/vms/v1/camera/getByUuid?uuid=${props.cameraId}`, {
|
|
14165
|
+
headers: {
|
|
14166
|
+
token: sessionStorage.getItem("token") || ""
|
|
14167
|
+
}
|
|
14168
|
+
});
|
|
14169
|
+
const {
|
|
14170
|
+
data
|
|
14171
|
+
} = detailRes;
|
|
14172
|
+
videoInfo.value = data.data;
|
|
14163
14173
|
const params = {
|
|
14164
14174
|
buzKey: "playback_" + props.cameraId,
|
|
14165
14175
|
cUuid: props.cameraId,
|
|
@@ -14172,14 +14182,14 @@ const VideoPlayBack = defineComponent({
|
|
|
14172
14182
|
token: sessionStorage.getItem("token") || ""
|
|
14173
14183
|
}
|
|
14174
14184
|
}).then(async ({
|
|
14175
|
-
data
|
|
14185
|
+
data: data2
|
|
14176
14186
|
}) => {
|
|
14177
14187
|
const {
|
|
14178
14188
|
addStreamUrl,
|
|
14179
14189
|
stream,
|
|
14180
14190
|
mediaServerUrl,
|
|
14181
14191
|
secret
|
|
14182
|
-
} =
|
|
14192
|
+
} = data2.data;
|
|
14183
14193
|
const playUrl = mediaServerUrl + "/index/api/webrtc?app=live&stream=" + stream + "&type=play";
|
|
14184
14194
|
const plays = {
|
|
14185
14195
|
videoElm: dom.value,
|
|
@@ -14288,7 +14298,17 @@ const VideoPlayBack = defineComponent({
|
|
|
14288
14298
|
return () => createVNode("div", {
|
|
14289
14299
|
"ref": cpnRef,
|
|
14290
14300
|
"class": "video-play-back-cpn"
|
|
14291
|
-
}, [
|
|
14301
|
+
}, [videoInfo.value.brandTypeCode === "MP4" && createVNode("video", {
|
|
14302
|
+
"ref": videoRef,
|
|
14303
|
+
"id": dom.value,
|
|
14304
|
+
"class": "videoComponent fill",
|
|
14305
|
+
"src": videoInfo.value.mp4ResourcesPath,
|
|
14306
|
+
"webkit-playsinline": "false",
|
|
14307
|
+
"playsinline": "false",
|
|
14308
|
+
"autoplay": true,
|
|
14309
|
+
"loop": true,
|
|
14310
|
+
"muted": true
|
|
14311
|
+
}, null), videoInfo.value.brandTypeCode !== "MP4" && createVNode(Fragment, null, [isError.value ? createVNode("div", {
|
|
14292
14312
|
"style": {
|
|
14293
14313
|
width: "100%",
|
|
14294
14314
|
textAlign: "center"
|
|
@@ -14332,7 +14352,7 @@ const VideoPlayBack = defineComponent({
|
|
|
14332
14352
|
}, [formatTime(fullDuration.value)])]), createVNode("span", {
|
|
14333
14353
|
"class": "btn-fullscreen",
|
|
14334
14354
|
"onClick": toggleFullscreen
|
|
14335
|
-
}, [isFullscreen.value ? createVNode(FullscreenExitOutlined, null, null) : createVNode(FullscreenOutlined, null, null)])])])]);
|
|
14355
|
+
}, [isFullscreen.value ? createVNode(FullscreenExitOutlined, null, null) : createVNode(FullscreenOutlined, null, null)])])])])]);
|
|
14336
14356
|
}
|
|
14337
14357
|
});
|
|
14338
14358
|
|