xyvcard-live 0.0.30 → 0.0.31

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.
Files changed (27) hide show
  1. package/dist/{add-C0s1_CWG.mjs → add-D8xezElG.mjs} +172 -156
  2. package/dist/{index-B9-DRJhP.mjs → index-BLrWTPEh.mjs} +355 -351
  3. package/dist/{index-3i2y3Khg.mjs → index-BUbK0d-K.mjs} +3 -3
  4. package/dist/{index-DAMZ9yv4.mjs → index-BXU28VHX.mjs} +1 -1
  5. package/dist/{index-nZ6j4lKV.mjs → index-Beycpo3t.mjs} +1 -1
  6. package/dist/{index-CJQ1nVj2-BDYpyQNX.mjs → index-CJQ1nVj2-DVV-xhsh.mjs} +1 -1
  7. package/dist/{index-KYUNCx_x.mjs → index-CX2fBxzP.mjs} +1 -1
  8. package/dist/{index-XxgT4vin.mjs → index-CYKWBS0T.mjs} +2 -2
  9. package/dist/{index-DtouxyMl.mjs → index-CmnaXFLe.mjs} +1 -1
  10. package/dist/{index-D3KgvSyG.mjs → index-DRtNC1FE.mjs} +1 -1
  11. package/dist/{index-BnI97NC2.mjs → index-DfFtcAvP.mjs} +1 -1
  12. package/dist/{index-KMVMe9ZJ-CQUOHKlp.mjs → index-KMVMe9ZJ-DW8YAVcj.mjs} +1 -1
  13. package/dist/index.mjs +1 -1
  14. package/dist/{index.vue_vue_type_script_setup_true_lang-CcNDUvmU.mjs → index.vue_vue_type_script_setup_true_lang-FLA_8Jge.mjs} +1 -1
  15. package/dist/{info-CGwpwGPz.mjs → info-BHBgbpQB.mjs} +5 -5
  16. package/dist/{info-ByXTOGCn-enaHO0ZO.mjs → info-ByXTOGCn-D8RZuFIB.mjs} +2 -2
  17. package/dist/{info-C_OAyZk9-C0Hni8R5.mjs → info-C_OAyZk9-CKlrQxDa.mjs} +2 -2
  18. package/dist/{info-ZydxPcdx-DLHJ7yla.mjs → info-ZydxPcdx-DKsZxUZr.mjs} +2 -2
  19. package/dist/{lives-fpmiP4Xh.mjs → lives-DjeL9Lq7.mjs} +1 -1
  20. package/dist/{statistics-CMgNNlYI.mjs → statistics-23eJFR6M.mjs} +1 -1
  21. package/dist/style.css +1 -1
  22. package/dist/{transcoding-C3WYIv4e.mjs → transcoding-DMZvhCPP.mjs} +1 -1
  23. package/dts/src/api/live/zb-live-video/types.d.ts +2 -0
  24. package/dts/src/components/liveList/index.vue.d.ts +2 -0
  25. package/dts/src/constant.d.ts +2 -0
  26. package/dts/src/lang/live/zh-cn.d.ts +2 -0
  27. package/package.json +1 -1
@@ -1,12 +1,12 @@
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
- import { ElMessage as h } from "element-plus";
1
+ import { defineComponent as ye, ref as U, reactive as x, watch as Z, computed as Te, onMounted as fe, nextTick as q, resolveComponent as E, createElementBlock as _, openBlock as u, createElementVNode as P, createBlock as c, createCommentVNode as T, createVNode as s, unref as t, withCtx as n, Fragment as H, renderList as F, createTextVNode as Y, toDisplayString as D } from "vue";
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 d, l as A, p as J, _ as _e } from "./index-B9-DRJhP.mjs";
5
+ import { D as V, C as d, l as O, p as A, _ as _e } from "./index-BLrWTPEh.mjs";
6
6
  import { useI18n as ge } from "vue-i18n";
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";
7
+ import be from "./lives-DjeL9Lq7.mjs";
8
+ import { V as he } from "./index-CYKWBS0T.mjs";
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,
12
12
  class: "live-tip-text"
