xyvcard-live 0.0.29 → 0.0.30
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/{add-W2GK4AFt.mjs → add-C0s1_CWG.mjs} +142 -136
- package/dist/index-3i2y3Khg.mjs +573 -0
- package/dist/{index-C3zeNDwT.mjs → index-B9-DRJhP.mjs} +2592 -2506
- package/dist/{index-DPsepUqx.mjs → index-BnI97NC2.mjs} +1 -1
- package/dist/{index-CJQ1nVj2-CeABbCTr.mjs → index-CJQ1nVj2-BDYpyQNX.mjs} +1 -1
- package/dist/{index-Cn8UDPmW.mjs → index-D3KgvSyG.mjs} +1 -1
- package/dist/{index-DYCldZhq.mjs → index-DAMZ9yv4.mjs} +1 -1
- package/dist/{index-SYN4LRUq.mjs → index-DtouxyMl.mjs} +1 -1
- package/dist/{index-KMVMe9ZJ-Bi-Egta2.mjs → index-KMVMe9ZJ-CQUOHKlp.mjs} +1 -1
- package/dist/{index-ZfxEc127.mjs → index-KYUNCx_x.mjs} +1 -1
- package/dist/{index-Bb5vgL1a.mjs → index-XxgT4vin.mjs} +1 -1
- package/dist/{index-BquFhBAk.mjs → index-nZ6j4lKV.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-BQmqw4LY.mjs → index.vue_vue_type_script_setup_true_lang-CcNDUvmU.mjs} +1 -1
- package/dist/{info-ByXTOGCn-Cozbgavy.mjs → info-ByXTOGCn-enaHO0ZO.mjs} +2 -2
- package/dist/{info-Cufdspkc.mjs → info-CGwpwGPz.mjs} +5 -5
- package/dist/{info-C_OAyZk9-DdKVtHww.mjs → info-C_OAyZk9-C0Hni8R5.mjs} +2 -2
- package/dist/{info-ZydxPcdx-lFJ_eo1v.mjs → info-ZydxPcdx-DLHJ7yla.mjs} +2 -2
- package/dist/{lives-DEBgksRm.mjs → lives-fpmiP4Xh.mjs} +21 -20
- package/dist/{statistics-DnThoKIl.mjs → statistics-CMgNNlYI.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/transcoding-C3WYIv4e.mjs +125 -0
- package/dts/src/api/live/zb-live-video/index.d.ts +1 -0
- package/dts/src/api/live/zb-live-video/types.d.ts +21 -0
- package/dts/src/components/videoList/index copy.vue.d.ts +6 -0
- package/dts/src/components/videoList/index.vue.d.ts +3 -2
- package/dts/src/constant.d.ts +1 -0
- package/dts/src/lang/live/zh-cn.d.ts +4 -0
- package/dts/src/views/live/zb-live-video/lives.vue.d.ts +5 -5
- package/dts/src/views/live/zb-live-videoList/transcoding.vue.d.ts +26 -0
- package/package.json +1 -1
- package/dist/index-ACNeG3vN.mjs +0 -545
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as ye, ref as
|
|
1
|
+
import { defineComponent as ye, ref as Y, reactive as x, watch as Z, computed as Te, onMounted as fe, nextTick as R, resolveComponent as E, createElementBlock as _, openBlock as n, createElementVNode as P, createBlock as c, createCommentVNode as T, createVNode as s, unref as t, withCtx as u, Fragment as H, renderList as F, createTextVNode as U, toDisplayString as D } from "vue";
|
|
2
2
|
import { ElMessage as h } from "element-plus";
|
|
3
3
|
import { routerUtil as ee } from "jmash-core";
|
|
4
4
|
import { useRouter as Ve, useRoute as Ee } from "vue-router";
|
|
5
|
-
import { D as V, C as d, l as
|
|
5
|
+
import { D as V, C as d, l as A, p as J, _ as _e } from "./index-B9-DRJhP.mjs";
|
|
6
6
|
import { useI18n as ge } from "vue-i18n";
|
|
7
|
-
import be from "./lives-
|
|
8
|
-
import { V as he } from "./index-
|
|
9
|
-
import { s as
|
|
10
|
-
const
|
|
7
|
+
import be from "./lives-fpmiP4Xh.mjs";
|
|
8
|
+
import { V as he } from "./index-XxgT4vin.mjs";
|
|
9
|
+
import { s as O, a as k, t as le } from "./timeConvert-DSKES6ZM.mjs";
|
|
10
|
+
const we = { class: "app-container" }, Pe = { class: "search-container" }, Se = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "live-tip-text"
|
|
13
13
|
}, ke = {
|
|
@@ -19,14 +19,14 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
19
19
|
}, Me = {
|
|
20
20
|
key: 0,
|
|
21
21
|
class: "setting-status"
|
|
22
|
-
},
|
|
22
|
+
}, Ye = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "setting-status"
|
|
25
|
-
},
|
|
25
|
+
}, Ue = ["src"], De = ["src"], Le = { class: "files-list" }, $e = { class: "files-list" }, Ne = { class: "files-list" }, qe = { class: "button-container" }, Re = /* @__PURE__ */ ye({
|
|
26
26
|
__name: "add",
|
|
27
27
|
setup(Ce) {
|
|
28
28
|
V.liveTypeEnum.useEnumValues(), V.showModeEnum.useEnumValues(), V.replayModeEnum.useEnumValues();
|
|
29
|
-
const { t: f } = ge(),
|
|
29
|
+
const { t: f } = ge(), z = Ve(), L = Ee(), $ = Y();
|
|
30
30
|
let e = x({
|
|
31
31
|
requestId: Math.random() * 10 + "",
|
|
32
32
|
updateMask: "",
|
|
@@ -54,36 +54,36 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
54
54
|
let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds";
|
|
55
55
|
return a === d.REPLAY_MODE.end && (l += ",replayEndTime"), e.liveType !== d.LIVE_TYPE.live && (l += ",endTime"), e.liveType === d.LIVE_TYPE.live && (l += ",streamType"), l;
|
|
56
56
|
};
|
|
57
|
-
e.updateMask = "",
|
|
57
|
+
e.updateMask = "", Z(
|
|
58
58
|
() => [e.replayMode, e.liveType],
|
|
59
59
|
() => {
|
|
60
60
|
e.updateMask = ae(e.replayMode);
|
|
61
61
|
},
|
|
62
62
|
{ immediate: !0 }
|
|
63
63
|
);
|
|
64
|
-
const p =
|
|
64
|
+
const p = Y(null), g = Y(null), W = Te(() => L.query.copy === "true");
|
|
65
65
|
fe(async () => {
|
|
66
66
|
await te(), !e.liveType && V.liveTypeEnum.values.length && (e.liveType = V.liveTypeEnum.values[0].key), !e.replayMode && V.replayModeEnum.values.length && (e.replayMode = V.replayModeEnum.values[1].key), !e.showMode && V.showModeEnum.values.length && (e.showMode = V.showModeEnum.values[0].key);
|
|
67
67
|
});
|
|
68
|
-
const I =
|
|
69
|
-
const a =
|
|
68
|
+
const I = Y("00:00:00"), M = Y("00:00:00"), te = async () => {
|
|
69
|
+
const a = L.query.liveId;
|
|
70
70
|
if (a)
|
|
71
71
|
try {
|
|
72
|
-
const l = await
|
|
72
|
+
const l = await A.findById({ liveId: a });
|
|
73
73
|
if (!l.data) {
|
|
74
74
|
h.warning("未获取到直播数据");
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
77
77
|
l.data.liveType === d.LIVE_TYPE.fake_live ? p.value = {
|
|
78
|
-
playUrl:
|
|
78
|
+
playUrl: J(l.data.playUrl),
|
|
79
79
|
totalSeconds: l.data.totalSeconds || 0
|
|
80
|
-
} : l.data.liveType === d.LIVE_TYPE.vod && (
|
|
81
|
-
playUrl:
|
|
82
|
-
}), e.liveType = l.data.liveType || "", e.liveName = l.data.liveName || "", e.streamerName = l.data.streamerName || "", e.showMode = l.data.showMode || "", e.preStreamPic = l.data.preStreamPic || "", e.liveStreamPic = l.data.liveStreamPic || "", e.bgPic = l.data.bgPic || "", e.replayMode = l.data.replayMode || "", e.liveDescprition = l.data.liveDescprition || "", e.playUrl = l.data.playUrl || "", e.virtualNum = l.data.virtualNum || 0, e.streamType = l.data.streamType, e.showJoin = l.data.showJoin, e.roomPwd = l.data.roomPwd, e.fileId = l.data.fileId, e.replayStartTime =
|
|
80
|
+
} : l.data.liveType === d.LIVE_TYPE.vod && (g.value = {
|
|
81
|
+
playUrl: J(l.data.playUrl)
|
|
82
|
+
}), e.liveType = l.data.liveType || "", e.liveName = l.data.liveName || "", e.streamerName = l.data.streamerName || "", e.showMode = l.data.showMode || "", e.preStreamPic = l.data.preStreamPic || "", e.liveStreamPic = l.data.liveStreamPic || "", e.bgPic = l.data.bgPic || "", e.replayMode = l.data.replayMode || "", e.liveDescprition = l.data.liveDescprition || "", e.playUrl = l.data.playUrl || "", e.virtualNum = l.data.virtualNum || 0, e.streamType = l.data.streamType, e.showJoin = l.data.showJoin, e.roomPwd = l.data.roomPwd, e.fileId = l.data.fileId, e.replayStartTime = O(l.data.replayStartTime), e.startTime = O(l.data.startTime), e.endTime = O(l.data.endTime), e.replayEndTime = O(l.data.replayEndTime);
|
|
83
83
|
const r = l.data.totalSeconds || 0;
|
|
84
84
|
e.totalSeconds = r, I.value = k(r);
|
|
85
|
-
const
|
|
86
|
-
M.value = k(
|
|
85
|
+
const m = l.data.completeSeconds || r;
|
|
86
|
+
M.value = k(m), W.value ? (delete e.liveId, e.liveName = `${e.liveName}`, h.info("已加载原直播数据,当前为复制模式")) : e.liveId = l.data.liveId, e.liveType === d.LIVE_TYPE.fake_live && p.value && N();
|
|
87
87
|
} catch (l) {
|
|
88
88
|
console.error("获取直播详情失败:", l), h.error("获取直播详情失败");
|
|
89
89
|
}
|
|
@@ -143,8 +143,8 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
143
143
|
{
|
|
144
144
|
validator: (a, l, r) => {
|
|
145
145
|
if (e.liveType === d.LIVE_TYPE.vod && e.startTime && l) {
|
|
146
|
-
const
|
|
147
|
-
new Date(l).getTime() <=
|
|
146
|
+
const m = new Date(e.startTime).getTime();
|
|
147
|
+
new Date(l).getTime() <= m ? r(new Error("结束时间必须大于开始时间")) : r();
|
|
148
148
|
} else
|
|
149
149
|
r();
|
|
150
150
|
},
|
|
@@ -161,7 +161,7 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
161
161
|
]
|
|
162
162
|
});
|
|
163
163
|
function ie() {
|
|
164
|
-
ee.closeTagView(
|
|
164
|
+
ee.closeTagView(L.fullPath, z, !1);
|
|
165
165
|
}
|
|
166
166
|
function re(a) {
|
|
167
167
|
e.preStreamPic = a;
|
|
@@ -172,147 +172,153 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
172
172
|
function se(a) {
|
|
173
173
|
e.bgPic = a;
|
|
174
174
|
}
|
|
175
|
-
const
|
|
176
|
-
function
|
|
177
|
-
|
|
175
|
+
const C = Y({ visible: !1 }), j = Y(!1);
|
|
176
|
+
function G() {
|
|
177
|
+
C.value.visible = !0;
|
|
178
178
|
}
|
|
179
|
-
const
|
|
180
|
-
|
|
179
|
+
const K = () => {
|
|
180
|
+
j.value = !0;
|
|
181
181
|
}, ue = (a) => {
|
|
182
|
-
var y,
|
|
183
|
-
const l = (y = a == null ? void 0 : a.video) == null ? void 0 : y.url, r = a == null ? void 0 : a.fileId,
|
|
182
|
+
var y, w;
|
|
183
|
+
const l = (y = a == null ? void 0 : a.video) == null ? void 0 : y.url, r = a == null ? void 0 : a.fileId, m = ((w = a == null ? void 0 : a.video) == null ? void 0 : w.duration) || 0;
|
|
184
184
|
if (!l || !r) {
|
|
185
185
|
h.error("视频上传成功,但未获取到有效播放地址/文件ID!");
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
188
|
let i = "";
|
|
189
189
|
try {
|
|
190
|
-
i =
|
|
191
|
-
} catch (
|
|
192
|
-
i = l, console.warn("播放地址处理失败,使用原始地址:",
|
|
190
|
+
i = J(l), i || (i = l);
|
|
191
|
+
} catch (b) {
|
|
192
|
+
i = l, console.warn("播放地址处理失败,使用原始地址:", b);
|
|
193
193
|
}
|
|
194
194
|
const v = {
|
|
195
195
|
playUrl: i,
|
|
196
|
-
totalSeconds:
|
|
196
|
+
totalSeconds: m,
|
|
197
197
|
fileId: r
|
|
198
198
|
};
|
|
199
|
-
e.liveType === d.LIVE_TYPE.fake_live ? p.value = v : e.liveType === d.LIVE_TYPE.vod && (
|
|
200
|
-
|
|
201
|
-
}),
|
|
199
|
+
e.liveType === d.LIVE_TYPE.fake_live ? p.value = v : e.liveType === d.LIVE_TYPE.vod && (g.value = v), e.playUrl = i, e.totalSeconds = m, e.fileId = r, I.value = k(m), M.value = k(m), e.liveType === d.LIVE_TYPE.fake_live && R(() => {
|
|
200
|
+
N();
|
|
201
|
+
}), R(() => {
|
|
202
202
|
h.success("本地视频上传成功!");
|
|
203
203
|
});
|
|
204
204
|
}, ne = (a) => {
|
|
205
|
-
var
|
|
206
|
-
p.value = null,
|
|
207
|
-
const l = (
|
|
205
|
+
var v, y, w;
|
|
206
|
+
console.log(a, "=>data "), p.value = null, g.value = null;
|
|
207
|
+
const l = (v = a.transcodeData) == null ? void 0 : v.url;
|
|
208
208
|
if (!l) {
|
|
209
|
-
h.warning("
|
|
209
|
+
h.warning("选中的转码视频无有效播放地址");
|
|
210
210
|
return;
|
|
211
211
|
}
|
|
212
212
|
let r = "";
|
|
213
213
|
try {
|
|
214
|
-
r =
|
|
215
|
-
} catch (
|
|
216
|
-
r = l, console.warn("播放地址处理失败,使用原始地址:",
|
|
214
|
+
r = J(l), r || (r = l);
|
|
215
|
+
} catch (b) {
|
|
216
|
+
r = l, console.warn("播放地址处理失败,使用原始地址:", b);
|
|
217
217
|
}
|
|
218
|
-
const
|
|
219
|
-
|
|
218
|
+
const m = a.fileId, i = ((y = a.metaData) == null ? void 0 : y.duration) || 0;
|
|
219
|
+
e.liveType === d.LIVE_TYPE.fake_live ? (p.value = {
|
|
220
220
|
playUrl: r,
|
|
221
|
-
totalSeconds:
|
|
222
|
-
fileId:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
}
|
|
221
|
+
totalSeconds: i,
|
|
222
|
+
fileId: m,
|
|
223
|
+
transcodeData: a.transcodeData
|
|
224
|
+
// 可选:保留转码详细信息
|
|
225
|
+
}, e.playUrl = r, e.totalSeconds = i, I.value = k(i), M.value = k(i), R(() => {
|
|
226
|
+
N();
|
|
227
|
+
})) : e.liveType === d.LIVE_TYPE.vod && (g.value = {
|
|
226
228
|
playUrl: r,
|
|
227
|
-
fileId:
|
|
228
|
-
liveName: ((
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
229
|
+
fileId: m,
|
|
230
|
+
liveName: ((w = a.basicInfo) == null ? void 0 : w.name) || "未命名视频",
|
|
231
|
+
transcodeData: a.transcodeData
|
|
232
|
+
// 转码详细信息
|
|
233
|
+
}, e.playUrl = r, e.totalSeconds = i, I.value = k(i), M.value = k(i)), R(() => {
|
|
234
|
+
var b, q;
|
|
235
|
+
(b = $.value) == null || b.validateField(["fakeLiveSetting", "endTime"]), h.success(
|
|
236
|
+
`已选中转码视频:${((q = a.basicInfo) == null ? void 0 : q.name) || "未命名视频"} (${a.transcodeData.width}×${a.transcodeData.height})`
|
|
237
|
+
);
|
|
232
238
|
});
|
|
233
|
-
},
|
|
239
|
+
}, N = () => {
|
|
234
240
|
if (p.value && e.startTime) {
|
|
235
241
|
const a = new Date(e.startTime);
|
|
236
242
|
if (isNaN(a.getTime())) {
|
|
237
243
|
console.error("无效的开始时间:", e.startTime);
|
|
238
244
|
return;
|
|
239
245
|
}
|
|
240
|
-
const l = (p.value.totalSeconds || 0) * 1e3, r = new Date(a.getTime() + l),
|
|
241
|
-
e.endTime = `${
|
|
242
|
-
|
|
246
|
+
const l = (p.value.totalSeconds || 0) * 1e3, r = new Date(a.getTime() + l), m = r.getUTCFullYear(), i = String(r.getUTCMonth() + 1).padStart(2, "0"), v = String(r.getUTCDate()).padStart(2, "0"), y = String(r.getUTCHours()).padStart(2, "0"), w = String(r.getUTCMinutes()).padStart(2, "0"), b = String(r.getUTCSeconds()).padStart(2, "0");
|
|
247
|
+
e.endTime = `${m}-${i}-${v}T${y}:${w}:${b}Z`, R(() => {
|
|
248
|
+
$.value && $.value.validateField("endTime");
|
|
243
249
|
});
|
|
244
250
|
}
|
|
245
251
|
}, me = () => {
|
|
246
|
-
e.playUrl = "", e.liveType === d.LIVE_TYPE.fake_live && p.value ?
|
|
252
|
+
e.playUrl = "", e.liveType === d.LIVE_TYPE.fake_live && p.value ? N() : e.endTime = void 0;
|
|
247
253
|
};
|
|
248
|
-
|
|
254
|
+
Z(
|
|
249
255
|
() => e.startTime,
|
|
250
256
|
(a) => {
|
|
251
|
-
e.liveType === d.LIVE_TYPE.fake_live && p.value && a &&
|
|
257
|
+
e.liveType === d.LIVE_TYPE.fake_live && p.value && a && N();
|
|
252
258
|
}
|
|
253
|
-
),
|
|
259
|
+
), Z(
|
|
254
260
|
() => e.replayMode,
|
|
255
261
|
(a) => {
|
|
256
262
|
a !== d.REPLAY_MODE.end && (e.replayEndTime = void 0);
|
|
257
263
|
}
|
|
258
264
|
);
|
|
259
265
|
const pe = async () => {
|
|
260
|
-
var l, r,
|
|
266
|
+
var l, r, m;
|
|
261
267
|
if (e.liveType === d.LIVE_TYPE.fake_live && !p.value) {
|
|
262
268
|
h.error(f("liveVideo.fakeLiveRequired"));
|
|
263
269
|
return;
|
|
264
270
|
}
|
|
265
|
-
if (e.liveType === d.LIVE_TYPE.vod && !
|
|
271
|
+
if (e.liveType === d.LIVE_TYPE.vod && !g.value) {
|
|
266
272
|
h.error(f("liveVideo.vodRequired"));
|
|
267
273
|
return;
|
|
268
274
|
}
|
|
269
|
-
if (await ((l =
|
|
275
|
+
if (await ((l = $.value) == null ? void 0 : l.validate()))
|
|
270
276
|
try {
|
|
271
277
|
let i = { ...e };
|
|
272
|
-
e.liveType === d.LIVE_TYPE.fake_live && ((r = p.value) != null && r.fileId) ? i.fileId = p.value.fileId : e.liveType === d.LIVE_TYPE.vod && ((
|
|
278
|
+
e.liveType === d.LIVE_TYPE.fake_live && ((r = p.value) != null && r.fileId) ? i.fileId = p.value.fileId : e.liveType === d.LIVE_TYPE.vod && ((m = g.value) != null && m.fileId) && (i.fileId = g.value.fileId), i.totalSeconds = le(I.value) || 0, i.completeSeconds = le(M.value) || 0, e.liveType !== d.LIVE_TYPE.live && delete i.streamType;
|
|
273
279
|
let v;
|
|
274
|
-
if (
|
|
280
|
+
if (W.value) {
|
|
275
281
|
const y = { ...i };
|
|
276
|
-
delete y.liveId, v = await
|
|
277
|
-
} else
|
|
278
|
-
v.status === 200 && (h.success(f("common.submitSuccess")), ee.closeTagView(
|
|
282
|
+
delete y.liveId, v = await A.create(y);
|
|
283
|
+
} else L.query.liveId ? v = await A.update(i) : v = await A.create(i);
|
|
284
|
+
v.status === 200 && (h.success(f("common.submitSuccess")), ee.closeTagView(L.fullPath, z, !1));
|
|
279
285
|
} catch (i) {
|
|
280
286
|
h.error(f("common.submitFail") + i.message);
|
|
281
287
|
}
|
|
282
288
|
};
|
|
283
289
|
return (a, l) => {
|
|
284
|
-
const r =
|
|
285
|
-
return
|
|
286
|
-
|
|
290
|
+
const r = E("el-radio"), m = E("el-radio-group"), i = E("el-form-item"), v = E("el-input"), y = E("el-date-picker"), w = E("el-time-picker"), b = E("el-col"), q = E("jmash-dict-select"), B = E("jmash-single-image-upload"), ve = E("jmash-editor"), ce = E("el-form"), Q = E("el-button");
|
|
291
|
+
return n(), _("div", we, [
|
|
292
|
+
P("div", Pe, [
|
|
287
293
|
s(ce, {
|
|
288
294
|
ref_key: "liveFormRef",
|
|
289
|
-
ref:
|
|
295
|
+
ref: $,
|
|
290
296
|
model: t(e),
|
|
291
297
|
rules: oe,
|
|
292
298
|
style: { "max-width": "800px" },
|
|
293
299
|
"label-width": "auto"
|
|
294
300
|
}, {
|
|
295
301
|
default: u(() => {
|
|
296
|
-
var
|
|
302
|
+
var S, X;
|
|
297
303
|
return [
|
|
298
304
|
s(i, {
|
|
299
305
|
label: a.$t("liveVideo.liveType"),
|
|
300
306
|
prop: "liveType"
|
|
301
307
|
}, {
|
|
302
308
|
default: u(() => [
|
|
303
|
-
s(
|
|
309
|
+
s(m, {
|
|
304
310
|
modelValue: t(e).liveType,
|
|
305
311
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => t(e).liveType = o),
|
|
306
312
|
onChange: me
|
|
307
313
|
}, {
|
|
308
314
|
default: u(() => [
|
|
309
|
-
(
|
|
315
|
+
(n(!0), _(H, null, F(t(V).liveTypeEnum.values, (o) => (n(), c(r, {
|
|
310
316
|
key: o.key,
|
|
311
317
|
border: !0,
|
|
312
318
|
value: o.key
|
|
313
319
|
}, {
|
|
314
320
|
default: u(() => [
|
|
315
|
-
|
|
321
|
+
U(D(o.value), 1)
|
|
316
322
|
]),
|
|
317
323
|
_: 2
|
|
318
324
|
}, 1032, ["value"]))), 128))
|
|
@@ -322,59 +328,59 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
322
328
|
]),
|
|
323
329
|
_: 1
|
|
324
330
|
}, 8, ["label"]),
|
|
325
|
-
t(e).liveType === t(d).LIVE_TYPE.live ? (
|
|
326
|
-
t(e).liveType === t(d).LIVE_TYPE.fake_live ? (
|
|
331
|
+
t(e).liveType === t(d).LIVE_TYPE.live ? (n(), _("div", Se, " 实时直播形式,根据实际画面进行传播,无法快进或回放 ")) : T("", !0),
|
|
332
|
+
t(e).liveType === t(d).LIVE_TYPE.fake_live ? (n(), c(i, {
|
|
327
333
|
key: 1,
|
|
328
334
|
label: a.$t("liveVideo.fakeLive")
|
|
329
335
|
}, {
|
|
330
336
|
default: u(() => {
|
|
331
337
|
var o;
|
|
332
338
|
return [
|
|
333
|
-
|
|
339
|
+
P("button", {
|
|
334
340
|
type: "button",
|
|
335
341
|
class: "fakeLive",
|
|
336
|
-
onClick:
|
|
342
|
+
onClick: G
|
|
337
343
|
}, " 伪直播设置 "),
|
|
338
|
-
|
|
344
|
+
P("button", {
|
|
339
345
|
type: "button",
|
|
340
346
|
class: "fakeLive",
|
|
341
|
-
onClick:
|
|
347
|
+
onClick: K
|
|
342
348
|
}, " 从本地上传视频 "),
|
|
343
|
-
(o = p.value) != null && o.playUrl ? (
|
|
349
|
+
(o = p.value) != null && o.playUrl ? (n(), _("div", Ie, "已设置")) : (n(), _("div", ke, " 未设置 "))
|
|
344
350
|
];
|
|
345
351
|
}),
|
|
346
352
|
_: 1
|
|
347
353
|
}, 8, ["label"])) : T("", !0),
|
|
348
|
-
t(e).liveType === t(d).LIVE_TYPE.vod ? (
|
|
354
|
+
t(e).liveType === t(d).LIVE_TYPE.vod ? (n(), c(i, {
|
|
349
355
|
key: 2,
|
|
350
356
|
label: a.$t("liveVideo.vod")
|
|
351
357
|
}, {
|
|
352
358
|
default: u(() => {
|
|
353
359
|
var o;
|
|
354
360
|
return [
|
|
355
|
-
|
|
361
|
+
P("button", {
|
|
356
362
|
type: "button",
|
|
357
363
|
class: "fakeLive",
|
|
358
|
-
onClick:
|
|
364
|
+
onClick: G
|
|
359
365
|
}, " 点播设置 "),
|
|
360
|
-
|
|
366
|
+
P("button", {
|
|
361
367
|
type: "button",
|
|
362
368
|
class: "fakeLive",
|
|
363
|
-
onClick:
|
|
369
|
+
onClick: K
|
|
364
370
|
}, " 从本地上传视频 "),
|
|
365
|
-
(o =
|
|
371
|
+
(o = g.value) != null && o.playUrl ? (n(), _("div", Ye, "已设置")) : (n(), _("div", Me, "未设置"))
|
|
366
372
|
];
|
|
367
373
|
}),
|
|
368
374
|
_: 1
|
|
369
375
|
}, 8, ["label"])) : T("", !0),
|
|
370
|
-
(
|
|
376
|
+
(S = p.value) != null && S.playUrl && t(e).liveType === t(d).LIVE_TYPE.fake_live ? (n(), c(i, {
|
|
371
377
|
key: 3,
|
|
372
378
|
label: "视频预览"
|
|
373
379
|
}, {
|
|
374
380
|
default: u(() => {
|
|
375
381
|
var o;
|
|
376
382
|
return [
|
|
377
|
-
(o = p.value) != null && o.playUrl ? (
|
|
383
|
+
(o = p.value) != null && o.playUrl ? (n(), _("video", {
|
|
378
384
|
key: 0,
|
|
379
385
|
src: p.value.playUrl,
|
|
380
386
|
controls: "",
|
|
@@ -382,27 +388,27 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
382
388
|
height: "250",
|
|
383
389
|
muted: "",
|
|
384
390
|
playsinline: ""
|
|
385
|
-
}, " 您的浏览器不支持视频播放 ", 8,
|
|
391
|
+
}, " 您的浏览器不支持视频播放 ", 8, Ue)) : T("", !0)
|
|
386
392
|
];
|
|
387
393
|
}),
|
|
388
394
|
_: 1
|
|
389
395
|
})) : T("", !0),
|
|
390
|
-
(X =
|
|
396
|
+
(X = g.value) != null && X.playUrl && t(e).liveType === t(d).LIVE_TYPE.vod ? (n(), c(i, {
|
|
391
397
|
key: 4,
|
|
392
398
|
label: "视频预览"
|
|
393
399
|
}, {
|
|
394
400
|
default: u(() => {
|
|
395
401
|
var o;
|
|
396
402
|
return [
|
|
397
|
-
(o =
|
|
403
|
+
(o = g.value) != null && o.playUrl ? (n(), _("video", {
|
|
398
404
|
key: 0,
|
|
399
|
-
src:
|
|
405
|
+
src: g.value.playUrl,
|
|
400
406
|
controls: "",
|
|
401
407
|
width: "400",
|
|
402
408
|
height: "250",
|
|
403
409
|
muted: "",
|
|
404
410
|
playsinline: ""
|
|
405
|
-
}, " 您的浏览器不支持视频播放 ", 8,
|
|
411
|
+
}, " 您的浏览器不支持视频播放 ", 8, De)) : T("", !0)
|
|
406
412
|
];
|
|
407
413
|
}),
|
|
408
414
|
_: 1
|
|
@@ -440,7 +446,7 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
440
446
|
]),
|
|
441
447
|
_: 1
|
|
442
448
|
}, 8, ["label"]),
|
|
443
|
-
t(e).liveType !== t(d).LIVE_TYPE.live ? (
|
|
449
|
+
t(e).liveType !== t(d).LIVE_TYPE.live ? (n(), c(i, {
|
|
444
450
|
key: 5,
|
|
445
451
|
label: a.$t("liveVideo.endTime"),
|
|
446
452
|
prop: "endTime"
|
|
@@ -459,7 +465,7 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
459
465
|
]),
|
|
460
466
|
_: 1
|
|
461
467
|
}, 8, ["label"])) : T("", !0),
|
|
462
|
-
t(e).liveType === t(d).LIVE_TYPE.live ? (
|
|
468
|
+
t(e).liveType === t(d).LIVE_TYPE.live ? (n(), c(b, {
|
|
463
469
|
key: 6,
|
|
464
470
|
span: 24
|
|
465
471
|
}, {
|
|
@@ -469,7 +475,7 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
469
475
|
prop: "totalSeconds"
|
|
470
476
|
}, {
|
|
471
477
|
default: u(() => [
|
|
472
|
-
s(
|
|
478
|
+
s(w, {
|
|
473
479
|
modelValue: I.value,
|
|
474
480
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => I.value = o),
|
|
475
481
|
placeholder: a.$t("liveVideo.totalSecondsRequired"),
|
|
@@ -485,14 +491,14 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
485
491
|
]),
|
|
486
492
|
_: 1
|
|
487
493
|
})) : T("", !0),
|
|
488
|
-
s(
|
|
494
|
+
s(b, { span: 24 }, {
|
|
489
495
|
default: u(() => [
|
|
490
496
|
s(i, {
|
|
491
497
|
label: a.$t("liveVideo.completeSeconds"),
|
|
492
498
|
prop: "completeSeconds"
|
|
493
499
|
}, {
|
|
494
500
|
default: u(() => [
|
|
495
|
-
s(
|
|
501
|
+
s(w, {
|
|
496
502
|
modelValue: M.value,
|
|
497
503
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => M.value = o),
|
|
498
504
|
placeholder: a.$t("liveVideo.completeSecondsRequired"),
|
|
@@ -513,7 +519,7 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
513
519
|
prop: "streamerName"
|
|
514
520
|
}, {
|
|
515
521
|
default: u(() => [
|
|
516
|
-
s(
|
|
522
|
+
s(q, {
|
|
517
523
|
modelValue: t(e).streamerName,
|
|
518
524
|
"onUpdate:modelValue": l[6] || (l[6] = (o) => t(e).streamerName = o),
|
|
519
525
|
"type-code": t(d).ANCHOR_NAME,
|
|
@@ -555,13 +561,13 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
555
561
|
]),
|
|
556
562
|
_: 1
|
|
557
563
|
}, 8, ["label"]),
|
|
558
|
-
t(e).liveType === t(d).LIVE_TYPE.live ? (
|
|
564
|
+
t(e).liveType === t(d).LIVE_TYPE.live ? (n(), c(i, {
|
|
559
565
|
key: 7,
|
|
560
566
|
label: a.$t("liveVideo.pushType"),
|
|
561
567
|
prop: "streamType"
|
|
562
568
|
}, {
|
|
563
569
|
default: u(() => [
|
|
564
|
-
s(
|
|
570
|
+
s(q, {
|
|
565
571
|
modelValue: t(e).streamType,
|
|
566
572
|
"onUpdate:modelValue": l[9] || (l[9] = (o) => t(e).streamType = o),
|
|
567
573
|
placeholder: a.$t("liveVideo.pushTypeRequired"),
|
|
@@ -576,17 +582,17 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
576
582
|
prop: "showMode"
|
|
577
583
|
}, {
|
|
578
584
|
default: u(() => [
|
|
579
|
-
s(
|
|
585
|
+
s(m, {
|
|
580
586
|
modelValue: t(e).showMode,
|
|
581
587
|
"onUpdate:modelValue": l[10] || (l[10] = (o) => t(e).showMode = o)
|
|
582
588
|
}, {
|
|
583
589
|
default: u(() => [
|
|
584
|
-
(
|
|
590
|
+
(n(!0), _(H, null, F(t(V).showModeEnum.values, (o) => (n(), c(r, {
|
|
585
591
|
key: o.key,
|
|
586
592
|
value: o.key
|
|
587
593
|
}, {
|
|
588
594
|
default: u(() => [
|
|
589
|
-
|
|
595
|
+
U(D(o.value), 1)
|
|
590
596
|
]),
|
|
591
597
|
_: 2
|
|
592
598
|
}, 1032, ["value"]))), 128))
|
|
@@ -601,8 +607,8 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
601
607
|
prop: "preStreamPic"
|
|
602
608
|
}, {
|
|
603
609
|
default: u(() => [
|
|
604
|
-
|
|
605
|
-
s(
|
|
610
|
+
P("div", Le, [
|
|
611
|
+
s(B, {
|
|
606
612
|
"picture-url": t(e).preStreamPic,
|
|
607
613
|
onImageSrc: re,
|
|
608
614
|
width: 80,
|
|
@@ -617,8 +623,8 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
617
623
|
prop: "liveStreamPic"
|
|
618
624
|
}, {
|
|
619
625
|
default: u(() => [
|
|
620
|
-
|
|
621
|
-
s(
|
|
626
|
+
P("div", $e, [
|
|
627
|
+
s(B, {
|
|
622
628
|
"picture-url": t(e).liveStreamPic,
|
|
623
629
|
onImageSrc: de,
|
|
624
630
|
width: 80,
|
|
@@ -628,14 +634,14 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
628
634
|
]),
|
|
629
635
|
_: 1
|
|
630
636
|
}, 8, ["label"]),
|
|
631
|
-
t(e).showMode === t(d).SHOW_MODE.vertical ? (
|
|
637
|
+
t(e).showMode === t(d).SHOW_MODE.vertical ? (n(), c(i, {
|
|
632
638
|
key: 8,
|
|
633
639
|
label: a.$t("liveVideo.bgPic"),
|
|
634
640
|
prop: "bgPic"
|
|
635
641
|
}, {
|
|
636
642
|
default: u(() => [
|
|
637
|
-
|
|
638
|
-
s(
|
|
643
|
+
P("div", Ne, [
|
|
644
|
+
s(B, {
|
|
639
645
|
"picture-url": t(e).bgPic,
|
|
640
646
|
onImageSrc: se,
|
|
641
647
|
width: 80,
|
|
@@ -645,24 +651,24 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
645
651
|
]),
|
|
646
652
|
_: 1
|
|
647
653
|
}, 8, ["label"])) : T("", !0),
|
|
648
|
-
t(e).liveType !== t(d).LIVE_TYPE.vod ? (
|
|
654
|
+
t(e).liveType !== t(d).LIVE_TYPE.vod ? (n(), c(i, {
|
|
649
655
|
key: 9,
|
|
650
656
|
label: a.$t("liveVideo.replayMode"),
|
|
651
657
|
prop: "replayMode"
|
|
652
658
|
}, {
|
|
653
659
|
default: u(() => [
|
|
654
|
-
s(
|
|
660
|
+
s(m, {
|
|
655
661
|
modelValue: t(e).replayMode,
|
|
656
662
|
"onUpdate:modelValue": l[11] || (l[11] = (o) => t(e).replayMode = o)
|
|
657
663
|
}, {
|
|
658
664
|
default: u(() => [
|
|
659
|
-
(
|
|
665
|
+
(n(!0), _(H, null, F(t(V).replayModeEnum.values, (o) => (n(), c(r, {
|
|
660
666
|
key: o.key,
|
|
661
667
|
border: !0,
|
|
662
668
|
value: o.key
|
|
663
669
|
}, {
|
|
664
670
|
default: u(() => [
|
|
665
|
-
|
|
671
|
+
U(D(o.value), 1)
|
|
666
672
|
]),
|
|
667
673
|
_: 2
|
|
668
674
|
}, 1032, ["value"]))), 128))
|
|
@@ -672,7 +678,7 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
672
678
|
]),
|
|
673
679
|
_: 1
|
|
674
680
|
}, 8, ["label"])) : T("", !0),
|
|
675
|
-
t(e).replayMode === t(d).REPLAY_MODE.end && t(e).liveType !== t(d).LIVE_TYPE.vod ? (
|
|
681
|
+
t(e).replayMode === t(d).REPLAY_MODE.end && t(e).liveType !== t(d).LIVE_TYPE.vod ? (n(), c(i, {
|
|
676
682
|
key: 10,
|
|
677
683
|
label: a.$t("liveVideo.replayEndTime"),
|
|
678
684
|
prop: "replayEndTime"
|
|
@@ -695,17 +701,17 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
695
701
|
prop: "showJoin"
|
|
696
702
|
}, {
|
|
697
703
|
default: u(() => [
|
|
698
|
-
s(
|
|
704
|
+
s(m, {
|
|
699
705
|
modelValue: t(e).showJoin,
|
|
700
706
|
"onUpdate:modelValue": l[13] || (l[13] = (o) => t(e).showJoin = o)
|
|
701
707
|
}, {
|
|
702
708
|
default: u(() => [
|
|
703
|
-
(
|
|
709
|
+
(n(!0), _(H, null, F(t(V).isShowEnterLive.values, (o) => (n(), c(r, {
|
|
704
710
|
key: o.key,
|
|
705
711
|
value: o.key
|
|
706
712
|
}, {
|
|
707
713
|
default: u(() => [
|
|
708
|
-
|
|
714
|
+
U(D(o.value), 1)
|
|
709
715
|
]),
|
|
710
716
|
_: 2
|
|
711
717
|
}, 1032, ["value"]))), 128))
|
|
@@ -732,13 +738,13 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
732
738
|
}),
|
|
733
739
|
_: 1
|
|
734
740
|
}, 8, ["model", "rules"]),
|
|
735
|
-
|
|
741
|
+
P("div", qe, [
|
|
736
742
|
s(Q, {
|
|
737
743
|
type: "primary",
|
|
738
744
|
onClick: ie
|
|
739
745
|
}, {
|
|
740
746
|
default: u(() => [
|
|
741
|
-
|
|
747
|
+
U(D(a.$t("common.back")), 1)
|
|
742
748
|
]),
|
|
743
749
|
_: 1
|
|
744
750
|
}),
|
|
@@ -747,29 +753,29 @@ const Pe = { class: "app-container" }, Se = { class: "search-container" }, we =
|
|
|
747
753
|
onClick: pe
|
|
748
754
|
}, {
|
|
749
755
|
default: u(() => [
|
|
750
|
-
|
|
756
|
+
U(D(a.$t("common.confirm")), 1)
|
|
751
757
|
]),
|
|
752
758
|
_: 1
|
|
753
759
|
})
|
|
754
760
|
])
|
|
755
761
|
]),
|
|
756
|
-
|
|
762
|
+
C.value.visible ? (n(), c(be, {
|
|
757
763
|
key: 0,
|
|
758
|
-
modelValue:
|
|
759
|
-
"onUpdate:modelValue": l[15] || (l[15] = (
|
|
764
|
+
modelValue: C.value.visible,
|
|
765
|
+
"onUpdate:modelValue": l[15] || (l[15] = (S) => C.value.visible = S),
|
|
760
766
|
width: "1200px",
|
|
761
|
-
onConfirmSelect: l[16] || (l[16] = (
|
|
767
|
+
onConfirmSelect: l[16] || (l[16] = (S) => ne(S))
|
|
762
768
|
}, null, 8, ["modelValue"])) : T("", !0),
|
|
763
769
|
s(he, {
|
|
764
|
-
modelValue:
|
|
765
|
-
"onUpdate:modelValue": l[17] || (l[17] = (
|
|
770
|
+
modelValue: j.value,
|
|
771
|
+
"onUpdate:modelValue": l[17] || (l[17] = (S) => j.value = S),
|
|
766
772
|
"video-max-size": 800,
|
|
767
773
|
onUploadSuccess: ue
|
|
768
774
|
}, null, 8, ["modelValue"])
|
|
769
775
|
]);
|
|
770
776
|
};
|
|
771
777
|
}
|
|
772
|
-
}), We = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-
|
|
778
|
+
}), We = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-2ebfd619"]]);
|
|
773
779
|
export {
|
|
774
780
|
We as default
|
|
775
781
|
};
|