xyvcard-live 0.0.34 → 0.0.35
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-DncmSOCx.mjs → add-CGoQD4j9.mjs} +294 -285
- package/dist/{index-jUKb8gxM.mjs → index-9duygQkv.mjs} +1 -1
- package/dist/{index-C1P6qMB-.mjs → index-B2Ij3TPb.mjs} +498 -480
- package/dist/{index-Bu3Soz9A.mjs → index-BVngHobj.mjs} +1 -1
- package/dist/{index-0SsgRMCr.mjs → index-BugQ9Gpb.mjs} +3 -3
- package/dist/{index-CJQ1nVj2-Bbep6rES.mjs → index-CJQ1nVj2-CFkh-2Pg.mjs} +1 -1
- package/dist/{index-DdGTS66l.mjs → index-CiBPIeVf.mjs} +3 -3
- package/dist/{index-DNtocILV.mjs → index-CnmxFd_t.mjs} +1 -1
- package/dist/{index-Bqx36tjJ.mjs → index-D9xhpJZJ.mjs} +1 -1
- package/dist/{index-DFbLS1yJ.mjs → index-Dsbw15tn.mjs} +2 -2
- package/dist/{index-UIrUMr4-.mjs → index-GNY0jcsh.mjs} +1 -1
- package/dist/{index-KMVMe9ZJ-CzqrRT6r.mjs → index-KMVMe9ZJ-BObNndvb.mjs} +1 -1
- package/dist/{index-CoOJ8Kz5.mjs → index-vTNaqOHZ.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{index.vue_vue_type_script_setup_true_lang-DtvPgmuJ.mjs → index.vue_vue_type_script_setup_true_lang-BJTCFcE7.mjs} +2 -2
- package/dist/{info-ByXTOGCn-v6Hsmeww.mjs → info-ByXTOGCn-Bg1GwEbM.mjs} +2 -2
- package/dist/{info-BzrY5m-E.mjs → info-CVXeF3ji.mjs} +27 -26
- package/dist/{info-C_OAyZk9-BVIF61ic.mjs → info-C_OAyZk9-gO0Bwymi.mjs} +2 -2
- package/dist/{info-ZydxPcdx-DPx2jkKP.mjs → info-ZydxPcdx-LlmlwGmr.mjs} +2 -2
- package/dist/{lives-DhmJZTpV.mjs → lives-BiR20q8J.mjs} +1 -1
- package/dist/{statistics-Csx9ytff.mjs → statistics-CTnps0mC.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{transcoding-BOS2di1g.mjs → transcoding-DBVURRll.mjs} +1 -1
- package/dts/src/api/live/zb-live-video/types.d.ts +3 -0
- package/dts/src/components/liveList/index.vue.d.ts +2 -0
- package/dts/src/views/live/zb-live-video/lives.vue.d.ts +2 -2
- package/dts/src/views/live/zb-live-videoList/edit.vue.d.ts +1 -1
- package/dts/src/views/live/zb-live-videoList/transcoding.vue.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as ye, ref as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { routerUtil as
|
|
1
|
+
import { defineComponent as ye, ref as k, reactive as le, watch as Q, computed as Te, onMounted as fe, nextTick as F, resolveComponent as h, createElementBlock as b, openBlock as u, createElementVNode as _, createBlock as y, createCommentVNode as T, createVNode as d, unref as t, withCtx as s, Fragment as j, renderList as B, createTextVNode as L, toDisplayString as I } from "vue";
|
|
2
|
+
import { ElMessage as P } from "element-plus";
|
|
3
|
+
import { routerUtil as ae } from "jmash-core";
|
|
4
4
|
import { useRouter as Ve, useRoute as Ee } from "vue-router";
|
|
5
|
-
import { D as
|
|
5
|
+
import { D as g, C as r, l as Z, p as z, _ as _e } from "./index-BugQ9Gpb.mjs";
|
|
6
6
|
import { useI18n as ge } from "vue-i18n";
|
|
7
|
-
import
|
|
8
|
-
import { V as
|
|
9
|
-
import { s as
|
|
7
|
+
import he from "./lives-BiR20q8J.mjs";
|
|
8
|
+
import { V as be } from "./index-9duygQkv.mjs";
|
|
9
|
+
import { s as W, a as M, t as te } from "./timeConvert-DSKES6ZM.mjs";
|
|
10
10
|
const we = { class: "app-container" }, Pe = { class: "search-container" }, Se = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "live-tip-text"
|
|
@@ -22,12 +22,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
22
22
|
}, Ye = {
|
|
23
23
|
key: 1,
|
|
24
24
|
class: "setting-status"
|
|
25
|
-
}, Ue = ["src"],
|
|
25
|
+
}, Ue = { class: "video-preview" }, De = ["src"], Le = { class: "video-preview" }, Ne = ["src"], $e = { class: "files-list" }, Ce = { class: "files-list" }, Re = { class: "files-list" }, qe = { class: "button-container" }, He = /* @__PURE__ */ ye({
|
|
26
26
|
__name: "add",
|
|
27
|
-
setup(
|
|
28
|
-
|
|
29
|
-
const { t:
|
|
30
|
-
let e =
|
|
27
|
+
setup(Fe) {
|
|
28
|
+
g.liveTypeEnum.useEnumValues(), g.showModeEnum.useEnumValues(), g.replayModeEnum.useEnumValues(), k("");
|
|
29
|
+
const { t: V } = ge(), K = Ve(), N = Ee(), $ = k();
|
|
30
|
+
let e = le({
|
|
31
31
|
requestId: Math.random() * 10 + "",
|
|
32
32
|
updateMask: "",
|
|
33
33
|
liveType: "",
|
|
@@ -50,277 +50,280 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
50
50
|
streamType: r.PUSH_TYPE_RTMP,
|
|
51
51
|
completeSeconds: 0,
|
|
52
52
|
transCode: r.GQZB26,
|
|
53
|
-
showJoin: !1
|
|
53
|
+
showJoin: !1,
|
|
54
|
+
fileName: ""
|
|
54
55
|
});
|
|
55
|
-
const
|
|
56
|
-
let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds,transCode";
|
|
56
|
+
const oe = (a) => {
|
|
57
|
+
let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds,transCode,fileName";
|
|
57
58
|
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;
|
|
58
59
|
};
|
|
59
|
-
e.updateMask = "",
|
|
60
|
+
e.updateMask = "", Q(
|
|
60
61
|
() => [e.replayMode, e.liveType],
|
|
61
62
|
() => {
|
|
62
|
-
e.updateMask =
|
|
63
|
+
e.updateMask = oe(e.replayMode);
|
|
63
64
|
},
|
|
64
65
|
{ immediate: !0 }
|
|
65
66
|
);
|
|
66
|
-
const
|
|
67
|
+
const v = k(null), w = k(null), X = Te(() => N.query.copy === "true");
|
|
67
68
|
fe(async () => {
|
|
68
|
-
await
|
|
69
|
+
await ie(), !e.liveType && g.liveTypeEnum.values.length && (e.liveType = g.liveTypeEnum.values[0].key), !e.replayMode && g.replayModeEnum.values.length && (e.replayMode = g.replayModeEnum.values[1].key), !e.showMode && g.showModeEnum.values.length && (e.showMode = g.showModeEnum.values[0].key);
|
|
69
70
|
});
|
|
70
|
-
const
|
|
71
|
-
const a =
|
|
71
|
+
const Y = k("00:00:00"), U = k("00:00:00"), ie = async () => {
|
|
72
|
+
const a = N.query.liveId;
|
|
72
73
|
if (a)
|
|
73
74
|
try {
|
|
74
|
-
const l = await
|
|
75
|
+
const l = await Z.findById({ liveId: a });
|
|
75
76
|
if (!l.data) {
|
|
76
|
-
|
|
77
|
+
P.warning("未获取到直播数据");
|
|
77
78
|
return;
|
|
78
79
|
}
|
|
79
|
-
l.data.liveType === r.LIVE_TYPE.fake_live ?
|
|
80
|
-
playUrl:
|
|
80
|
+
l.data.liveType === r.LIVE_TYPE.fake_live ? v.value = {
|
|
81
|
+
playUrl: z(l.data.playUrl),
|
|
81
82
|
totalSeconds: l.data.totalSeconds || 0
|
|
82
|
-
} : l.data.liveType === r.LIVE_TYPE.vod && (
|
|
83
|
-
playUrl:
|
|
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 =
|
|
85
|
-
const
|
|
86
|
-
e.totalSeconds =
|
|
87
|
-
const
|
|
88
|
-
|
|
83
|
+
} : l.data.liveType === r.LIVE_TYPE.vod && (w.value = {
|
|
84
|
+
playUrl: z(l.data.playUrl)
|
|
85
|
+
}), 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.fileName = l.data.fileName, e.replayStartTime = W(l.data.replayStartTime), e.startTime = W(l.data.startTime), e.endTime = W(l.data.endTime), e.replayEndTime = W(l.data.replayEndTime);
|
|
86
|
+
const n = l.data.totalSeconds || 0;
|
|
87
|
+
e.totalSeconds = n, Y.value = M(n);
|
|
88
|
+
const p = l.data.completeSeconds || n;
|
|
89
|
+
U.value = M(p), X.value ? (delete e.liveId, e.liveName = `${e.liveName}`, P.info("已加载原直播数据,当前为复制模式")) : e.liveId = l.data.liveId, e.liveType === r.LIVE_TYPE.fake_live && v.value && C();
|
|
89
90
|
} catch (l) {
|
|
90
|
-
console.error("获取直播详情失败:", l),
|
|
91
|
+
console.error("获取直播详情失败:", l), P.error("获取直播详情失败");
|
|
91
92
|
}
|
|
92
|
-
},
|
|
93
|
+
}, re = le({
|
|
93
94
|
liveType: [
|
|
94
95
|
{
|
|
95
96
|
required: !0,
|
|
96
|
-
message:
|
|
97
|
+
message: V("liveVideo.liveTypeRequired"),
|
|
97
98
|
trigger: "change"
|
|
98
99
|
}
|
|
99
100
|
],
|
|
100
101
|
liveName: [
|
|
101
102
|
{
|
|
102
103
|
required: !0,
|
|
103
|
-
message:
|
|
104
|
+
message: V("liveVideo.liveNameRequired"),
|
|
104
105
|
trigger: "blur"
|
|
105
106
|
}
|
|
106
107
|
],
|
|
107
108
|
startTime: [
|
|
108
109
|
{
|
|
109
110
|
required: !0,
|
|
110
|
-
message:
|
|
111
|
+
message: V("liveVideo.startTimeRequired"),
|
|
111
112
|
trigger: "change"
|
|
112
113
|
}
|
|
113
114
|
],
|
|
114
115
|
preStreamPic: [
|
|
115
116
|
{
|
|
116
117
|
required: !0,
|
|
117
|
-
message:
|
|
118
|
+
message: V("liveVideo.preStreamPicRequired"),
|
|
118
119
|
trigger: "change"
|
|
119
120
|
}
|
|
120
121
|
],
|
|
121
122
|
completeSeconds: [
|
|
122
123
|
{
|
|
123
124
|
required: !0,
|
|
124
|
-
message:
|
|
125
|
+
message: V("liveVideo.completeSecondsRequired"),
|
|
125
126
|
trigger: "change"
|
|
126
127
|
}
|
|
127
128
|
],
|
|
128
129
|
streamType: [
|
|
129
130
|
{
|
|
130
131
|
required: !0,
|
|
131
|
-
message:
|
|
132
|
+
message: V("liveVideo.pushTypeRequired"),
|
|
132
133
|
trigger: "change",
|
|
133
134
|
// 自定义验证器,只在 liveType 为直播类型时验证
|
|
134
|
-
validator: (a, l,
|
|
135
|
-
e.liveType === r.LIVE_TYPE.live && !l ?
|
|
135
|
+
validator: (a, l, n) => {
|
|
136
|
+
e.liveType === r.LIVE_TYPE.live && !l ? n(new Error(V("liveVideo.pushTypeRequired"))) : n();
|
|
136
137
|
}
|
|
137
138
|
}
|
|
138
139
|
],
|
|
139
140
|
endTime: [
|
|
140
141
|
{
|
|
141
142
|
required: !0,
|
|
142
|
-
message:
|
|
143
|
+
message: V("liveVideo.endTimeRequired"),
|
|
143
144
|
trigger: "change"
|
|
144
145
|
},
|
|
145
146
|
{
|
|
146
|
-
validator: (a, l,
|
|
147
|
+
validator: (a, l, n) => {
|
|
147
148
|
if (e.liveType === r.LIVE_TYPE.vod && e.startTime && l) {
|
|
148
|
-
const
|
|
149
|
-
new Date(l).getTime() <=
|
|
149
|
+
const p = new Date(e.startTime).getTime();
|
|
150
|
+
new Date(l).getTime() <= p ? n(new Error("结束时间必须大于开始时间")) : n();
|
|
150
151
|
} else
|
|
151
|
-
|
|
152
|
+
n();
|
|
152
153
|
},
|
|
153
154
|
trigger: "change"
|
|
154
155
|
}
|
|
155
156
|
],
|
|
156
157
|
replayEndTime: [
|
|
157
158
|
{
|
|
158
|
-
validator: (a, l,
|
|
159
|
-
e.replayMode === r.REPLAY_MODE.end && !l ?
|
|
159
|
+
validator: (a, l, n) => {
|
|
160
|
+
e.replayMode === r.REPLAY_MODE.end && !l ? n(new Error(V("liveVideo.replayEndTimeRequired"))) : n();
|
|
160
161
|
},
|
|
161
162
|
trigger: "change"
|
|
162
163
|
}
|
|
163
164
|
]
|
|
164
165
|
});
|
|
165
|
-
function
|
|
166
|
-
|
|
166
|
+
function de() {
|
|
167
|
+
ae.closeTagView(N.fullPath, K, !1);
|
|
167
168
|
}
|
|
168
|
-
function
|
|
169
|
+
function se(a) {
|
|
169
170
|
e.preStreamPic = a;
|
|
170
171
|
}
|
|
171
|
-
function
|
|
172
|
+
function ne(a) {
|
|
172
173
|
e.liveStreamPic = a;
|
|
173
174
|
}
|
|
174
|
-
function
|
|
175
|
+
function ue(a) {
|
|
175
176
|
e.bgPic = a;
|
|
176
177
|
}
|
|
177
|
-
const
|
|
178
|
-
function
|
|
179
|
-
|
|
178
|
+
const O = k({ visible: !1 }), G = k(!1);
|
|
179
|
+
function x() {
|
|
180
|
+
O.value.visible = !0;
|
|
180
181
|
}
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
},
|
|
184
|
-
var
|
|
185
|
-
const l = (
|
|
186
|
-
if (!l || !
|
|
187
|
-
|
|
182
|
+
const ee = () => {
|
|
183
|
+
G.value = !0;
|
|
184
|
+
}, me = (a) => {
|
|
185
|
+
var f, c;
|
|
186
|
+
const l = (f = a == null ? void 0 : a.video) == null ? void 0 : f.url, n = a == null ? void 0 : a.fileId, p = ((c = a == null ? void 0 : a.video) == null ? void 0 : c.duration) || 0;
|
|
187
|
+
if (!l || !n) {
|
|
188
|
+
P.error("视频上传成功,但未获取到有效播放地址/文件ID!");
|
|
188
189
|
return;
|
|
189
190
|
}
|
|
190
191
|
let i = "";
|
|
191
192
|
try {
|
|
192
|
-
i =
|
|
193
|
-
} catch (
|
|
194
|
-
i = l, console.warn("播放地址处理失败,使用原始地址:",
|
|
193
|
+
i = z(l), i || (i = l);
|
|
194
|
+
} catch (S) {
|
|
195
|
+
i = l, console.warn("播放地址处理失败,使用原始地址:", S);
|
|
195
196
|
}
|
|
196
|
-
const
|
|
197
|
+
const m = {
|
|
197
198
|
playUrl: i,
|
|
198
|
-
totalSeconds:
|
|
199
|
-
fileId:
|
|
199
|
+
totalSeconds: p,
|
|
200
|
+
fileId: n
|
|
200
201
|
};
|
|
201
|
-
e.liveType === r.LIVE_TYPE.fake_live ?
|
|
202
|
-
|
|
203
|
-
}),
|
|
204
|
-
|
|
202
|
+
e.liveType === r.LIVE_TYPE.fake_live ? v.value = m : e.liveType === r.LIVE_TYPE.vod && (w.value = m), e.playUrl = i, e.totalSeconds = p, e.fileId = n, Y.value = M(p), U.value = M(p), e.liveType === r.LIVE_TYPE.fake_live && F(() => {
|
|
203
|
+
C();
|
|
204
|
+
}), F(() => {
|
|
205
|
+
P.success("本地视频上传成功!");
|
|
205
206
|
});
|
|
206
|
-
},
|
|
207
|
-
var
|
|
208
|
-
console.log(a, "=>data ")
|
|
209
|
-
const l = (
|
|
210
|
-
|
|
211
|
-
|
|
207
|
+
}, pe = (a) => {
|
|
208
|
+
var S, R, D, A, J, q;
|
|
209
|
+
console.log(a, "=>data ");
|
|
210
|
+
const l = ((S = a.basicInfo) == null ? void 0 : S.name) || "未命名视频", n = ((R = a.transcodeData) == null ? void 0 : R.width) || 0, p = ((D = a.transcodeData) == null ? void 0 : D.height) || 0;
|
|
211
|
+
e.fileName = `${l} (${n}×${p})`, v.value = null, w.value = null;
|
|
212
|
+
const i = (A = a.transcodeData) == null ? void 0 : A.url;
|
|
213
|
+
if (!i) {
|
|
214
|
+
P.warning("选中的转码视频无有效播放地址");
|
|
212
215
|
return;
|
|
213
216
|
}
|
|
214
|
-
let
|
|
217
|
+
let m = "";
|
|
215
218
|
try {
|
|
216
|
-
|
|
217
|
-
} catch (
|
|
218
|
-
|
|
219
|
+
m = z(i), m || (m = i);
|
|
220
|
+
} catch (E) {
|
|
221
|
+
m = i, console.warn("播放地址处理失败,使用原始地址:", E);
|
|
219
222
|
}
|
|
220
|
-
const
|
|
221
|
-
e.liveType === r.LIVE_TYPE.fake_live ? (
|
|
222
|
-
playUrl:
|
|
223
|
-
totalSeconds:
|
|
224
|
-
fileId:
|
|
223
|
+
const f = a.fileId, c = ((J = a.metaData) == null ? void 0 : J.duration) || 0;
|
|
224
|
+
e.liveType === r.LIVE_TYPE.fake_live ? (v.value = {
|
|
225
|
+
playUrl: m,
|
|
226
|
+
totalSeconds: c,
|
|
227
|
+
fileId: f,
|
|
225
228
|
transcodeData: a.transcodeData
|
|
226
229
|
// 可选:保留转码详细信息
|
|
227
|
-
}, e.playUrl =
|
|
228
|
-
|
|
229
|
-
})) : e.liveType === r.LIVE_TYPE.vod && (
|
|
230
|
-
playUrl:
|
|
231
|
-
fileId:
|
|
232
|
-
liveName: ((
|
|
230
|
+
}, e.playUrl = m, e.totalSeconds = c, Y.value = M(c), U.value = M(c), F(() => {
|
|
231
|
+
C();
|
|
232
|
+
})) : e.liveType === r.LIVE_TYPE.vod && (w.value = {
|
|
233
|
+
playUrl: m,
|
|
234
|
+
fileId: f,
|
|
235
|
+
liveName: ((q = a.basicInfo) == null ? void 0 : q.name) || "未命名视频",
|
|
233
236
|
transcodeData: a.transcodeData
|
|
234
237
|
// 转码详细信息
|
|
235
|
-
}, e.playUrl =
|
|
236
|
-
var
|
|
237
|
-
(
|
|
238
|
-
`已选中转码视频:${((
|
|
238
|
+
}, e.playUrl = m, e.totalSeconds = c, Y.value = M(c), U.value = M(c)), F(() => {
|
|
239
|
+
var E, H;
|
|
240
|
+
(E = $.value) == null || E.validateField(["fakeLiveSetting", "endTime"]), P.success(
|
|
241
|
+
`已选中转码视频:${((H = a.basicInfo) == null ? void 0 : H.name) || "未命名视频"} (${a.transcodeData.width}×${a.transcodeData.height})`
|
|
239
242
|
);
|
|
240
243
|
});
|
|
241
|
-
},
|
|
242
|
-
if (
|
|
244
|
+
}, C = () => {
|
|
245
|
+
if (v.value && e.startTime) {
|
|
243
246
|
const a = new Date(e.startTime);
|
|
244
247
|
if (isNaN(a.getTime())) {
|
|
245
248
|
console.error("无效的开始时间:", e.startTime);
|
|
246
249
|
return;
|
|
247
250
|
}
|
|
248
|
-
const l = (
|
|
249
|
-
e.endTime = `${
|
|
251
|
+
const l = (v.value.totalSeconds || 0) * 1e3, n = new Date(a.getTime() + l), p = n.getUTCFullYear(), i = String(n.getUTCMonth() + 1).padStart(2, "0"), m = String(n.getUTCDate()).padStart(2, "0"), f = String(n.getUTCHours()).padStart(2, "0"), c = String(n.getUTCMinutes()).padStart(2, "0"), S = String(n.getUTCSeconds()).padStart(2, "0");
|
|
252
|
+
e.endTime = `${p}-${i}-${m}T${f}:${c}:${S}Z`, F(() => {
|
|
250
253
|
$.value && $.value.validateField("endTime");
|
|
251
254
|
});
|
|
252
255
|
}
|
|
253
|
-
},
|
|
254
|
-
e.playUrl = "", e.liveType === r.LIVE_TYPE.fake_live &&
|
|
256
|
+
}, ve = () => {
|
|
257
|
+
e.playUrl = "", e.liveType === r.LIVE_TYPE.fake_live && v.value ? C() : e.endTime = void 0;
|
|
255
258
|
};
|
|
256
|
-
|
|
259
|
+
Q(
|
|
257
260
|
() => e.startTime,
|
|
258
261
|
(a) => {
|
|
259
|
-
e.liveType === r.LIVE_TYPE.fake_live &&
|
|
262
|
+
e.liveType === r.LIVE_TYPE.fake_live && v.value && a && C();
|
|
260
263
|
}
|
|
261
|
-
),
|
|
264
|
+
), Q(
|
|
262
265
|
() => e.replayMode,
|
|
263
266
|
(a) => {
|
|
264
267
|
a !== r.REPLAY_MODE.end && (e.replayEndTime = void 0);
|
|
265
268
|
}
|
|
266
269
|
);
|
|
267
|
-
const
|
|
268
|
-
var l,
|
|
269
|
-
if (e.liveType === r.LIVE_TYPE.fake_live && !
|
|
270
|
-
|
|
270
|
+
const ce = async () => {
|
|
271
|
+
var l, n, p;
|
|
272
|
+
if (e.liveType === r.LIVE_TYPE.fake_live && !v.value) {
|
|
273
|
+
P.error(V("liveVideo.fakeLiveRequired"));
|
|
271
274
|
return;
|
|
272
275
|
}
|
|
273
|
-
if (e.liveType === r.LIVE_TYPE.vod && !
|
|
274
|
-
|
|
276
|
+
if (e.liveType === r.LIVE_TYPE.vod && !w.value) {
|
|
277
|
+
P.error(V("liveVideo.vodRequired"));
|
|
275
278
|
return;
|
|
276
279
|
}
|
|
277
280
|
if (await ((l = $.value) == null ? void 0 : l.validate()))
|
|
278
281
|
try {
|
|
279
282
|
let i = { ...e };
|
|
280
|
-
e.liveType === r.LIVE_TYPE.fake_live && ((
|
|
281
|
-
let
|
|
282
|
-
if (
|
|
283
|
-
const
|
|
284
|
-
delete
|
|
285
|
-
} else
|
|
286
|
-
|
|
283
|
+
e.liveType === r.LIVE_TYPE.fake_live && ((n = v.value) != null && n.fileId) ? i.fileId = v.value.fileId : e.liveType === r.LIVE_TYPE.vod && ((p = w.value) != null && p.fileId) && (i.fileId = w.value.fileId), i.totalSeconds = te(Y.value) || 0, i.completeSeconds = te(U.value) || 0, e.liveType !== r.LIVE_TYPE.live && delete i.streamType;
|
|
284
|
+
let m;
|
|
285
|
+
if (X.value) {
|
|
286
|
+
const f = { ...i };
|
|
287
|
+
delete f.liveId, m = await Z.create(f);
|
|
288
|
+
} else N.query.liveId ? m = await Z.update(i) : m = await Z.create(i);
|
|
289
|
+
m.status === 200 && (P.success(V("common.submitSuccess")), ae.closeTagView(N.fullPath, K, !1));
|
|
287
290
|
} catch (i) {
|
|
288
|
-
|
|
291
|
+
P.error(V("common.submitFail") + i.message);
|
|
289
292
|
}
|
|
290
293
|
};
|
|
291
294
|
return (a, l) => {
|
|
292
|
-
const
|
|
293
|
-
return u(),
|
|
294
|
-
|
|
295
|
-
|
|
295
|
+
const n = h("el-radio"), p = h("el-radio-group"), i = h("el-form-item"), m = h("el-input"), f = h("jmash-dict-select"), c = h("el-date-picker"), S = h("el-time-picker"), R = h("el-col"), D = h("jmash-single-image-upload"), A = h("jmash-editor"), J = h("el-form"), q = h("el-button");
|
|
296
|
+
return u(), b("div", we, [
|
|
297
|
+
_("div", Pe, [
|
|
298
|
+
d(J, {
|
|
296
299
|
ref_key: "liveFormRef",
|
|
297
300
|
ref: $,
|
|
298
301
|
model: t(e),
|
|
299
|
-
rules:
|
|
302
|
+
rules: re,
|
|
300
303
|
style: { "max-width": "800px" },
|
|
301
304
|
"label-width": "auto"
|
|
302
305
|
}, {
|
|
303
|
-
default:
|
|
304
|
-
var
|
|
306
|
+
default: s(() => {
|
|
307
|
+
var E, H;
|
|
305
308
|
return [
|
|
306
|
-
|
|
309
|
+
d(i, {
|
|
307
310
|
label: a.$t("liveVideo.liveType"),
|
|
308
311
|
prop: "liveType"
|
|
309
312
|
}, {
|
|
310
|
-
default:
|
|
311
|
-
|
|
313
|
+
default: s(() => [
|
|
314
|
+
d(p, {
|
|
312
315
|
modelValue: t(e).liveType,
|
|
313
316
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => t(e).liveType = o),
|
|
314
|
-
onChange:
|
|
317
|
+
onChange: ve
|
|
315
318
|
}, {
|
|
316
|
-
default:
|
|
317
|
-
(u(!0),
|
|
319
|
+
default: s(() => [
|
|
320
|
+
(u(!0), b(j, null, B(t(g).liveTypeEnum.values, (o) => (u(), y(n, {
|
|
318
321
|
key: o.key,
|
|
319
322
|
border: !0,
|
|
320
323
|
value: o.key
|
|
321
324
|
}, {
|
|
322
|
-
default:
|
|
323
|
-
|
|
325
|
+
default: s(() => [
|
|
326
|
+
L(I(o.value), 1)
|
|
324
327
|
]),
|
|
325
328
|
_: 2
|
|
326
329
|
}, 1032, ["value"]))), 128))
|
|
@@ -330,97 +333,103 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
330
333
|
]),
|
|
331
334
|
_: 1
|
|
332
335
|
}, 8, ["label"]),
|
|
333
|
-
t(e).liveType === t(r).LIVE_TYPE.live ? (u(),
|
|
334
|
-
t(e).liveType === t(r).LIVE_TYPE.fake_live ? (u(),
|
|
336
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), b("div", Se, " 实时直播形式,根据实际画面进行传播,无法快进或回放 ")) : T("", !0),
|
|
337
|
+
t(e).liveType === t(r).LIVE_TYPE.fake_live ? (u(), y(i, {
|
|
335
338
|
key: 1,
|
|
336
339
|
label: a.$t("liveVideo.fakeLive")
|
|
337
340
|
}, {
|
|
338
|
-
default:
|
|
341
|
+
default: s(() => {
|
|
339
342
|
var o;
|
|
340
343
|
return [
|
|
341
|
-
|
|
344
|
+
_("button", {
|
|
342
345
|
type: "button",
|
|
343
346
|
class: "fakeLive",
|
|
344
|
-
onClick:
|
|
347
|
+
onClick: x
|
|
345
348
|
}, " 伪直播设置 "),
|
|
346
|
-
|
|
349
|
+
_("button", {
|
|
347
350
|
type: "button",
|
|
348
351
|
class: "fakeLive",
|
|
349
|
-
onClick:
|
|
352
|
+
onClick: ee
|
|
350
353
|
}, " 从本地上传视频 "),
|
|
351
|
-
(o =
|
|
354
|
+
(o = v.value) != null && o.playUrl ? (u(), b("div", Ie, "已设置")) : (u(), b("div", ke, " 未设置 "))
|
|
352
355
|
];
|
|
353
356
|
}),
|
|
354
357
|
_: 1
|
|
355
|
-
}, 8, ["label"])) :
|
|
356
|
-
t(e).liveType === t(r).LIVE_TYPE.vod ? (u(),
|
|
358
|
+
}, 8, ["label"])) : T("", !0),
|
|
359
|
+
t(e).liveType === t(r).LIVE_TYPE.vod ? (u(), y(i, {
|
|
357
360
|
key: 2,
|
|
358
361
|
label: a.$t("liveVideo.vod")
|
|
359
362
|
}, {
|
|
360
|
-
default:
|
|
363
|
+
default: s(() => {
|
|
361
364
|
var o;
|
|
362
365
|
return [
|
|
363
|
-
|
|
366
|
+
_("button", {
|
|
364
367
|
type: "button",
|
|
365
368
|
class: "fakeLive",
|
|
366
|
-
onClick:
|
|
369
|
+
onClick: x
|
|
367
370
|
}, " 点播设置 "),
|
|
368
|
-
|
|
371
|
+
_("button", {
|
|
369
372
|
type: "button",
|
|
370
373
|
class: "fakeLive",
|
|
371
|
-
onClick:
|
|
374
|
+
onClick: ee
|
|
372
375
|
}, " 从本地上传视频 "),
|
|
373
|
-
(o =
|
|
376
|
+
(o = w.value) != null && o.playUrl ? (u(), b("div", Ye, "已设置")) : (u(), b("div", Me, "未设置"))
|
|
374
377
|
];
|
|
375
378
|
}),
|
|
376
379
|
_: 1
|
|
377
|
-
}, 8, ["label"])) :
|
|
378
|
-
(
|
|
380
|
+
}, 8, ["label"])) : T("", !0),
|
|
381
|
+
(E = v.value) != null && E.playUrl && t(e).liveType === t(r).LIVE_TYPE.fake_live ? (u(), y(i, {
|
|
379
382
|
key: 3,
|
|
380
383
|
label: "视频预览"
|
|
381
384
|
}, {
|
|
382
|
-
default:
|
|
385
|
+
default: s(() => {
|
|
383
386
|
var o;
|
|
384
387
|
return [
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
388
|
+
_("div", Ue, [
|
|
389
|
+
(o = v.value) != null && o.playUrl ? (u(), b("video", {
|
|
390
|
+
key: 0,
|
|
391
|
+
src: v.value.playUrl,
|
|
392
|
+
controls: "",
|
|
393
|
+
width: "400",
|
|
394
|
+
height: "250",
|
|
395
|
+
muted: "",
|
|
396
|
+
playsinline: ""
|
|
397
|
+
}, " 您的浏览器不支持视频播放 ", 8, De)) : T("", !0),
|
|
398
|
+
_("div", null, I(t(e).fileName), 1)
|
|
399
|
+
])
|
|
394
400
|
];
|
|
395
401
|
}),
|
|
396
402
|
_: 1
|
|
397
|
-
})) :
|
|
398
|
-
(
|
|
403
|
+
})) : T("", !0),
|
|
404
|
+
(H = w.value) != null && H.playUrl && t(e).liveType === t(r).LIVE_TYPE.vod ? (u(), y(i, {
|
|
399
405
|
key: 4,
|
|
400
406
|
label: "视频预览"
|
|
401
407
|
}, {
|
|
402
|
-
default:
|
|
408
|
+
default: s(() => {
|
|
403
409
|
var o;
|
|
404
410
|
return [
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
_("div", Le, [
|
|
412
|
+
(o = w.value) != null && o.playUrl ? (u(), b("video", {
|
|
413
|
+
key: 0,
|
|
414
|
+
src: w.value.playUrl,
|
|
415
|
+
controls: "",
|
|
416
|
+
width: "400",
|
|
417
|
+
height: "250",
|
|
418
|
+
muted: "",
|
|
419
|
+
playsinline: ""
|
|
420
|
+
}, " 您的浏览器不支持视频播放 ", 8, Ne)) : T("", !0),
|
|
421
|
+
_("div", null, I(t(e).fileName), 1)
|
|
422
|
+
])
|
|
414
423
|
];
|
|
415
424
|
}),
|
|
416
425
|
_: 1
|
|
417
|
-
})) :
|
|
418
|
-
|
|
426
|
+
})) : T("", !0),
|
|
427
|
+
d(i, {
|
|
419
428
|
label: a.$t("liveVideo.liveName"),
|
|
420
429
|
prop: "liveName"
|
|
421
430
|
}, {
|
|
422
|
-
default:
|
|
423
|
-
|
|
431
|
+
default: s(() => [
|
|
432
|
+
d(m, {
|
|
424
433
|
modelValue: t(e).liveName,
|
|
425
434
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => t(e).liveName = o),
|
|
426
435
|
placeholder: a.$t("liveVideo.liveNameRequired"),
|
|
@@ -431,13 +440,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
431
440
|
]),
|
|
432
441
|
_: 1
|
|
433
442
|
}, 8, ["label"]),
|
|
434
|
-
t(e).liveType === t(r).LIVE_TYPE.live ? (u(),
|
|
443
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), y(i, {
|
|
435
444
|
key: 5,
|
|
436
445
|
label: a.$t("liveVideo.transCode"),
|
|
437
446
|
prop: "transCode"
|
|
438
447
|
}, {
|
|
439
|
-
default:
|
|
440
|
-
|
|
448
|
+
default: s(() => [
|
|
449
|
+
d(f, {
|
|
441
450
|
modelValue: t(e).transCode,
|
|
442
451
|
"onUpdate:modelValue": l[2] || (l[2] = (o) => t(e).transCode = o),
|
|
443
452
|
placeholder: a.$t("liveVideo.transCodeRequired"),
|
|
@@ -447,13 +456,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
447
456
|
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
|
448
457
|
]),
|
|
449
458
|
_: 1
|
|
450
|
-
}, 8, ["label"])) :
|
|
451
|
-
|
|
459
|
+
}, 8, ["label"])) : T("", !0),
|
|
460
|
+
d(i, {
|
|
452
461
|
label: a.$t("liveVideo.startTime"),
|
|
453
462
|
prop: "startTime"
|
|
454
463
|
}, {
|
|
455
|
-
default:
|
|
456
|
-
|
|
464
|
+
default: s(() => [
|
|
465
|
+
d(c, {
|
|
457
466
|
modelValue: t(e).startTime,
|
|
458
467
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => t(e).startTime = o),
|
|
459
468
|
type: "datetime",
|
|
@@ -465,13 +474,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
465
474
|
]),
|
|
466
475
|
_: 1
|
|
467
476
|
}, 8, ["label"]),
|
|
468
|
-
t(e).liveType !== t(r).LIVE_TYPE.live ? (u(),
|
|
477
|
+
t(e).liveType !== t(r).LIVE_TYPE.live ? (u(), y(i, {
|
|
469
478
|
key: 6,
|
|
470
479
|
label: a.$t("liveVideo.endTime"),
|
|
471
480
|
prop: "endTime"
|
|
472
481
|
}, {
|
|
473
|
-
default:
|
|
474
|
-
|
|
482
|
+
default: s(() => [
|
|
483
|
+
d(c, {
|
|
475
484
|
modelValue: t(e).endTime,
|
|
476
485
|
"onUpdate:modelValue": l[4] || (l[4] = (o) => t(e).endTime = o),
|
|
477
486
|
type: "datetime",
|
|
@@ -483,20 +492,20 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
483
492
|
}, null, 8, ["modelValue", "placeholder", "disabled"])
|
|
484
493
|
]),
|
|
485
494
|
_: 1
|
|
486
|
-
}, 8, ["label"])) :
|
|
487
|
-
t(e).liveType === t(r).LIVE_TYPE.live ? (u(),
|
|
495
|
+
}, 8, ["label"])) : T("", !0),
|
|
496
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), y(R, {
|
|
488
497
|
key: 7,
|
|
489
498
|
span: 24
|
|
490
499
|
}, {
|
|
491
|
-
default:
|
|
492
|
-
|
|
500
|
+
default: s(() => [
|
|
501
|
+
d(i, {
|
|
493
502
|
label: a.$t("liveVideo.totalSeconds"),
|
|
494
503
|
prop: "totalSeconds"
|
|
495
504
|
}, {
|
|
496
|
-
default:
|
|
497
|
-
|
|
498
|
-
modelValue:
|
|
499
|
-
"onUpdate:modelValue": l[5] || (l[5] = (o) =>
|
|
505
|
+
default: s(() => [
|
|
506
|
+
d(S, {
|
|
507
|
+
modelValue: Y.value,
|
|
508
|
+
"onUpdate:modelValue": l[5] || (l[5] = (o) => Y.value = o),
|
|
500
509
|
placeholder: a.$t("liveVideo.totalSecondsRequired"),
|
|
501
510
|
"show-word-limit": "",
|
|
502
511
|
clearable: "",
|
|
@@ -509,17 +518,17 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
509
518
|
}, 8, ["label"])
|
|
510
519
|
]),
|
|
511
520
|
_: 1
|
|
512
|
-
})) :
|
|
513
|
-
|
|
514
|
-
default:
|
|
515
|
-
|
|
521
|
+
})) : T("", !0),
|
|
522
|
+
d(R, { span: 24 }, {
|
|
523
|
+
default: s(() => [
|
|
524
|
+
d(i, {
|
|
516
525
|
label: a.$t("liveVideo.completeSeconds"),
|
|
517
526
|
prop: "completeSeconds"
|
|
518
527
|
}, {
|
|
519
|
-
default:
|
|
520
|
-
|
|
521
|
-
modelValue:
|
|
522
|
-
"onUpdate:modelValue": l[6] || (l[6] = (o) =>
|
|
528
|
+
default: s(() => [
|
|
529
|
+
d(S, {
|
|
530
|
+
modelValue: U.value,
|
|
531
|
+
"onUpdate:modelValue": l[6] || (l[6] = (o) => U.value = o),
|
|
523
532
|
placeholder: a.$t("liveVideo.completeSecondsRequired"),
|
|
524
533
|
"show-word-limit": "",
|
|
525
534
|
clearable: "",
|
|
@@ -533,12 +542,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
533
542
|
]),
|
|
534
543
|
_: 1
|
|
535
544
|
}),
|
|
536
|
-
|
|
545
|
+
d(i, {
|
|
537
546
|
label: a.$t("liveVideo.streamerName"),
|
|
538
547
|
prop: "streamerName"
|
|
539
548
|
}, {
|
|
540
|
-
default:
|
|
541
|
-
|
|
549
|
+
default: s(() => [
|
|
550
|
+
d(f, {
|
|
542
551
|
modelValue: t(e).streamerName,
|
|
543
552
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => t(e).streamerName = o),
|
|
544
553
|
"type-code": t(r).ANCHOR_NAME,
|
|
@@ -549,12 +558,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
549
558
|
]),
|
|
550
559
|
_: 1
|
|
551
560
|
}, 8, ["label"]),
|
|
552
|
-
|
|
561
|
+
d(i, {
|
|
553
562
|
label: a.$t("liveVideo.roomPwd"),
|
|
554
563
|
prop: "roomPwd"
|
|
555
564
|
}, {
|
|
556
|
-
default:
|
|
557
|
-
|
|
565
|
+
default: s(() => [
|
|
566
|
+
d(m, {
|
|
558
567
|
modelValue: t(e).roomPwd,
|
|
559
568
|
"onUpdate:modelValue": l[8] || (l[8] = (o) => t(e).roomPwd = o),
|
|
560
569
|
placeholder: a.$t("liveVideo.roomPwdRequired"),
|
|
@@ -563,12 +572,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
563
572
|
]),
|
|
564
573
|
_: 1
|
|
565
574
|
}, 8, ["label"]),
|
|
566
|
-
|
|
575
|
+
d(i, {
|
|
567
576
|
label: a.$t("liveVideo.virtualNum"),
|
|
568
577
|
prop: "virtualNum"
|
|
569
578
|
}, {
|
|
570
|
-
default:
|
|
571
|
-
|
|
579
|
+
default: s(() => [
|
|
580
|
+
d(m, {
|
|
572
581
|
modelValue: t(e).virtualNum,
|
|
573
582
|
"onUpdate:modelValue": l[9] || (l[9] = (o) => t(e).virtualNum = o),
|
|
574
583
|
placeholder: a.$t("liveVideo.virtualNumRequired"),
|
|
@@ -579,13 +588,13 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
579
588
|
]),
|
|
580
589
|
_: 1
|
|
581
590
|
}, 8, ["label"]),
|
|
582
|
-
t(e).liveType === t(r).LIVE_TYPE.live ? (u(),
|
|
591
|
+
t(e).liveType === t(r).LIVE_TYPE.live ? (u(), y(i, {
|
|
583
592
|
key: 8,
|
|
584
593
|
label: a.$t("liveVideo.pushType"),
|
|
585
594
|
prop: "streamType"
|
|
586
595
|
}, {
|
|
587
|
-
default:
|
|
588
|
-
|
|
596
|
+
default: s(() => [
|
|
597
|
+
d(f, {
|
|
589
598
|
modelValue: t(e).streamType,
|
|
590
599
|
"onUpdate:modelValue": l[10] || (l[10] = (o) => t(e).streamType = o),
|
|
591
600
|
placeholder: a.$t("liveVideo.pushTypeRequired"),
|
|
@@ -594,23 +603,23 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
594
603
|
}, null, 8, ["modelValue", "placeholder", "type-code"])
|
|
595
604
|
]),
|
|
596
605
|
_: 1
|
|
597
|
-
}, 8, ["label"])) :
|
|
598
|
-
|
|
606
|
+
}, 8, ["label"])) : T("", !0),
|
|
607
|
+
d(i, {
|
|
599
608
|
label: a.$t("liveVideo.showMode"),
|
|
600
609
|
prop: "showMode"
|
|
601
610
|
}, {
|
|
602
|
-
default:
|
|
603
|
-
|
|
611
|
+
default: s(() => [
|
|
612
|
+
d(p, {
|
|
604
613
|
modelValue: t(e).showMode,
|
|
605
614
|
"onUpdate:modelValue": l[11] || (l[11] = (o) => t(e).showMode = o)
|
|
606
615
|
}, {
|
|
607
|
-
default:
|
|
608
|
-
(u(!0),
|
|
616
|
+
default: s(() => [
|
|
617
|
+
(u(!0), b(j, null, B(t(g).showModeEnum.values, (o) => (u(), y(n, {
|
|
609
618
|
key: o.key,
|
|
610
619
|
value: o.key
|
|
611
620
|
}, {
|
|
612
|
-
default:
|
|
613
|
-
|
|
621
|
+
default: s(() => [
|
|
622
|
+
L(I(o.value), 1)
|
|
614
623
|
]),
|
|
615
624
|
_: 2
|
|
616
625
|
}, 1032, ["value"]))), 128))
|
|
@@ -620,15 +629,15 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
620
629
|
]),
|
|
621
630
|
_: 1
|
|
622
631
|
}, 8, ["label"]),
|
|
623
|
-
|
|
632
|
+
d(i, {
|
|
624
633
|
label: a.$t("liveVideo.preStreamPic"),
|
|
625
634
|
prop: "preStreamPic"
|
|
626
635
|
}, {
|
|
627
|
-
default:
|
|
628
|
-
|
|
629
|
-
|
|
636
|
+
default: s(() => [
|
|
637
|
+
_("div", $e, [
|
|
638
|
+
d(D, {
|
|
630
639
|
"picture-url": t(e).preStreamPic,
|
|
631
|
-
onImageSrc:
|
|
640
|
+
onImageSrc: se,
|
|
632
641
|
width: 80,
|
|
633
642
|
type: "trans"
|
|
634
643
|
}, null, 8, ["picture-url"])
|
|
@@ -636,15 +645,15 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
636
645
|
]),
|
|
637
646
|
_: 1
|
|
638
647
|
}, 8, ["label"]),
|
|
639
|
-
|
|
648
|
+
d(i, {
|
|
640
649
|
label: a.$t("liveVideo.liveStreamPic"),
|
|
641
650
|
prop: "liveStreamPic"
|
|
642
651
|
}, {
|
|
643
|
-
default:
|
|
644
|
-
|
|
645
|
-
|
|
652
|
+
default: s(() => [
|
|
653
|
+
_("div", Ce, [
|
|
654
|
+
d(D, {
|
|
646
655
|
"picture-url": t(e).liveStreamPic,
|
|
647
|
-
onImageSrc:
|
|
656
|
+
onImageSrc: ne,
|
|
648
657
|
width: 80,
|
|
649
658
|
type: "trans"
|
|
650
659
|
}, null, 8, ["picture-url"])
|
|
@@ -652,41 +661,41 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
652
661
|
]),
|
|
653
662
|
_: 1
|
|
654
663
|
}, 8, ["label"]),
|
|
655
|
-
t(e).showMode === t(r).SHOW_MODE.vertical ? (u(),
|
|
664
|
+
t(e).showMode === t(r).SHOW_MODE.vertical ? (u(), y(i, {
|
|
656
665
|
key: 9,
|
|
657
666
|
label: a.$t("liveVideo.bgPic"),
|
|
658
667
|
prop: "bgPic"
|
|
659
668
|
}, {
|
|
660
|
-
default:
|
|
661
|
-
|
|
662
|
-
|
|
669
|
+
default: s(() => [
|
|
670
|
+
_("div", Re, [
|
|
671
|
+
d(D, {
|
|
663
672
|
"picture-url": t(e).bgPic,
|
|
664
|
-
onImageSrc:
|
|
673
|
+
onImageSrc: ue,
|
|
665
674
|
width: 80,
|
|
666
675
|
type: "trans"
|
|
667
676
|
}, null, 8, ["picture-url"])
|
|
668
677
|
])
|
|
669
678
|
]),
|
|
670
679
|
_: 1
|
|
671
|
-
}, 8, ["label"])) :
|
|
672
|
-
t(e).liveType !== t(r).LIVE_TYPE.vod ? (u(),
|
|
680
|
+
}, 8, ["label"])) : T("", !0),
|
|
681
|
+
t(e).liveType !== t(r).LIVE_TYPE.vod ? (u(), y(i, {
|
|
673
682
|
key: 10,
|
|
674
683
|
label: a.$t("liveVideo.replayMode"),
|
|
675
684
|
prop: "replayMode"
|
|
676
685
|
}, {
|
|
677
|
-
default:
|
|
678
|
-
|
|
686
|
+
default: s(() => [
|
|
687
|
+
d(p, {
|
|
679
688
|
modelValue: t(e).replayMode,
|
|
680
689
|
"onUpdate:modelValue": l[12] || (l[12] = (o) => t(e).replayMode = o)
|
|
681
690
|
}, {
|
|
682
|
-
default:
|
|
683
|
-
(u(!0),
|
|
691
|
+
default: s(() => [
|
|
692
|
+
(u(!0), b(j, null, B(t(g).replayModeEnum.values, (o) => (u(), y(n, {
|
|
684
693
|
key: o.key,
|
|
685
694
|
border: !0,
|
|
686
695
|
value: o.key
|
|
687
696
|
}, {
|
|
688
|
-
default:
|
|
689
|
-
|
|
697
|
+
default: s(() => [
|
|
698
|
+
L(I(o.value), 1)
|
|
690
699
|
]),
|
|
691
700
|
_: 2
|
|
692
701
|
}, 1032, ["value"]))), 128))
|
|
@@ -695,14 +704,14 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
695
704
|
}, 8, ["modelValue"])
|
|
696
705
|
]),
|
|
697
706
|
_: 1
|
|
698
|
-
}, 8, ["label"])) :
|
|
699
|
-
t(e).replayMode === t(r).REPLAY_MODE.end && t(e).liveType !== t(r).LIVE_TYPE.vod ? (u(),
|
|
707
|
+
}, 8, ["label"])) : T("", !0),
|
|
708
|
+
t(e).replayMode === t(r).REPLAY_MODE.end && t(e).liveType !== t(r).LIVE_TYPE.vod ? (u(), y(i, {
|
|
700
709
|
key: 11,
|
|
701
710
|
label: a.$t("liveVideo.replayEndTime"),
|
|
702
711
|
prop: "replayEndTime"
|
|
703
712
|
}, {
|
|
704
|
-
default:
|
|
705
|
-
|
|
713
|
+
default: s(() => [
|
|
714
|
+
d(c, {
|
|
706
715
|
modelValue: t(e).replayEndTime,
|
|
707
716
|
"onUpdate:modelValue": l[13] || (l[13] = (o) => t(e).replayEndTime = o),
|
|
708
717
|
type: "datetime",
|
|
@@ -713,23 +722,23 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
713
722
|
}, null, 8, ["modelValue", "placeholder"])
|
|
714
723
|
]),
|
|
715
724
|
_: 1
|
|
716
|
-
}, 8, ["label"])) :
|
|
717
|
-
|
|
725
|
+
}, 8, ["label"])) : T("", !0),
|
|
726
|
+
d(i, {
|
|
718
727
|
label: a.$t("liveVideo.showJoin"),
|
|
719
728
|
prop: "showJoin"
|
|
720
729
|
}, {
|
|
721
|
-
default:
|
|
722
|
-
|
|
730
|
+
default: s(() => [
|
|
731
|
+
d(p, {
|
|
723
732
|
modelValue: t(e).showJoin,
|
|
724
733
|
"onUpdate:modelValue": l[14] || (l[14] = (o) => t(e).showJoin = o)
|
|
725
734
|
}, {
|
|
726
|
-
default:
|
|
727
|
-
(u(!0),
|
|
735
|
+
default: s(() => [
|
|
736
|
+
(u(!0), b(j, null, B(t(g).isShowEnterLive.values, (o) => (u(), y(n, {
|
|
728
737
|
key: o.key,
|
|
729
738
|
value: o.key
|
|
730
739
|
}, {
|
|
731
|
-
default:
|
|
732
|
-
|
|
740
|
+
default: s(() => [
|
|
741
|
+
L(I(o.value), 1)
|
|
733
742
|
]),
|
|
734
743
|
_: 2
|
|
735
744
|
}, 1032, ["value"]))), 128))
|
|
@@ -739,12 +748,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
739
748
|
]),
|
|
740
749
|
_: 1
|
|
741
750
|
}, 8, ["label"]),
|
|
742
|
-
|
|
751
|
+
d(i, {
|
|
743
752
|
label: a.$t("liveVideo.liveDescprition"),
|
|
744
753
|
prop: "liveDescprition"
|
|
745
754
|
}, {
|
|
746
|
-
default:
|
|
747
|
-
|
|
755
|
+
default: s(() => [
|
|
756
|
+
d(A, {
|
|
748
757
|
modelValue: t(e).liveDescprition,
|
|
749
758
|
"onUpdate:modelValue": l[15] || (l[15] = (o) => t(e).liveDescprition = o),
|
|
750
759
|
style: { width: "100%" }
|
|
@@ -756,44 +765,44 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
|
|
|
756
765
|
}),
|
|
757
766
|
_: 1
|
|
758
767
|
}, 8, ["model", "rules"]),
|
|
759
|
-
|
|
760
|
-
|
|
768
|
+
_("div", qe, [
|
|
769
|
+
d(q, {
|
|
761
770
|
type: "primary",
|
|
762
|
-
onClick:
|
|
771
|
+
onClick: de
|
|
763
772
|
}, {
|
|
764
|
-
default:
|
|
765
|
-
|
|
773
|
+
default: s(() => [
|
|
774
|
+
L(I(a.$t("common.back")), 1)
|
|
766
775
|
]),
|
|
767
776
|
_: 1
|
|
768
777
|
}),
|
|
769
|
-
|
|
778
|
+
d(q, {
|
|
770
779
|
type: "primary",
|
|
771
|
-
onClick:
|
|
780
|
+
onClick: ce
|
|
772
781
|
}, {
|
|
773
|
-
default:
|
|
774
|
-
|
|
782
|
+
default: s(() => [
|
|
783
|
+
L(I(a.$t("common.confirm")), 1)
|
|
775
784
|
]),
|
|
776
785
|
_: 1
|
|
777
786
|
})
|
|
778
787
|
])
|
|
779
788
|
]),
|
|
780
|
-
|
|
789
|
+
O.value.visible ? (u(), y(he, {
|
|
781
790
|
key: 0,
|
|
782
|
-
modelValue:
|
|
783
|
-
"onUpdate:modelValue": l[16] || (l[16] = (
|
|
791
|
+
modelValue: O.value.visible,
|
|
792
|
+
"onUpdate:modelValue": l[16] || (l[16] = (E) => O.value.visible = E),
|
|
784
793
|
width: "1200px",
|
|
785
|
-
onConfirmSelect: l[17] || (l[17] = (
|
|
786
|
-
}, null, 8, ["modelValue"])) :
|
|
787
|
-
|
|
788
|
-
modelValue:
|
|
789
|
-
"onUpdate:modelValue": l[18] || (l[18] = (
|
|
794
|
+
onConfirmSelect: l[17] || (l[17] = (E) => pe(E))
|
|
795
|
+
}, null, 8, ["modelValue"])) : T("", !0),
|
|
796
|
+
d(be, {
|
|
797
|
+
modelValue: G.value,
|
|
798
|
+
"onUpdate:modelValue": l[18] || (l[18] = (E) => G.value = E),
|
|
790
799
|
"video-max-size": 800,
|
|
791
|
-
onUploadSuccess:
|
|
800
|
+
onUploadSuccess: me
|
|
792
801
|
}, null, 8, ["modelValue"])
|
|
793
802
|
]);
|
|
794
803
|
};
|
|
795
804
|
}
|
|
796
|
-
}),
|
|
805
|
+
}), Qe = /* @__PURE__ */ _e(He, [["__scopeId", "data-v-e6df261d"]]);
|
|
797
806
|
export {
|
|
798
|
-
|
|
807
|
+
Qe as default
|
|
799
808
|
};
|