@@ -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
- }, Ye = {
22
+ }, Ue = {
23
23
  key: 1,
24
24
  class: "setting-status"
25
- }, Ue = ["src"], De = ["src"], Le = { class: "files-list" }, $e = { class: "files-list" }, Ne = { class: "files-list" }, qe = { class: "button-container" }, Re = /* @__PURE__ */ ye({
25
+ }, Ye = ["src"], De = ["src"], Le = { class: "files-list" }, $e = { class: "files-list" }, Ne = { class: "files-list" }, Ce = { class: "button-container" }, qe = /* @__PURE__ */ ye({
26
26
  __name: "add",
27
- setup(Ce) {
27
+ setup(Re) {
28
28
  V.liveTypeEnum.useEnumValues(), V.showModeEnum.useEnumValues(), V.replayModeEnum.useEnumValues();
29
- const { t: f } = ge(), z = Ve(), L = Ee(), $ = Y();
29
+ const { t: f } = ge(), z = Ve(), L = Ee(), $ = U();
30
30
  let e = x({
31
31
  requestId: Math.random() * 10 + "",
32
32
  updateMask: "",
@@ -48,10 +48,11 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
48
48
  replayStartTime: void 0,
49
49
  virtualNum: 0,
50
50
  streamType: d.PUSH_TYPE_RTMP,
51
- completeSeconds: 0
51
+ completeSeconds: 0,
52
+ transCode: d.GQZB26
52
53
  });
53
54
  const ae = (a) => {
54
- let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds";
55
+ let l = "liveName,liveType,startTime,showMode,preStreamPic,liveStreamPic,bgPic,streamerName,liveDescprition,replayMode,playUrl,totalSeconds,virtualNum,roomPwd,showJoin,fileId,completeSeconds,transCode";
55
56
  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
57
  };
57
58
  e.updateMask = "", Z(
@@ -61,31 +62,31 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
61
62
  },
62
63
  { immediate: !0 }
63
64
  );
64
- const p = Y(null), g = Y(null), W = Te(() => L.query.copy === "true");
65
+ const p = U(null), g = U(null), G = Te(() => L.query.copy === "true");
65
66
  fe(async () => {
66
67
  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
68
  });
68
- const I = Y("00:00:00"), M = Y("00:00:00"), te = async () => {
69
+ const I = U("00:00:00"), M = U("00:00:00"), te = async () => {
69
70
  const a = L.query.liveId;
70
71
  if (a)
71
72
  try {
72
- const l = await A.findById({ liveId: a });
73
+ const l = await O.findById({ liveId: a });
73
74
  if (!l.data) {
74
- h.warning("未获取到直播数据");
75
+ w.warning("未获取到直播数据");
75
76
  return;
76
77
  }
77
78
  l.data.liveType === d.LIVE_TYPE.fake_live ? p.value = {
78
- playUrl: J(l.data.playUrl),
79
+ playUrl: A(l.data.playUrl),
79
80
  totalSeconds: l.data.totalSeconds || 0
80
81
  } : 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);
82
+ playUrl: A(l.data.playUrl)
83
+ }), 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);
83
84
  const r = l.data.totalSeconds || 0;
84
85
  e.totalSeconds = r, I.value = k(r);
85
86
  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
+ M.value = k(m), G.value ? (delete e.liveId, e.liveName = `${e.liveName}`, w.info("已加载原直播数据,当前为复制模式")) : e.liveId = l.data.liveId, e.liveType === d.LIVE_TYPE.fake_live && p.value && N();
87
88
  } catch (l) {
88
- console.error("获取直播详情失败:", l), h.error("获取直播详情失败");
89
+ console.error("获取直播详情失败:", l), w.error("获取直播详情失败");
89
90
  }
90
91
  }, oe = x({
91
92
  liveType: [
@@ -172,48 +173,48 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
172
173
  function se(a) {
173
174
  e.bgPic = a;
174
175
  }
175
- const C = Y({ visible: !1 }), j = Y(!1);
176
- function G() {
177
- C.value.visible = !0;
176
+ const R = U({ visible: !1 }), j = U(!1);
177
+ function Q() {
178
+ R.value.visible = !0;
178
179
  }
179
- const K = () => {
180
+ const W = () => {
180
181
  j.value = !0;
181
- }, ue = (a) => {
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;
182
+ }, ne = (a) => {
183
+ var y, b;
184
+ const l = (y = a == null ? void 0 : a.video) == null ? void 0 : y.url, r = a == null ? void 0 : a.fileId, m = ((b = a == null ? void 0 : a.video) == null ? void 0 : b.duration) || 0;
184
185
  if (!l || !r) {
185
- h.error("视频上传成功,但未获取到有效播放地址/文件ID!");
186
+ w.error("视频上传成功,但未获取到有效播放地址/文件ID!");
186
187
  return;
187
188
  }
188
189
  let i = "";
189
190
  try {
190
- i = J(l), i || (i = l);
191
- } catch (b) {
192
- i = l, console.warn("播放地址处理失败,使用原始地址:", b);
191
+ i = A(l), i || (i = l);
192
+ } catch (h) {
193
+ i = l, console.warn("播放地址处理失败,使用原始地址:", h);
193
194
  }
194
195
  const v = {
195
196
  playUrl: i,
196
197
  totalSeconds: m,
197
198
  fileId: r
198
199
  };
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
+ 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 && q(() => {
200
201
  N();
201
- }), R(() => {
202
- h.success("本地视频上传成功!");
202
+ }), q(() => {
203
+ w.success("本地视频上传成功!");
203
204
  });
204
- }, ne = (a) => {
205
- var v, y, w;
205
+ }, ue = (a) => {
206
+ var v, y, b;
206
207
  console.log(a, "=>data "), p.value = null, g.value = null;
207
208
  const l = (v = a.transcodeData) == null ? void 0 : v.url;
208
209
  if (!l) {
209
- h.warning("选中的转码视频无有效播放地址");
210
+ w.warning("选中的转码视频无有效播放地址");
210
211
  return;
211
212
  }
212
213
  let r = "";
213
214
  try {
214
- r = J(l), r || (r = l);
215
- } catch (b) {
216
- r = l, console.warn("播放地址处理失败,使用原始地址:", b);
215
+ r = A(l), r || (r = l);
216
+ } catch (h) {
217
+ r = l, console.warn("播放地址处理失败,使用原始地址:", h);
217
218
  }
218
219
  const m = a.fileId, i = ((y = a.metaData) == null ? void 0 : y.duration) || 0;
219
220
  e.liveType === d.LIVE_TYPE.fake_live ? (p.value = {
@@ -222,18 +223,18 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
222
223
  fileId: m,
223
224
  transcodeData: a.transcodeData
224
225
  // 可选:保留转码详细信息
225
- }, e.playUrl = r, e.totalSeconds = i, I.value = k(i), M.value = k(i), R(() => {
226
+ }, e.playUrl = r, e.totalSeconds = i, I.value = k(i), M.value = k(i), q(() => {
226
227
  N();
227
228
  })) : e.liveType === d.LIVE_TYPE.vod && (g.value = {
228
229
  playUrl: r,
229
230
  fileId: m,
230
- liveName: ((w = a.basicInfo) == null ? void 0 : w.name) || "未命名视频",
231
+ liveName: ((b = a.basicInfo) == null ? void 0 : b.name) || "未命名视频",
231
232
  transcodeData: a.transcodeData
232
233
  // 转码详细信息
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})`
234
+ }, e.playUrl = r, e.totalSeconds = i, I.value = k(i), M.value = k(i)), q(() => {
235
+ var h, C;
236
+ (h = $.value) == null || h.validateField(["fakeLiveSetting", "endTime"]), w.success(
237
+ `已选中转码视频:${((C = a.basicInfo) == null ? void 0 : C.name) || "未命名视频"} (${a.transcodeData.width}×${a.transcodeData.height})`
237
238
  );
238
239
  });
239
240
  }, N = () => {
@@ -243,8 +244,8 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
243
244
  console.error("无效的开始时间:", e.startTime);
244
245
  return;
245
246
  }
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(() => {
247
+ 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"), b = String(r.getUTCMinutes()).padStart(2, "0"), h = String(r.getUTCSeconds()).padStart(2, "0");
248
+ e.endTime = `${m}-${i}-${v}T${y}:${b}:${h}Z`, q(() => {
248
249
  $.value && $.value.validateField("endTime");
249
250
  });
250
251
  }
@@ -265,11 +266,11 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
265
266
  const pe = async () => {
266
267
  var l, r, m;
267
268
  if (e.liveType === d.LIVE_TYPE.fake_live && !p.value) {
268
- h.error(f("liveVideo.fakeLiveRequired"));
269
+ w.error(f("liveVideo.fakeLiveRequired"));
269
270
  return;
270
271
  }
271
272
  if (e.liveType === d.LIVE_TYPE.vod && !g.value) {
272
- h.error(f("liveVideo.vodRequired"));
273
+ w.error(f("liveVideo.vodRequired"));
273
274
  return;
274
275
  }
275
276
  if (await ((l = $.value) == null ? void 0 : l.validate()))
@@ -277,18 +278,18 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
277
278
  let i = { ...e };
278
279
  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;
279
280
  let v;
280
- if (W.value) {
281
+ if (G.value) {
281
282
  const y = { ...i };
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));
283
+ delete y.liveId, v = await O.create(y);
284
+ } else L.query.liveId ? v = await O.update(i) : v = await O.create(i);
285
+ v.status === 200 && (w.success(f("common.submitSuccess")), ee.closeTagView(L.fullPath, z, !1));
285
286
  } catch (i) {
286
- h.error(f("common.submitFail") + i.message);
287
+ w.error(f("common.submitFail") + i.message);
287
288
  }
288
289
  };
289
290
  return (a, l) => {
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, [
291
+ const r = E("el-radio"), m = E("el-radio-group"), i = E("el-form-item"), v = E("el-input"), y = 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
+ return u(), _("div", we, [
292
293
  P("div", Pe, [
293
294
  s(ce, {
294
295
  ref_key: "liveFormRef",
@@ -298,27 +299,27 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
298
299
  style: { "max-width": "800px" },
299
300
  "label-width": "auto"
300
301
  }, {
301
- default: u(() => {
302
+ default: n(() => {
302
303
  var S, X;
303
304
  return [
304
305
  s(i, {
305
306
  label: a.$t("liveVideo.liveType"),
306
307
  prop: "liveType"
307
308
  }, {
308
- default: u(() => [
309
+ default: n(() => [
309
310
  s(m, {
310
311
  modelValue: t(e).liveType,
311
312
  "onUpdate:modelValue": l[0] || (l[0] = (o) => t(e).liveType = o),
312
313
  onChange: me
313
314
  }, {
314
- default: u(() => [
315
- (n(!0), _(H, null, F(t(V).liveTypeEnum.values, (o) => (n(), c(r, {
315
+ default: n(() => [
316
+ (u(!0), _(H, null, F(t(V).liveTypeEnum.values, (o) => (u(), c(r, {
316
317
  key: o.key,
317
318
  border: !0,
318
319
  value: o.key
319
320
  }, {
320
- default: u(() => [
321
- U(D(o.value), 1)
321
+ default: n(() => [
322
+ Y(D(o.value), 1)
322
323
  ]),
323
324
  _: 2
324
325
  }, 1032, ["value"]))), 128))
@@ -328,59 +329,59 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
328
329
  ]),
329
330
  _: 1
330
331
  }, 8, ["label"]),
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, {
332
+ t(e).liveType === t(d).LIVE_TYPE.live ? (u(), _("div", Se, " 实时直播形式,根据实际画面进行传播,无法快进或回放 ")) : T("", !0),
333
+ t(e).liveType === t(d).LIVE_TYPE.fake_live ? (u(), c(i, {
333
334
  key: 1,
334
335
  label: a.$t("liveVideo.fakeLive")
335
336
  }, {
336
- default: u(() => {
337
+ default: n(() => {
337
338
  var o;
338
339
  return [
339
340
  P("button", {
340
341
  type: "button",
341
342
  class: "fakeLive",
342
- onClick: G
343
+ onClick: Q
343
344
  }, " 伪直播设置 "),
344
345
  P("button", {
345
346
  type: "button",
346
347
  class: "fakeLive",
347
- onClick: K
348
+ onClick: W
348
349
  }, " 从本地上传视频 "),
349
- (o = p.value) != null && o.playUrl ? (n(), _("div", Ie, "已设置")) : (n(), _("div", ke, " 未设置 "))
350
+ (o = p.value) != null && o.playUrl ? (u(), _("div", Ie, "已设置")) : (u(), _("div", ke, " 未设置 "))
350
351
  ];
351
352
  }),
352
353
  _: 1
353
354
  }, 8, ["label"])) : T("", !0),
354
- t(e).liveType === t(d).LIVE_TYPE.vod ? (n(), c(i, {
355
+ t(e).liveType === t(d).LIVE_TYPE.vod ? (u(), c(i, {
355
356
  key: 2,
356
357
  label: a.$t("liveVideo.vod")
357
358
  }, {
358
- default: u(() => {
359
+ default: n(() => {
359
360
  var o;
360
361
  return [
361
362
  P("button", {
362
363
  type: "button",
363
364
  class: "fakeLive",
364
- onClick: G
365
+ onClick: Q
365
366
  }, " 点播设置 "),
366
367
  P("button", {
367
368
  type: "button",
368
369
  class: "fakeLive",
369
- onClick: K
370
+ onClick: W
370
371
  }, " 从本地上传视频 "),
371
- (o = g.value) != null && o.playUrl ? (n(), _("div", Ye, "已设置")) : (n(), _("div", Me, "未设置"))
372
+ (o = g.value) != null && o.playUrl ? (u(), _("div", Ue, "已设置")) : (u(), _("div", Me, "未设置"))
372
373
  ];
373
374
  }),
374
375
  _: 1
375
376
  }, 8, ["label"])) : T("", !0),
376
- (S = p.value) != null && S.playUrl && t(e).liveType === t(d).LIVE_TYPE.fake_live ? (n(), c(i, {
377
+ (S = p.value) != null && S.playUrl && t(e).liveType === t(d).LIVE_TYPE.fake_live ? (u(), c(i, {
377
378
  key: 3,
378
379
  label: "视频预览"
379
380
  }, {
380
- default: u(() => {
381
+ default: n(() => {
381
382
  var o;
382
383
  return [
383
- (o = p.value) != null && o.playUrl ? (n(), _("video", {
384
+ (o = p.value) != null && o.playUrl ? (u(), _("video", {
384
385
  key: 0,
385
386
  src: p.value.playUrl,
386
387
  controls: "",
@@ -388,19 +389,19 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
388
389
  height: "250",
389
390
  muted: "",
390
391
  playsinline: ""
391
- }, " 您的浏览器不支持视频播放 ", 8, Ue)) : T("", !0)
392
+ }, " 您的浏览器不支持视频播放 ", 8, Ye)) : T("", !0)
392
393
  ];
393
394
  }),
394
395
  _: 1
395
396
  })) : T("", !0),
396
- (X = g.value) != null && X.playUrl && t(e).liveType === t(d).LIVE_TYPE.vod ? (n(), c(i, {
397
+ (X = g.value) != null && X.playUrl && t(e).liveType === t(d).LIVE_TYPE.vod ? (u(), c(i, {
397
398
  key: 4,
398
399
  label: "视频预览"
399
400
  }, {
400
- default: u(() => {
401
+ default: n(() => {
401
402
  var o;
402
403
  return [
403
- (o = g.value) != null && o.playUrl ? (n(), _("video", {
404
+ (o = g.value) != null && o.playUrl ? (u(), _("video", {
404
405
  key: 0,
405
406
  src: g.value.playUrl,
406
407
  controls: "",
@@ -417,7 +418,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
417
418
  label: a.$t("liveVideo.liveName"),
418
419
  prop: "liveName"
419
420
  }, {
420
- default: u(() => [
421
+ default: n(() => [
421
422
  s(v, {
422
423
  modelValue: t(e).liveName,
423
424
  "onUpdate:modelValue": l[1] || (l[1] = (o) => t(e).liveName = o),
@@ -429,14 +430,30 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
429
430
  ]),
430
431
  _: 1
431
432
  }, 8, ["label"]),
433
+ s(i, {
434
+ label: a.$t("liveVideo.transCode"),
435
+ prop: "transCode"
436
+ }, {
437
+ default: n(() => [
438
+ s(y, {
439
+ modelValue: t(e).transCode,
440
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => t(e).transCode = o),
441
+ placeholder: a.$t("liveVideo.transCodeRequired"),
442
+ "type-code": t(d).TRANSCODE_CODEC,
443
+ clearable: "",
444
+ class: "w-full"
445
+ }, null, 8, ["modelValue", "placeholder", "type-code"])
446
+ ]),
447
+ _: 1
448
+ }, 8, ["label"]),
432
449
  s(i, {
433
450
  label: a.$t("liveVideo.startTime"),
434
451
  prop: "startTime"
435
452
  }, {
436
- default: u(() => [
437
- s(y, {
453
+ default: n(() => [
454
+ s(b, {
438
455
  modelValue: t(e).startTime,
439
- "onUpdate:modelValue": l[2] || (l[2] = (o) => t(e).startTime = o),
456
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => t(e).startTime = o),
440
457
  type: "datetime",
441
458
  placeholder: a.$t("liveVideo.startTimeRequired"),
442
459
  format: "YYYY-MM-DD HH:mm:ss",
@@ -446,15 +463,15 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
446
463
  ]),
447
464
  _: 1
448
465
  }, 8, ["label"]),
449
- t(e).liveType !== t(d).LIVE_TYPE.live ? (n(), c(i, {
466
+ t(e).liveType !== t(d).LIVE_TYPE.live ? (u(), c(i, {
450
467
  key: 5,
451
468
  label: a.$t("liveVideo.endTime"),
452
469
  prop: "endTime"
453
470
  }, {
454
- default: u(() => [
455
- s(y, {
471
+ default: n(() => [
472
+ s(b, {
456
473
  modelValue: t(e).endTime,
457
- "onUpdate:modelValue": l[3] || (l[3] = (o) => t(e).endTime = o),
474
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => t(e).endTime = o),
458
475
  type: "datetime",
459
476
  placeholder: a.$t("liveVideo.endTimeRequired"),
460
477
  format: "YYYY-MM-DD HH:mm:ss",
@@ -465,19 +482,19 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
465
482
  ]),
466
483
  _: 1
467
484
  }, 8, ["label"])) : T("", !0),
468
- t(e).liveType === t(d).LIVE_TYPE.live ? (n(), c(b, {
485
+ t(e).liveType === t(d).LIVE_TYPE.live ? (u(), c(C, {
469
486
  key: 6,
470
487
  span: 24
471
488
  }, {
472
- default: u(() => [
489
+ default: n(() => [
473
490
  s(i, {
474
491
  label: a.$t("liveVideo.totalSeconds"),
475
492
  prop: "totalSeconds"
476
493
  }, {
477
- default: u(() => [
478
- s(w, {
494
+ default: n(() => [
495
+ s(h, {
479
496
  modelValue: I.value,
480
- "onUpdate:modelValue": l[4] || (l[4] = (o) => I.value = o),
497
+ "onUpdate:modelValue": l[5] || (l[5] = (o) => I.value = o),
481
498
  placeholder: a.$t("liveVideo.totalSecondsRequired"),
482
499
  "show-word-limit": "",
483
500
  clearable: "",
@@ -491,16 +508,16 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
491
508
  ]),
492
509
  _: 1
493
510
  })) : T("", !0),
494
- s(b, { span: 24 }, {
495
- default: u(() => [
511
+ s(C, { span: 24 }, {
512
+ default: n(() => [
496
513
  s(i, {
497
514
  label: a.$t("liveVideo.completeSeconds"),
498
515
  prop: "completeSeconds"
499
516
  }, {
500
- default: u(() => [
501
- s(w, {
517
+ default: n(() => [
518
+ s(h, {
502
519
  modelValue: M.value,
503
- "onUpdate:modelValue": l[5] || (l[5] = (o) => M.value = o),
520
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => M.value = o),
504
521
  placeholder: a.$t("liveVideo.completeSecondsRequired"),
505
522
  "show-word-limit": "",
506
523
  clearable: "",
@@ -518,13 +535,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
518
535
  label: a.$t("liveVideo.streamerName"),
519
536
  prop: "streamerName"
520
537
  }, {
521
- default: u(() => [
522
- s(q, {
538
+ default: n(() => [
539
+ s(y, {
523
540
  modelValue: t(e).streamerName,
524
- "onUpdate:modelValue": l[6] || (l[6] = (o) => t(e).streamerName = o),
541
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => t(e).streamerName = o),
525
542
  "type-code": t(d).ANCHOR_NAME,
526
543
  placeholder: a.$t("liveVideo.streamerNameRequired"),
527
- "show-word-limit": "",
528
544
  clearable: "",
529
545
  class: "w-full"
530
546
  }, null, 8, ["modelValue", "type-code", "placeholder"])
@@ -535,10 +551,10 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
535
551
  label: a.$t("liveVideo.roomPwd"),
536
552
  prop: "roomPwd"
537
553
  }, {
538
- default: u(() => [
554
+ default: n(() => [
539
555
  s(v, {
540
556
  modelValue: t(e).roomPwd,
541
- "onUpdate:modelValue": l[7] || (l[7] = (o) => t(e).roomPwd = o),
557
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => t(e).roomPwd = o),
542
558
  placeholder: a.$t("liveVideo.roomPwdRequired"),
543
559
  clearable: ""
544
560
  }, null, 8, ["modelValue", "placeholder"])
@@ -549,10 +565,10 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
549
565
  label: a.$t("liveVideo.virtualNum"),
550
566
  prop: "virtualNum"
551
567
  }, {
552
- default: u(() => [
568
+ default: n(() => [
553
569
  s(v, {
554
570
  modelValue: t(e).virtualNum,
555
- "onUpdate:modelValue": l[8] || (l[8] = (o) => t(e).virtualNum = o),
571
+ "onUpdate:modelValue": l[9] || (l[9] = (o) => t(e).virtualNum = o),
556
572
  placeholder: a.$t("liveVideo.virtualNumRequired"),
557
573
  "show-word-limit": "",
558
574
  clearable: "",
@@ -561,15 +577,15 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
561
577
  ]),
562
578
  _: 1
563
579
  }, 8, ["label"]),
564
- t(e).liveType === t(d).LIVE_TYPE.live ? (n(), c(i, {
580
+ t(e).liveType === t(d).LIVE_TYPE.live ? (u(), c(i, {
565
581
  key: 7,
566
582
  label: a.$t("liveVideo.pushType"),
567
583
  prop: "streamType"
568
584
  }, {
569
- default: u(() => [
570
- s(q, {
585
+ default: n(() => [
586
+ s(y, {
571
587
  modelValue: t(e).streamType,
572
- "onUpdate:modelValue": l[9] || (l[9] = (o) => t(e).streamType = o),
588
+ "onUpdate:modelValue": l[10] || (l[10] = (o) => t(e).streamType = o),
573
589
  placeholder: a.$t("liveVideo.pushTypeRequired"),
574
590
  "type-code": t(d).PUSH_TYPE,
575
591
  class: "w-full"
@@ -581,18 +597,18 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
581
597
  label: a.$t("liveVideo.showMode"),
582
598
  prop: "showMode"
583
599
  }, {
584
- default: u(() => [
600
+ default: n(() => [
585
601
  s(m, {
586
602
  modelValue: t(e).showMode,
587
- "onUpdate:modelValue": l[10] || (l[10] = (o) => t(e).showMode = o)
603
+ "onUpdate:modelValue": l[11] || (l[11] = (o) => t(e).showMode = o)
588
604
  }, {
589
- default: u(() => [
590
- (n(!0), _(H, null, F(t(V).showModeEnum.values, (o) => (n(), c(r, {
605
+ default: n(() => [
606
+ (u(!0), _(H, null, F(t(V).showModeEnum.values, (o) => (u(), c(r, {
591
607
  key: o.key,
592
608
  value: o.key
593
609
  }, {
594
- default: u(() => [
595
- U(D(o.value), 1)
610
+ default: n(() => [
611
+ Y(D(o.value), 1)
596
612
  ]),
597
613
  _: 2
598
614
  }, 1032, ["value"]))), 128))
@@ -606,7 +622,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
606
622
  label: a.$t("liveVideo.preStreamPic"),
607
623
  prop: "preStreamPic"
608
624
  }, {
609
- default: u(() => [
625
+ default: n(() => [
610
626
  P("div", Le, [
611
627
  s(B, {
612
628
  "picture-url": t(e).preStreamPic,
@@ -622,7 +638,7 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
622
638
  label: a.$t("liveVideo.liveStreamPic"),
623
639
  prop: "liveStreamPic"
624
640
  }, {
625
- default: u(() => [
641
+ default: n(() => [
626
642
  P("div", $e, [
627
643
  s(B, {
628
644
  "picture-url": t(e).liveStreamPic,
@@ -634,12 +650,12 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
634
650
  ]),
635
651
  _: 1
636
652
  }, 8, ["label"]),
637
- t(e).showMode === t(d).SHOW_MODE.vertical ? (n(), c(i, {
653
+ t(e).showMode === t(d).SHOW_MODE.vertical ? (u(), c(i, {
638
654
  key: 8,
639
655
  label: a.$t("liveVideo.bgPic"),
640
656
  prop: "bgPic"
641
657
  }, {
642
- default: u(() => [
658
+ default: n(() => [
643
659
  P("div", Ne, [
644
660
  s(B, {
645
661
  "picture-url": t(e).bgPic,
@@ -651,24 +667,24 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
651
667
  ]),
652
668
  _: 1
653
669
  }, 8, ["label"])) : T("", !0),
654
- t(e).liveType !== t(d).LIVE_TYPE.vod ? (n(), c(i, {
670
+ t(e).liveType !== t(d).LIVE_TYPE.vod ? (u(), c(i, {
655
671
  key: 9,
656
672
  label: a.$t("liveVideo.replayMode"),
657
673
  prop: "replayMode"
658
674
  }, {
659
- default: u(() => [
675
+ default: n(() => [
660
676
  s(m, {
661
677
  modelValue: t(e).replayMode,
662
- "onUpdate:modelValue": l[11] || (l[11] = (o) => t(e).replayMode = o)
678
+ "onUpdate:modelValue": l[12] || (l[12] = (o) => t(e).replayMode = o)
663
679
  }, {
664
- default: u(() => [
665
- (n(!0), _(H, null, F(t(V).replayModeEnum.values, (o) => (n(), c(r, {
680
+ default: n(() => [
681
+ (u(!0), _(H, null, F(t(V).replayModeEnum.values, (o) => (u(), c(r, {
666
682
  key: o.key,
667
683
  border: !0,
668
684
  value: o.key
669
685
  }, {
670
- default: u(() => [
671
- U(D(o.value), 1)
686
+ default: n(() => [
687
+ Y(D(o.value), 1)
672
688
  ]),
673
689
  _: 2
674
690
  }, 1032, ["value"]))), 128))
@@ -678,15 +694,15 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
678
694
  ]),
679
695
  _: 1
680
696
  }, 8, ["label"])) : T("", !0),
681
- t(e).replayMode === t(d).REPLAY_MODE.end && t(e).liveType !== t(d).LIVE_TYPE.vod ? (n(), c(i, {
697
+ t(e).replayMode === t(d).REPLAY_MODE.end && t(e).liveType !== t(d).LIVE_TYPE.vod ? (u(), c(i, {
682
698
  key: 10,
683
699
  label: a.$t("liveVideo.replayEndTime"),
684
700
  prop: "replayEndTime"
685
701
  }, {
686
- default: u(() => [
687
- s(y, {
702
+ default: n(() => [
703
+ s(b, {
688
704
  modelValue: t(e).replayEndTime,
689
- "onUpdate:modelValue": l[12] || (l[12] = (o) => t(e).replayEndTime = o),
705
+ "onUpdate:modelValue": l[13] || (l[13] = (o) => t(e).replayEndTime = o),
690
706
  type: "datetime",
691
707
  placeholder: a.$t("liveVideo.replayEndTimeRequired"),
692
708
  format: "YYYY-MM-DD HH:mm:ss",
@@ -700,18 +716,18 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
700
716
  label: a.$t("liveVideo.showJoin"),
701
717
  prop: "showJoin"
702
718
  }, {
703
- default: u(() => [
719
+ default: n(() => [
704
720
  s(m, {
705
721
  modelValue: t(e).showJoin,
706
- "onUpdate:modelValue": l[13] || (l[13] = (o) => t(e).showJoin = o)
722
+ "onUpdate:modelValue": l[14] || (l[14] = (o) => t(e).showJoin = o)
707
723
  }, {
708
- default: u(() => [
709
- (n(!0), _(H, null, F(t(V).isShowEnterLive.values, (o) => (n(), c(r, {
724
+ default: n(() => [
725
+ (u(!0), _(H, null, F(t(V).isShowEnterLive.values, (o) => (u(), c(r, {
710
726
  key: o.key,
711
727
  value: o.key
712
728
  }, {
713
- default: u(() => [
714
- U(D(o.value), 1)
729
+ default: n(() => [
730
+ Y(D(o.value), 1)
715
731
  ]),
716
732
  _: 2
717
733
  }, 1032, ["value"]))), 128))
@@ -725,10 +741,10 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
725
741
  label: a.$t("liveVideo.liveDescprition"),
726
742
  prop: "liveDescprition"
727
743
  }, {
728
- default: u(() => [
744
+ default: n(() => [
729
745
  s(ve, {
730
746
  modelValue: t(e).liveDescprition,
731
- "onUpdate:modelValue": l[14] || (l[14] = (o) => t(e).liveDescprition = o),
747
+ "onUpdate:modelValue": l[15] || (l[15] = (o) => t(e).liveDescprition = o),
732
748
  style: { width: "100%" }
733
749
  }, null, 8, ["modelValue"])
734
750
  ]),
@@ -738,44 +754,44 @@ const we = { class: "app-container" }, Pe = { class: "search-container" }, Se =
738
754
  }),
739
755
  _: 1
740
756
  }, 8, ["model", "rules"]),
741
- P("div", qe, [
742
- s(Q, {
757
+ P("div", Ce, [
758
+ s(K, {
743
759
  type: "primary",
744
760
  onClick: ie
745
761
  }, {
746
- default: u(() => [
747
- U(D(a.$t("common.back")), 1)
762
+ default: n(() => [
763
+ Y(D(a.$t("common.back")), 1)
748
764
  ]),
749
765
  _: 1
750
766
  }),
751
- s(Q, {
767
+ s(K, {
752
768
  type: "primary",
753
769
  onClick: pe
754
770
  }, {
755
- default: u(() => [
756
- U(D(a.$t("common.confirm")), 1)
771
+ default: n(() => [
772
+ Y(D(a.$t("common.confirm")), 1)
757
773
  ]),
758
774
  _: 1
759
775
  })
760
776
  ])
761
777
  ]),
762
- C.value.visible ? (n(), c(be, {
778
+ R.value.visible ? (u(), c(be, {
763
779
  key: 0,
764
- modelValue: C.value.visible,
765
- "onUpdate:modelValue": l[15] || (l[15] = (S) => C.value.visible = S),
780
+ modelValue: R.value.visible,
781
+ "onUpdate:modelValue": l[16] || (l[16] = (S) => R.value.visible = S),
766
782
  width: "1200px",
767
- onConfirmSelect: l[16] || (l[16] = (S) => ne(S))
783
+ onConfirmSelect: l[17] || (l[17] = (S) => ue(S))
768
784
  }, null, 8, ["modelValue"])) : T("", !0),
769
785
  s(he, {
770
786
  modelValue: j.value,
771
- "onUpdate:modelValue": l[17] || (l[17] = (S) => j.value = S),
787
+ "onUpdate:modelValue": l[18] || (l[18] = (S) => j.value = S),
772
788
  "video-max-size": 800,
773
- onUploadSuccess: ue
789
+ onUploadSuccess: ne
774
790
  }, null, 8, ["modelValue"])
775
791
  ]);
776
792
  };
777
793
  }
778
- }), We = /* @__PURE__ */ _e(Re, [["__scopeId", "data-v-2ebfd619"]]);
794
+ }), Ge = /* @__PURE__ */ _e(qe, [["__scopeId", "data-v-6d98a96d"]]);
779
795
  export {
780
- We as default
796
+ Ge as default
781
797
  };