xyvcard-live 0.0.31 → 0.0.32
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-D8xezElG.mjs → add-Cvk6f0fi.mjs} +124 -122
- package/dist/{index-Beycpo3t.mjs → index-BOT8c_O3.mjs} +1 -1
- package/dist/{index-B2Ij3TPb.mjs → index-C1P6qMB-.mjs} +480 -498
- package/dist/{index-CJQ1nVj2-DVV-xhsh.mjs → index-CJQ1nVj2-I1BkEjzF.mjs} +1 -1
- package/dist/{index-DRtNC1FE.mjs → index-CanR_A5L.mjs} +1 -1
- package/dist/{index-BUbK0d-K.mjs → index-D-W3jRJj.mjs} +3 -3
- package/dist/{index-CmnaXFLe.mjs → index-DPWBp-QM.mjs} +1 -1
- package/dist/{index-BLrWTPEh.mjs → index-DR_KLGcK.mjs} +3 -3
- package/dist/{index-CX2fBxzP.mjs → index-DXtoxvpk.mjs} +2 -2
- package/dist/{index-CYKWBS0T.mjs → index-HaQWuNXR.mjs} +1 -1
- package/dist/{index-KMVMe9ZJ-DW8YAVcj.mjs → index-KMVMe9ZJ-Bqxbrxjm.mjs} +1 -1
- package/dist/{index-DfFtcAvP.mjs → index-MnFwnWby.mjs} +1 -1
- package/dist/{index-BXU28VHX.mjs → index-aSFigz8T.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-FLA_8Jge.mjs → index.vue_vue_type_script_setup_true_lang-BNxGG8wQ.mjs} +2 -2
- package/dist/{info-ByXTOGCn-D8RZuFIB.mjs → info-ByXTOGCn-CjCH5sYZ.mjs} +2 -2
- package/dist/{info-C_OAyZk9-CKlrQxDa.mjs → info-C_OAyZk9-CR1ZDRnw.mjs} +2 -2
- package/dist/{info-BHBgbpQB.mjs → info-Cywnamb8.mjs} +5 -5
- package/dist/{info-ZydxPcdx-DKsZxUZr.mjs → info-ZydxPcdx-BBBVBV0i.mjs} +2 -2
- package/dist/{lives-DjeL9Lq7.mjs → lives-GYvhUUnF.mjs} +1 -1
- package/dist/{statistics-23eJFR6M.mjs → statistics-BaDFsRh5.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{transcoding-DMZvhCPP.mjs → transcoding-BDgAwPDK.mjs} +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
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 u, createElementVNode as P, createBlock as c, createCommentVNode as y, createVNode as s, unref as t, withCtx as n, Fragment as H, renderList as F, createTextVNode as U, toDisplayString as D } from "vue";
|
|
2
2
|
import { ElMessage as w } 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
|
|
5
|
+
import { D as V, C as r, l as O, p as A, _ as _e } from "./index-DR_KLGcK.mjs";
|
|
6
6
|
import { useI18n as ge } from "vue-i18n";
|
|
7
|
-
import be from "./lives-
|
|
8
|
-
import { V as he } from "./index-
|
|
7
|
+
import be from "./lives-GYvhUUnF.mjs";
|
|
8
|
+
import { V as he } from "./index-HaQWuNXR.mjs";
|
|
9
9
|
import { s as J, a as k, t as le } from "./timeConvert-DSKES6ZM.mjs";
|
|
10
10
|
const we = { class: "app-container" }, Pe = { class: "search-container" }, Se = {
|
|
11
11
|
key: 0,
|
|
@@ -19,14 +19,14 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
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" }, Ce = { class: "button-container" }, Re = /* @__PURE__ */ ye({
|
|
26
26
|
__name: "add",
|
|
27
|
-
setup(
|
|
27
|
+
setup(qe) {
|
|
28
28
|
V.liveTypeEnum.useEnumValues(), V.showModeEnum.useEnumValues(), V.replayModeEnum.useEnumValues();
|
|
29
|
-
const { t: f } = ge(), z = Ve(), L = Ee(), $ =
|
|
29
|
+
const { t: f } = ge(), z = Ve(), L = Ee(), $ = Y();
|
|
30
30
|
let e = x({
|
|
31
31
|
requestId: Math.random() * 10 + "",
|
|
32
32
|
updateMask: "",
|
|
@@ -36,24 +36,25 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
36
36
|
endTime: void 0,
|
|
37
37
|
totalSeconds: 0,
|
|
38
38
|
streamerName: "",
|
|
39
|
-
showMode:
|
|
39
|
+
showMode: r.SHOW_MODE.horizontal,
|
|
40
40
|
preStreamPic: "",
|
|
41
41
|
liveStreamPic: "",
|
|
42
42
|
bgPic: "",
|
|
43
|
-
replayMode:
|
|
43
|
+
replayMode: r.REPLAY_MODE.none,
|
|
44
44
|
replayEndTime: void 0,
|
|
45
45
|
liveDescprition: "",
|
|
46
46
|
playUrl: "",
|
|
47
47
|
liveId: void 0,
|
|
48
48
|
replayStartTime: void 0,
|
|
49
49
|
virtualNum: 0,
|
|
50
|
-
streamType:
|
|
50
|
+
streamType: r.PUSH_TYPE_RTMP,
|
|
51
51
|
completeSeconds: 0,
|
|
52
|
-
transCode:
|
|
52
|
+
transCode: r.GQZB26,
|
|
53
|
+
showJoin: !1
|
|
53
54
|
});
|
|
54
55
|
const ae = (a) => {
|
|
55
56
|
let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds,transCode";
|
|
56
|
-
return a ===
|
|
57
|
+
return a === r.REPLAY_MODE.end && (l += ",replayEndTime"), e.liveType !== r.LIVE_TYPE.live && (l += ",endTime"), e.liveType === r.LIVE_TYPE.live && (l += ",streamType"), l;
|
|
57
58
|
};
|
|
58
59
|
e.updateMask = "", Z(
|
|
59
60
|
() => [e.replayMode, e.liveType],
|
|
@@ -62,11 +63,11 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
62
63
|
},
|
|
63
64
|
{ immediate: !0 }
|
|
64
65
|
);
|
|
65
|
-
const p =
|
|
66
|
+
const p = Y(null), g = Y(null), W = Te(() => L.query.copy === "true");
|
|
66
67
|
fe(async () => {
|
|
67
68
|
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);
|
|
68
69
|
});
|
|
69
|
-
const I =
|
|
70
|
+
const I = Y("00:00:00"), M = Y("00:00:00"), te = async () => {
|
|
70
71
|
const a = L.query.liveId;
|
|
71
72
|
if (a)
|
|
72
73
|
try {
|
|
@@ -75,16 +76,16 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
75
76
|
w.warning("未获取到直播数据");
|
|
76
77
|
return;
|
|
77
78
|
}
|
|
78
|
-
l.data.liveType ===
|
|
79
|
+
l.data.liveType === r.LIVE_TYPE.fake_live ? p.value = {
|
|
79
80
|
playUrl: A(l.data.playUrl),
|
|
80
81
|
totalSeconds: l.data.totalSeconds || 0
|
|
81
|
-
} : l.data.liveType ===
|
|
82
|
+
} : l.data.liveType === r.LIVE_TYPE.vod && (g.value = {
|
|
82
83
|
playUrl: A(l.data.playUrl)
|
|
83
84
|
}), 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.transCode = l.data.transCode, e.fileId = l.data.fileId, e.replayStartTime = J(l.data.replayStartTime), e.startTime = J(l.data.startTime), e.endTime = J(l.data.endTime), e.replayEndTime = J(l.data.replayEndTime);
|
|
84
|
-
const
|
|
85
|
-
e.totalSeconds =
|
|
86
|
-
const m = l.data.completeSeconds ||
|
|
87
|
-
M.value = k(m),
|
|
85
|
+
const d = l.data.totalSeconds || 0;
|
|
86
|
+
e.totalSeconds = d, I.value = k(d);
|
|
87
|
+
const m = l.data.completeSeconds || d;
|
|
88
|
+
M.value = k(m), W.value ? (delete e.liveId, e.liveName = `${e.liveName}`, w.info("已加载原直播数据,当前为复制模式")) : e.liveId = l.data.liveId, e.liveType === r.LIVE_TYPE.fake_live && p.value && N();
|
|
88
89
|
} catch (l) {
|
|
89
90
|
console.error("获取直播详情失败:", l), w.error("获取直播详情失败");
|
|
90
91
|
}
|
|
@@ -130,8 +131,8 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
130
131
|
message: f("liveVideo.pushTypeRequired"),
|
|
131
132
|
trigger: "change",
|
|
132
133
|
// 自定义验证器,只在 liveType 为直播类型时验证
|
|
133
|
-
validator: (a, l,
|
|
134
|
-
e.liveType ===
|
|
134
|
+
validator: (a, l, d) => {
|
|
135
|
+
e.liveType === r.LIVE_TYPE.live && !l ? d(new Error(f("liveVideo.pushTypeRequired"))) : d();
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
],
|
|
@@ -142,20 +143,20 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
142
143
|
trigger: "change"
|
|
143
144
|
},
|
|
144
145
|
{
|
|
145
|
-
validator: (a, l,
|
|
146
|
-
if (e.liveType ===
|
|
146
|
+
validator: (a, l, d) => {
|
|
147
|
+
if (e.liveType === r.LIVE_TYPE.vod && e.startTime && l) {
|
|
147
148
|
const m = new Date(e.startTime).getTime();
|
|
148
|
-
new Date(l).getTime() <= m ?
|
|
149
|
+
new Date(l).getTime() <= m ? d(new Error("结束时间必须大于开始时间")) : d();
|
|
149
150
|
} else
|
|
150
|
-
|
|
151
|
+
d();
|
|
151
152
|
},
|
|
152
153
|
trigger: "change"
|
|
153
154
|
}
|
|
154
155
|
],
|
|
155
156
|
replayEndTime: [
|
|
156
157
|
{
|
|
157
|
-
validator: (a, l,
|
|
158
|
-
e.replayMode ===
|
|
158
|
+
validator: (a, l, d) => {
|
|
159
|
+
e.replayMode === r.REPLAY_MODE.end && !l ? d(new Error(f("liveVideo.replayEndTimeRequired"))) : d();
|
|
159
160
|
},
|
|
160
161
|
trigger: "change"
|
|
161
162
|
}
|
|
@@ -173,16 +174,16 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
173
174
|
function se(a) {
|
|
174
175
|
e.bgPic = a;
|
|
175
176
|
}
|
|
176
|
-
const
|
|
177
|
-
function
|
|
178
|
-
|
|
177
|
+
const q = Y({ visible: !1 }), j = Y(!1);
|
|
178
|
+
function G() {
|
|
179
|
+
q.value.visible = !0;
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
+
const Q = () => {
|
|
181
182
|
j.value = !0;
|
|
182
183
|
}, ne = (a) => {
|
|
183
|
-
var
|
|
184
|
-
const l = (
|
|
185
|
-
if (!l || !
|
|
184
|
+
var T, b;
|
|
185
|
+
const l = (T = a == null ? void 0 : a.video) == null ? void 0 : T.url, d = a == null ? void 0 : a.fileId, m = ((b = a == null ? void 0 : a.video) == null ? void 0 : b.duration) || 0;
|
|
186
|
+
if (!l || !d) {
|
|
186
187
|
w.error("视频上传成功,但未获取到有效播放地址/文件ID!");
|
|
187
188
|
return;
|
|
188
189
|
}
|
|
@@ -195,43 +196,43 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
195
196
|
const v = {
|
|
196
197
|
playUrl: i,
|
|
197
198
|
totalSeconds: m,
|
|
198
|
-
fileId:
|
|
199
|
+
fileId: d
|
|
199
200
|
};
|
|
200
|
-
e.liveType ===
|
|
201
|
+
e.liveType === r.LIVE_TYPE.fake_live ? p.value = v : e.liveType === r.LIVE_TYPE.vod && (g.value = v), e.playUrl = i, e.totalSeconds = m, e.fileId = d, I.value = k(m), M.value = k(m), e.liveType === r.LIVE_TYPE.fake_live && R(() => {
|
|
201
202
|
N();
|
|
202
|
-
}),
|
|
203
|
+
}), R(() => {
|
|
203
204
|
w.success("本地视频上传成功!");
|
|
204
205
|
});
|
|
205
206
|
}, ue = (a) => {
|
|
206
|
-
var v,
|
|
207
|
+
var v, T, b;
|
|
207
208
|
console.log(a, "=>data "), p.value = null, g.value = null;
|
|
208
209
|
const l = (v = a.transcodeData) == null ? void 0 : v.url;
|
|
209
210
|
if (!l) {
|
|
210
211
|
w.warning("选中的转码视频无有效播放地址");
|
|
211
212
|
return;
|
|
212
213
|
}
|
|
213
|
-
let
|
|
214
|
+
let d = "";
|
|
214
215
|
try {
|
|
215
|
-
|
|
216
|
+
d = A(l), d || (d = l);
|
|
216
217
|
} catch (h) {
|
|
217
|
-
|
|
218
|
+
d = l, console.warn("播放地址处理失败,使用原始地址:", h);
|
|
218
219
|
}
|
|
219
|
-
const m = a.fileId, i = ((
|
|
220
|
-
e.liveType ===
|
|
221
|
-
playUrl:
|
|
220
|
+
const m = a.fileId, i = ((T = a.metaData) == null ? void 0 : T.duration) || 0;
|
|
221
|
+
e.liveType === r.LIVE_TYPE.fake_live ? (p.value = {
|
|
222
|
+
playUrl: d,
|
|
222
223
|
totalSeconds: i,
|
|
223
224
|
fileId: m,
|
|
224
225
|
transcodeData: a.transcodeData
|
|
225
226
|
// 可选:保留转码详细信息
|
|
226
|
-
}, e.playUrl =
|
|
227
|
+
}, e.playUrl = d, e.totalSeconds = i, I.value = k(i), M.value = k(i), R(() => {
|
|
227
228
|
N();
|
|
228
|
-
})) : e.liveType ===
|
|
229
|
-
playUrl:
|
|
229
|
+
})) : e.liveType === r.LIVE_TYPE.vod && (g.value = {
|
|
230
|
+
playUrl: d,
|
|
230
231
|
fileId: m,
|
|
231
232
|
liveName: ((b = a.basicInfo) == null ? void 0 : b.name) || "未命名视频",
|
|
232
233
|
transcodeData: a.transcodeData
|
|
233
234
|
// 转码详细信息
|
|
234
|
-
}, e.playUrl =
|
|
235
|
+
}, e.playUrl = d, e.totalSeconds = i, I.value = k(i), M.value = k(i)), R(() => {
|
|
235
236
|
var h, C;
|
|
236
237
|
(h = $.value) == null || h.validateField(["fakeLiveSetting", "endTime"]), w.success(
|
|
237
238
|
`已选中转码视频:${((C = a.basicInfo) == null ? void 0 : C.name) || "未命名视频"} (${a.transcodeData.width}×${a.transcodeData.height})`
|
|
@@ -244,43 +245,43 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
244
245
|
console.error("无效的开始时间:", e.startTime);
|
|
245
246
|
return;
|
|
246
247
|
}
|
|
247
|
-
const l = (p.value.totalSeconds || 0) * 1e3,
|
|
248
|
-
e.endTime = `${m}-${i}-${v}T${
|
|
248
|
+
const l = (p.value.totalSeconds || 0) * 1e3, d = new Date(a.getTime() + l), m = d.getUTCFullYear(), i = String(d.getUTCMonth() + 1).padStart(2, "0"), v = String(d.getUTCDate()).padStart(2, "0"), T = String(d.getUTCHours()).padStart(2, "0"), b = String(d.getUTCMinutes()).padStart(2, "0"), h = String(d.getUTCSeconds()).padStart(2, "0");
|
|
249
|
+
e.endTime = `${m}-${i}-${v}T${T}:${b}:${h}Z`, R(() => {
|
|
249
250
|
$.value && $.value.validateField("endTime");
|
|
250
251
|
});
|
|
251
252
|
}
|
|
252
253
|
}, me = () => {
|
|
253
|
-
e.playUrl = "", e.liveType ===
|
|
254
|
+
e.playUrl = "", e.liveType === r.LIVE_TYPE.fake_live && p.value ? N() : e.endTime = void 0;
|
|
254
255
|
};
|
|
255
256
|
Z(
|
|
256
257
|
() => e.startTime,
|
|
257
258
|
(a) => {
|
|
258
|
-
e.liveType ===
|
|
259
|
+
e.liveType === r.LIVE_TYPE.fake_live && p.value && a && N();
|
|
259
260
|
}
|
|
260
261
|
), Z(
|
|
261
262
|
() => e.replayMode,
|
|
262
263
|
(a) => {
|
|
263
|
-
a !==
|
|
264
|
+
a !== r.REPLAY_MODE.end && (e.replayEndTime = void 0);
|
|
264
265
|
}
|
|
265
266
|
);
|
|
266
267
|
const pe = async () => {
|
|
267
|
-
var l,
|
|
268
|
-
if (e.liveType ===
|
|
268
|
+
var l, d, m;
|
|
269
|
+
if (e.liveType === r.LIVE_TYPE.fake_live && !p.value) {
|
|
269
270
|
w.error(f("liveVideo.fakeLiveRequired"));
|
|
270
271
|
return;
|
|
271
272
|
}
|
|
272
|
-
if (e.liveType ===
|
|
273
|
+
if (e.liveType === r.LIVE_TYPE.vod && !g.value) {
|
|
273
274
|
w.error(f("liveVideo.vodRequired"));
|
|
274
275
|
return;
|
|
275
276
|
}
|
|
276
277
|
if (await ((l = $.value) == null ? void 0 : l.validate()))
|
|
277
278
|
try {
|
|
278
279
|
let i = { ...e };
|
|
279
|
-
e.liveType ===
|
|
280
|
+
e.liveType === r.LIVE_TYPE.fake_live && ((d = p.value) != null && d.fileId) ? i.fileId = p.value.fileId : e.liveType === r.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 !== r.LIVE_TYPE.live && delete i.streamType;
|
|
280
281
|
let v;
|
|
281
|
-
if (
|
|
282
|
-
const
|
|
283
|
-
delete
|
|
282
|
+
if (W.value) {
|
|
283
|
+
const T = { ...i };
|
|
284
|
+
delete T.liveId, v = await O.create(T);
|
|
284
285
|
} else L.query.liveId ? v = await O.update(i) : v = await O.create(i);
|
|
285
286
|
v.status === 200 && (w.success(f("common.submitSuccess")), ee.closeTagView(L.fullPath, z, !1));
|
|
286
287
|
} catch (i) {
|
|
@@ -288,7 +289,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
288
289
|
}
|
|
289
290
|
};
|
|
290
291
|
return (a, l) => {
|
|
291
|
-
const
|
|
292
|
+
const d = E("el-radio"), m = E("el-radio-group"), i = E("el-form-item"), v = E("el-input"), T = E("jmash-dict-select"), b = E("el-date-picker"), h = E("el-time-picker"), C = E("el-col"), B = E("jmash-single-image-upload"), ve = E("jmash-editor"), ce = E("el-form"), K = E("el-button");
|
|
292
293
|
return u(), _("div", we, [
|
|
293
294
|
P("div", Pe, [
|
|
294
295
|
s(ce, {
|
|
@@ -313,13 +314,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
313
314
|
onChange: me
|
|
314
315
|
}, {
|
|
315
316
|
default: n(() => [
|
|
316
|
-
(u(!0), _(H, null, F(t(V).liveTypeEnum.values, (o) => (u(), c(
|
|
317
|
+
(u(!0), _(H, null, F(t(V).liveTypeEnum.values, (o) => (u(), c(d, {
|
|
317
318
|
key: o.key,
|
|
318
319
|
border: !0,
|
|
319
320
|
value: o.key
|
|
320
321
|
}, {
|
|
321
322
|
default: n(() => [
|
|
322
|
-
|
|
323
|
+
U(D(o.value), 1)
|
|
323
324
|
]),
|
|
324
325
|
_: 2
|
|
325
326
|
}, 1032, ["value"]))), 128))
|
|
@@ -329,8 +330,8 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
329
330
|
]),
|
|
330
331
|
_: 1
|
|
331
332
|
}, 8, ["label"]),
|
|
332
|
-
t(e).liveType === t(
|
|
333
|
-
t(e).liveType === t(
|
|
333
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), _("div", Se, " 实时直播形式,根据实际画面进行传播,无法快进或回放 ")) : y("", !0),
|
|
334
|
+
t(e).liveType === t(r).LIVE_TYPE.fake_live ? (u(), c(i, {
|
|
334
335
|
key: 1,
|
|
335
336
|
label: a.$t("liveVideo.fakeLive")
|
|
336
337
|
}, {
|
|
@@ -340,19 +341,19 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
340
341
|
P("button", {
|
|
341
342
|
type: "button",
|
|
342
343
|
class: "fakeLive",
|
|
343
|
-
onClick:
|
|
344
|
+
onClick: G
|
|
344
345
|
}, " 伪直播设置 "),
|
|
345
346
|
P("button", {
|
|
346
347
|
type: "button",
|
|
347
348
|
class: "fakeLive",
|
|
348
|
-
onClick:
|
|
349
|
+
onClick: Q
|
|
349
350
|
}, " 从本地上传视频 "),
|
|
350
351
|
(o = p.value) != null && o.playUrl ? (u(), _("div", Ie, "已设置")) : (u(), _("div", ke, " 未设置 "))
|
|
351
352
|
];
|
|
352
353
|
}),
|
|
353
354
|
_: 1
|
|
354
|
-
}, 8, ["label"])) :
|
|
355
|
-
t(e).liveType === t(
|
|
355
|
+
}, 8, ["label"])) : y("", !0),
|
|
356
|
+
t(e).liveType === t(r).LIVE_TYPE.vod ? (u(), c(i, {
|
|
356
357
|
key: 2,
|
|
357
358
|
label: a.$t("liveVideo.vod")
|
|
358
359
|
}, {
|
|
@@ -362,19 +363,19 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
362
363
|
P("button", {
|
|
363
364
|
type: "button",
|
|
364
365
|
class: "fakeLive",
|
|
365
|
-
onClick:
|
|
366
|
+
onClick: G
|
|
366
367
|
}, " 点播设置 "),
|
|
367
368
|
P("button", {
|
|
368
369
|
type: "button",
|
|
369
370
|
class: "fakeLive",
|
|
370
|
-
onClick:
|
|
371
|
+
onClick: Q
|
|
371
372
|
}, " 从本地上传视频 "),
|
|
372
|
-
(o = g.value) != null && o.playUrl ? (u(), _("div",
|
|
373
|
+
(o = g.value) != null && o.playUrl ? (u(), _("div", Ye, "已设置")) : (u(), _("div", Me, "未设置"))
|
|
373
374
|
];
|
|
374
375
|
}),
|
|
375
376
|
_: 1
|
|
376
|
-
}, 8, ["label"])) :
|
|
377
|
-
(S = p.value) != null && S.playUrl && t(e).liveType === t(
|
|
377
|
+
}, 8, ["label"])) : y("", !0),
|
|
378
|
+
(S = p.value) != null && S.playUrl && t(e).liveType === t(r).LIVE_TYPE.fake_live ? (u(), c(i, {
|
|
378
379
|
key: 3,
|
|
379
380
|
label: "视频预览"
|
|
380
381
|
}, {
|
|
@@ -389,12 +390,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
389
390
|
height: "250",
|
|
390
391
|
muted: "",
|
|
391
392
|
playsinline: ""
|
|
392
|
-
}, " 您的浏览器不支持视频播放 ", 8,
|
|
393
|
+
}, " 您的浏览器不支持视频播放 ", 8, Ue)) : y("", !0)
|
|
393
394
|
];
|
|
394
395
|
}),
|
|
395
396
|
_: 1
|
|
396
|
-
})) :
|
|
397
|
-
(X = g.value) != null && X.playUrl && t(e).liveType === t(
|
|
397
|
+
})) : y("", !0),
|
|
398
|
+
(X = g.value) != null && X.playUrl && t(e).liveType === t(r).LIVE_TYPE.vod ? (u(), c(i, {
|
|
398
399
|
key: 4,
|
|
399
400
|
label: "视频预览"
|
|
400
401
|
}, {
|
|
@@ -409,11 +410,11 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
409
410
|
height: "250",
|
|
410
411
|
muted: "",
|
|
411
412
|
playsinline: ""
|
|
412
|
-
}, " 您的浏览器不支持视频播放 ", 8, De)) :
|
|
413
|
+
}, " 您的浏览器不支持视频播放 ", 8, De)) : y("", !0)
|
|
413
414
|
];
|
|
414
415
|
}),
|
|
415
416
|
_: 1
|
|
416
|
-
})) :
|
|
417
|
+
})) : y("", !0),
|
|
417
418
|
s(i, {
|
|
418
419
|
label: a.$t("liveVideo.liveName"),
|
|
419
420
|
prop: "liveName"
|
|
@@ -430,22 +431,23 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
430
431
|
]),
|
|
431
432
|
_: 1
|
|
432
433
|
}, 8, ["label"]),
|
|
433
|
-
|
|
434
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), c(i, {
|
|
435
|
+
key: 5,
|
|
434
436
|
label: a.$t("liveVideo.transCode"),
|
|
435
437
|
prop: "transCode"
|
|
436
438
|
}, {
|
|
437
439
|
default: n(() => [
|
|
438
|
-
s(
|
|
440
|
+
s(T, {
|
|
439
441
|
modelValue: t(e).transCode,
|
|
440
442
|
"onUpdate:modelValue": l[2] || (l[2] = (o) => t(e).transCode = o),
|
|
441
443
|
placeholder: a.$t("liveVideo.transCodeRequired"),
|
|
442
|
-
"type-code": t(
|
|
444
|
+
"type-code": t(r).TRANSCODE_CODEC,
|
|
443
445
|
clearable: "",
|
|
444
446
|
class: "w-full"
|
|
445
447
|
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
|
446
448
|
]),
|
|
447
449
|
_: 1
|
|
448
|
-
}, 8, ["label"]),
|
|
450
|
+
}, 8, ["label"])) : y("", !0),
|
|
449
451
|
s(i, {
|
|
450
452
|
label: a.$t("liveVideo.startTime"),
|
|
451
453
|
prop: "startTime"
|
|
@@ -463,8 +465,8 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
463
465
|
]),
|
|
464
466
|
_: 1
|
|
465
467
|
}, 8, ["label"]),
|
|
466
|
-
t(e).liveType !== t(
|
|
467
|
-
key:
|
|
468
|
+
t(e).liveType !== t(r).LIVE_TYPE.live ? (u(), c(i, {
|
|
469
|
+
key: 6,
|
|
468
470
|
label: a.$t("liveVideo.endTime"),
|
|
469
471
|
prop: "endTime"
|
|
470
472
|
}, {
|
|
@@ -477,13 +479,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
477
479
|
format: "YYYY-MM-DD HH:mm:ss",
|
|
478
480
|
"value-format": "YYYY-MM-DDTHH:mm:ssZ",
|
|
479
481
|
class: "w-full",
|
|
480
|
-
disabled: t(e).liveType === t(
|
|
482
|
+
disabled: t(e).liveType === t(r).LIVE_TYPE.fake_live
|
|
481
483
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
482
484
|
]),
|
|
483
485
|
_: 1
|
|
484
|
-
}, 8, ["label"])) :
|
|
485
|
-
t(e).liveType === t(
|
|
486
|
-
key:
|
|
486
|
+
}, 8, ["label"])) : y("", !0),
|
|
487
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), c(C, {
|
|
488
|
+
key: 7,
|
|
487
489
|
span: 24
|
|
488
490
|
}, {
|
|
489
491
|
default: n(() => [
|
|
@@ -507,7 +509,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
507
509
|
}, 8, ["label"])
|
|
508
510
|
]),
|
|
509
511
|
_: 1
|
|
510
|
-
})) :
|
|
512
|
+
})) : y("", !0),
|
|
511
513
|
s(C, { span: 24 }, {
|
|
512
514
|
default: n(() => [
|
|
513
515
|
s(i, {
|
|
@@ -536,10 +538,10 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
536
538
|
prop: "streamerName"
|
|
537
539
|
}, {
|
|
538
540
|
default: n(() => [
|
|
539
|
-
s(
|
|
541
|
+
s(T, {
|
|
540
542
|
modelValue: t(e).streamerName,
|
|
541
543
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => t(e).streamerName = o),
|
|
542
|
-
"type-code": t(
|
|
544
|
+
"type-code": t(r).ANCHOR_NAME,
|
|
543
545
|
placeholder: a.$t("liveVideo.streamerNameRequired"),
|
|
544
546
|
clearable: "",
|
|
545
547
|
class: "w-full"
|
|
@@ -577,22 +579,22 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
577
579
|
]),
|
|
578
580
|
_: 1
|
|
579
581
|
}, 8, ["label"]),
|
|
580
|
-
t(e).liveType === t(
|
|
581
|
-
key:
|
|
582
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), c(i, {
|
|
583
|
+
key: 8,
|
|
582
584
|
label: a.$t("liveVideo.pushType"),
|
|
583
585
|
prop: "streamType"
|
|
584
586
|
}, {
|
|
585
587
|
default: n(() => [
|
|
586
|
-
s(
|
|
588
|
+
s(T, {
|
|
587
589
|
modelValue: t(e).streamType,
|
|
588
590
|
"onUpdate:modelValue": l[10] || (l[10] = (o) => t(e).streamType = o),
|
|
589
591
|
placeholder: a.$t("liveVideo.pushTypeRequired"),
|
|
590
|
-
"type-code": t(
|
|
592
|
+
"type-code": t(r).PUSH_TYPE,
|
|
591
593
|
class: "w-full"
|
|
592
594
|
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
|
593
595
|
]),
|
|
594
596
|
_: 1
|
|
595
|
-
}, 8, ["label"])) :
|
|
597
|
+
}, 8, ["label"])) : y("", !0),
|
|
596
598
|
s(i, {
|
|
597
599
|
label: a.$t("liveVideo.showMode"),
|
|
598
600
|
prop: "showMode"
|
|
@@ -603,12 +605,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
603
605
|
"onUpdate:modelValue": l[11] || (l[11] = (o) => t(e).showMode = o)
|
|
604
606
|
}, {
|
|
605
607
|
default: n(() => [
|
|
606
|
-
(u(!0), _(H, null, F(t(V).showModeEnum.values, (o) => (u(), c(
|
|
608
|
+
(u(!0), _(H, null, F(t(V).showModeEnum.values, (o) => (u(), c(d, {
|
|
607
609
|
key: o.key,
|
|
608
610
|
value: o.key
|
|
609
611
|
}, {
|
|
610
612
|
default: n(() => [
|
|
611
|
-
|
|
613
|
+
U(D(o.value), 1)
|
|
612
614
|
]),
|
|
613
615
|
_: 2
|
|
614
616
|
}, 1032, ["value"]))), 128))
|
|
@@ -650,8 +652,8 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
650
652
|
]),
|
|
651
653
|
_: 1
|
|
652
654
|
}, 8, ["label"]),
|
|
653
|
-
t(e).showMode === t(
|
|
654
|
-
key:
|
|
655
|
+
t(e).showMode === t(r).SHOW_MODE.vertical ? (u(), c(i, {
|
|
656
|
+
key: 9,
|
|
655
657
|
label: a.$t("liveVideo.bgPic"),
|
|
656
658
|
prop: "bgPic"
|
|
657
659
|
}, {
|
|
@@ -666,9 +668,9 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
666
668
|
])
|
|
667
669
|
]),
|
|
668
670
|
_: 1
|
|
669
|
-
}, 8, ["label"])) :
|
|
670
|
-
t(e).liveType !== t(
|
|
671
|
-
key:
|
|
671
|
+
}, 8, ["label"])) : y("", !0),
|
|
672
|
+
t(e).liveType !== t(r).LIVE_TYPE.vod ? (u(), c(i, {
|
|
673
|
+
key: 10,
|
|
672
674
|
label: a.$t("liveVideo.replayMode"),
|
|
673
675
|
prop: "replayMode"
|
|
674
676
|
}, {
|
|
@@ -678,13 +680,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
678
680
|
"onUpdate:modelValue": l[12] || (l[12] = (o) => t(e).replayMode = o)
|
|
679
681
|
}, {
|
|
680
682
|
default: n(() => [
|
|
681
|
-
(u(!0), _(H, null, F(t(V).replayModeEnum.values, (o) => (u(), c(
|
|
683
|
+
(u(!0), _(H, null, F(t(V).replayModeEnum.values, (o) => (u(), c(d, {
|
|
682
684
|
key: o.key,
|
|
683
685
|
border: !0,
|
|
684
686
|
value: o.key
|
|
685
687
|
}, {
|
|
686
688
|
default: n(() => [
|
|
687
|
-
|
|
689
|
+
U(D(o.value), 1)
|
|
688
690
|
]),
|
|
689
691
|
_: 2
|
|
690
692
|
}, 1032, ["value"]))), 128))
|
|
@@ -693,9 +695,9 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
693
695
|
}, 8, ["modelValue"])
|
|
694
696
|
]),
|
|
695
697
|
_: 1
|
|
696
|
-
}, 8, ["label"])) :
|
|
697
|
-
t(e).replayMode === t(
|
|
698
|
-
key:
|
|
698
|
+
}, 8, ["label"])) : y("", !0),
|
|
699
|
+
t(e).replayMode === t(r).REPLAY_MODE.end && t(e).liveType !== t(r).LIVE_TYPE.vod ? (u(), c(i, {
|
|
700
|
+
key: 11,
|
|
699
701
|
label: a.$t("liveVideo.replayEndTime"),
|
|
700
702
|
prop: "replayEndTime"
|
|
701
703
|
}, {
|
|
@@ -711,7 +713,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
711
713
|
}, null, 8, ["modelValue", "placeholder"])
|
|
712
714
|
]),
|
|
713
715
|
_: 1
|
|
714
|
-
}, 8, ["label"])) :
|
|
716
|
+
}, 8, ["label"])) : y("", !0),
|
|
715
717
|
s(i, {
|
|
716
718
|
label: a.$t("liveVideo.showJoin"),
|
|
717
719
|
prop: "showJoin"
|
|
@@ -722,12 +724,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
722
724
|
"onUpdate:modelValue": l[14] || (l[14] = (o) => t(e).showJoin = o)
|
|
723
725
|
}, {
|
|
724
726
|
default: n(() => [
|
|
725
|
-
(u(!0), _(H, null, F(t(V).isShowEnterLive.values, (o) => (u(), c(
|
|
727
|
+
(u(!0), _(H, null, F(t(V).isShowEnterLive.values, (o) => (u(), c(d, {
|
|
726
728
|
key: o.key,
|
|
727
729
|
value: o.key
|
|
728
730
|
}, {
|
|
729
731
|
default: n(() => [
|
|
730
|
-
|
|
732
|
+
U(D(o.value), 1)
|
|
731
733
|
]),
|
|
732
734
|
_: 2
|
|
733
735
|
}, 1032, ["value"]))), 128))
|
|
@@ -760,7 +762,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
760
762
|
onClick: ie
|
|
761
763
|
}, {
|
|
762
764
|
default: n(() => [
|
|
763
|
-
|
|
765
|
+
U(D(a.$t("common.back")), 1)
|
|
764
766
|
]),
|
|
765
767
|
_: 1
|
|
766
768
|
}),
|
|
@@ -769,19 +771,19 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
769
771
|
onClick: pe
|
|
770
772
|
}, {
|
|
771
773
|
default: n(() => [
|
|
772
|
-
|
|
774
|
+
U(D(a.$t("common.confirm")), 1)
|
|
773
775
|
]),
|
|
774
776
|
_: 1
|
|
775
777
|
})
|
|
776
778
|
])
|
|
777
779
|
]),
|
|
778
|
-
|
|
780
|
+
q.value.visible ? (u(), c(be, {
|
|
779
781
|
key: 0,
|
|
780
|
-
modelValue:
|
|
781
|
-
"onUpdate:modelValue": l[16] || (l[16] = (S) =>
|
|
782
|
+
modelValue: q.value.visible,
|
|
783
|
+
"onUpdate:modelValue": l[16] || (l[16] = (S) => q.value.visible = S),
|
|
782
784
|
width: "1200px",
|
|
783
785
|
onConfirmSelect: l[17] || (l[17] = (S) => ue(S))
|
|
784
|
-
}, null, 8, ["modelValue"])) :
|
|
786
|
+
}, null, 8, ["modelValue"])) : y("", !0),
|
|
785
787
|
s(he, {
|
|
786
788
|
modelValue: j.value,
|
|
787
789
|
"onUpdate:modelValue": l[18] || (l[18] = (S) => j.value = S),
|
|
@@ -791,7 +793,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
791
793
|
]);
|
|
792
794
|
};
|
|
793
795
|
}
|
|
794
|
-
}),
|
|
796
|
+
}), We = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-70c28666"]]);
|
|
795
797
|
export {
|
|
796
|
-
|
|
798
|
+
We as default
|
|
797
799
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ce, getCurrentInstance as ie, ref as V, resolveComponent as i, resolveDirective as ue, createElementBlock as _, openBlock as d, Fragment as M, createElementVNode as k, createVNode as r, withCtx as m, unref as s, renderList as de, createBlock as L, createTextVNode as p, toDisplayString as u, withDirectives as I, createCommentVNode as P, isRef as Q } from "vue";
|
|
2
2
|
import { useUserStore as v, clearEmpty as f, request as h, useTableHooks as pe } from "jmash-core";
|
|
3
3
|
import { useI18n as ve } from "vue-i18n";
|
|
4
|
-
import { D as b, g as j, U as fe, _ as he } from "./index-
|
|
4
|
+
import { D as b, g as j, U as fe, _ as he } from "./index-DR_KLGcK.mjs";
|
|
5
5
|
import { useRoute as ge } from "vue-router";
|
|
6
6
|
class Ce {
|
|
7
7
|
getKey(t) {
|