hy-dispatch-ui-v3 0.2.87 → 0.2.88

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.
@@ -19,6 +19,9 @@ var index$2 = require('../hyIcon/index.js');
19
19
  var index$3 = require('../hyButton/index.js');
20
20
  var timeUtils = require('../../utils/timeUtils.js');
21
21
 
22
+ const centerIconClass = "group-[.is-full]:!w-[34px] group-[.is-full]:!h-[34px]";
23
+ const rightIconClass = "group-[.is-full]:!w-[28px] group-[.is-full]:!h-[28px] group-[.is-full]:mr-5";
24
+ const floatIconClass = "!w-[26px] !h-[26px]";
22
25
  var _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
26
  __name: "videoPlayer",
24
27
  props: {
@@ -84,17 +87,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
84
87
  {
85
88
  value: 1,
86
89
  label: $t("stopAfterPlayback"),
87
- svgName: "mediaCenter_stopPlaying"
90
+ svgName: "ops-audio-media-center-stop-playing"
88
91
  },
89
92
  {
90
93
  value: 2,
91
94
  label: $t("continuousPlayback"),
92
- svgName: "mediaCenter_autoplay"
95
+ svgName: "ops-audio-media-center-autoplay"
93
96
  },
94
97
  {
95
98
  value: 3,
96
99
  label: $t("loopPlayback"),
97
- svgName: "mediaCenter_loopPlayback"
100
+ svgName: "ops-audio-media-center-loop-playback"
98
101
  }
99
102
  ]);
100
103
  const playRules2 = vue.ref(1);
@@ -106,6 +109,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
106
109
  const curTime2 = vue.ref(0);
107
110
  const totalTime2 = vue.ref(0);
108
111
  const isDrop2 = vue.ref(false);
112
+ const isHideVideo2 = vue.ref(false);
109
113
  const isFullScreen2 = vue.ref(false);
110
114
  const volumeValue2 = vue.ref(100);
111
115
  const isChangeVolume2 = vue.ref(false);
@@ -126,6 +130,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
126
130
  const canPlay2 = vue.computed(() => {
127
131
  return hy.videoState.value !== "NO_LOAD" || hy.videoState.value !== "CAN_NOT_PLAY";
128
132
  });
133
+ function setIsHideVideo2(newIsHideVideo) {
134
+ hy.isHideVideo.value = newIsHideVideo;
135
+ }
129
136
  function playRulesFn2(newPlayRules) {
130
137
  if (newPlayRules === 3) {
131
138
  hy.playRules.value = 1;
@@ -410,6 +417,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
410
417
  curTime: curTime2,
411
418
  totalTime: totalTime2,
412
419
  isDrop: isDrop2,
420
+ isHideVideo: isHideVideo2,
413
421
  isFullScreen: isFullScreen2,
414
422
  volumeValue: volumeValue2,
415
423
  isChangeVolume: isChangeVolume2,
@@ -420,6 +428,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
420
428
  speedLabel: speedLabel2,
421
429
  playItem: playItem2,
422
430
  canPlay: canPlay2,
431
+ setIsHideVideo: setIsHideVideo2,
423
432
  playRulesFn: playRulesFn2,
424
433
  speedFn: speedFn2,
425
434
  findIndexFn: findIndexFn2,
@@ -469,6 +478,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
469
478
  isChangeVolume,
470
479
  isDrop,
471
480
  isFullScreen,
481
+ isHideVideo,
472
482
  jumpDuration,
473
483
  loading,
474
484
  openVLC,
@@ -481,6 +491,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
481
491
  playRuleslist,
482
492
  playVideo,
483
493
  resumePlay,
494
+ setIsHideVideo,
484
495
  speed,
485
496
  speedFn,
486
497
  speedLabel,
@@ -497,178 +508,145 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
497
508
  playVideo
498
509
  });
499
510
  return (_ctx, _cache) => {
500
- return vue.openBlock(), vue.createElementBlock(
501
- "div",
502
- {
503
- class: vue.normalizeClass(["video-player-content", { "full-video-player-content": vue.unref(isFullScreen) }])
504
- },
505
- [
506
- vue.createCommentVNode(" loading "),
507
- vue.unref(loading) || vue.unref(buffering) ? (vue.openBlock(), vue.createElementBlock("div", {
508
- key: 0,
509
- class: "w-full h-full flex flex-col justify-center items-center"
510
- }, [
511
- vue.createVNode(mediaLoading.default),
512
- vue.createElementVNode(
513
- "span",
514
- { class: "text-xs text-theme mt-4" },
515
- "..." + vue.toDisplayString($t("videoResourcesAreLoading")) + "...",
516
- 1
517
- /* TEXT */
518
- )
519
- ])) : vue.createCommentVNode("v-if", true),
520
- vue.unref(videoState) === "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
521
- key: 1,
522
- class: "w-full h-full flex flex-col justify-center items-center"
523
- }, [
524
- vue.createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
525
- vue.unref(videoItem) && vue.unref(videoItem).csFile === 1 && vue.unref(videoItem).onlineState !== 1 ? (vue.openBlock(), vue.createElementBlock(
526
- vue.Fragment,
527
- { key: 0 },
528
- [
529
- vue.createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-danger-2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--danger-2)]" }, [
530
- vue.createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
531
- vue.createVNode(vue.unref(index$2.HyIcon), {
532
- "svg-name": "ops-button-icon-brok-link",
533
- class: "!w-[24px] !h-[24px] text-danger-2"
534
- })
535
- ])
536
- ]),
537
- vue.createElementVNode(
538
- "span",
539
- { class: "text-xs text-auxiliary mt-4" },
540
- vue.toDisplayString($t("fileLoadingFailed")),
541
- 1
542
- /* TEXT */
543
- ),
511
+ return vue.openBlock(), vue.createElementBlock("div", { class: "flex w-full h-full" }, [
512
+ vue.createElementVNode("div", { class: "w-[700px] bg-background mb-2 flex flex-col text-xs text-main relative box-border border border-border rounded overflow-hidden" }, [
513
+ vue.createElementVNode(
514
+ "div",
515
+ {
516
+ style: { "background": "linear-gradient(180deg, rgba(13, 26, 42, 0.5) 0%, rgba(13, 26, 42, 0.3) 100%)" },
517
+ class: vue.normalizeClass([{
518
+ absolute: !vue.unref(isHideVideo)
519
+ }, "h-[32px] px-2 box-border flex items-center over_one_line w-full text-xs z-10"])
520
+ },
521
+ vue.toDisplayString(vue.unref(videoItem).fileName),
522
+ 3
523
+ /* TEXT, CLASS */
524
+ ),
525
+ vue.createElementVNode(
526
+ "div",
527
+ {
528
+ class: vue.normalizeClass([{
529
+ "w-[0]": vue.unref(isHideVideo),
530
+ "w-full": !vue.unref(isHideVideo)
531
+ }, "overflow-hidden relative"]),
532
+ style: { "aspect-ratio": "16 / 9" }
533
+ },
534
+ [
535
+ vue.unref(loading) || vue.unref(buffering) ? (vue.openBlock(), vue.createElementBlock("div", {
536
+ key: 0,
537
+ class: "w-full h-full flex flex-col justify-center items-center absolute top-0 left-0"
538
+ }, [
539
+ vue.createVNode(mediaLoading.default),
544
540
  vue.createElementVNode(
545
541
  "span",
546
- { class: "text-xs text-auxiliary" },
547
- vue.toDisplayString($t("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
542
+ { class: "text-xs text-theme mt-4" },
543
+ "..." + vue.toDisplayString($t("videoResourcesAreLoading")) + "...",
548
544
  1
549
545
  /* TEXT */
550
546
  )
551
- ],
552
- 64
553
- /* STABLE_FRAGMENT */
554
- )) : (vue.openBlock(), vue.createElementBlock(
555
- vue.Fragment,
556
- { key: 1 },
557
- [
558
- vue.createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
559
- vue.createVNode(vue.unref(index$2.HyIcon), {
560
- "svg-name": "ops-audio-media-center-right-ripple",
561
- class: "!w-[12px] !h-[12px]"
562
- }),
563
- vue.createVNode(vue.unref(index$2.HyIcon), {
564
- "svg-name": "ops-audio-media-center-video",
565
- class: "!w-[40px] !h-[40px] mx-1"
566
- }),
567
- vue.createVNode(vue.unref(index$2.HyIcon), {
568
- "svg-name": "ops-audio-media-center-left-ripple",
569
- class: "!w-[12px] !h-[12px]"
570
- })
571
- ]),
572
- vue.createElementVNode(
573
- "span",
574
- { class: "text-theme mt-3 mb-[14px]" },
575
- vue.toDisplayString(vue.unref(isCanNotPlayType) ? $t("vlcPlayerTip") : $t("videoCannotBePlayed")),
576
- 1
577
- /* TEXT */
578
- ),
579
- vue.unref(isCanNotPlayType) ? (vue.openBlock(), vue.createElementBlock("div", {
580
- key: 0,
581
- class: "flex justify-center"
582
- }, [
583
- vue.unref(hasVLC) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyButton), {
584
- key: 0,
585
- class: "",
586
- onClick: vue.unref(openVLC)
587
- }, {
588
- default: vue.withCtx(() => [
589
- vue.createTextVNode(
590
- vue.toDisplayString($t("clickPlay")),
591
- 1
592
- /* TEXT */
593
- )
594
- ]),
595
- _: 1
596
- /* STABLE */
597
- }, 8, ["onClick"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyButton), {
598
- key: 1,
599
- class: "",
600
- onClick: vue.unref(downloadVLC)
601
- }, {
602
- default: vue.withCtx(() => [
603
- vue.createTextVNode(
604
- vue.toDisplayString($t("toDownloadVlc")),
605
- 1
606
- /* TEXT */
607
- )
608
- ]),
609
- _: 1
610
- /* STABLE */
611
- }, 8, ["onClick"]))
612
- ])) : vue.createCommentVNode("v-if", true)
613
- ],
614
- 64
615
- /* STABLE_FRAGMENT */
616
- )),
617
- __props.playList?.length > 1 ? (vue.openBlock(), vue.createElementBlock(
618
- vue.Fragment,
619
- { key: 2 },
620
- [
621
- vue.createElementVNode("div", { class: "absolute left-0 top-0 bottom-0 vlc-between-control" }, [
622
- vue.createElementVNode("div", {
623
- class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
624
- onClick: vue.unref(playPrevious)
625
- }, [
626
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
627
- effect: "dark",
628
- content: $t("viewPreviousVideo"),
629
- placement: "top"
630
- }, {
631
- default: vue.withCtx(() => [
632
- vue.createVNode(vue.unref(index$2.HyIcon), {
633
- "svg-name": "dispatch-Adv-v3-monitor-previous",
634
- class: "svgBox !w-3 !h-3"
635
- })
636
- ]),
637
- _: 1
638
- /* STABLE */
639
- }, 8, ["content"])
640
- ], 8, ["onClick"])
641
- ]),
642
- vue.createElementVNode("div", { class: "absolute right-0 top-0 bottom-0 vlc-between-control" }, [
643
- vue.createElementVNode("div", {
644
- class: "w-[30px] h-[30px] bg-[#3D6286] flex items-center justify-center clickBox",
645
- onClick: vue.unref(playNext)
646
- }, [
647
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
648
- effect: "dark",
649
- content: $t("viewNextVideo"),
650
- placement: "top"
651
- }, {
652
- default: vue.withCtx(() => [
547
+ ])) : vue.createCommentVNode("v-if", true),
548
+ vue.unref(videoState) === "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
549
+ key: 1,
550
+ class: "w-full h-full flex flex-col justify-center items-center"
551
+ }, [
552
+ vue.createCommentVNode(" \u91C7\u96C6\u7AD9\u6587\u4EF6 "),
553
+ vue.unref(videoItem) && vue.unref(videoItem).csFile === 1 && vue.unref(videoItem).onlineState !== 1 ? (vue.openBlock(), vue.createElementBlock(
554
+ vue.Fragment,
555
+ { key: 0 },
556
+ [
557
+ vue.createElementVNode("div", { class: "w-[54px] h-[54px] rounded-full border-[2px] border-danger-2 flex justify-center items-center shadow-[0px_0px_10px_2px_var(--danger-2)]" }, [
558
+ vue.createElementVNode("div", { class: "w-[42px] h-[42px] rounded-full border-[1px] border-dashed border-danger-2 flex justify-center items-center" }, [
653
559
  vue.createVNode(vue.unref(index$2.HyIcon), {
654
- "svg-name": "dispatch-Adv-v3-monitor-next",
655
- class: "svgBox !w-3 !h-3"
560
+ "svg-name": "ops-button-icon-brok-link",
561
+ class: "!w-[24px] !h-[24px] text-danger-2"
656
562
  })
657
- ]),
658
- _: 1
659
- /* STABLE */
660
- }, 8, ["content"])
661
- ], 8, ["onClick"])
662
- ])
663
- ],
664
- 64
665
- /* STABLE_FRAGMENT */
666
- )) : vue.createCommentVNode("v-if", true)
667
- ])) : (vue.openBlock(), vue.createElementBlock(
668
- vue.Fragment,
669
- { key: 2 },
670
- [
671
- vue.createElementVNode("video", { id: "videoPlayer" }, [
563
+ ])
564
+ ]),
565
+ vue.createElementVNode(
566
+ "span",
567
+ { class: "text-xs text-auxiliary mt-4" },
568
+ vue.toDisplayString($t("fileLoadingFailed")),
569
+ 1
570
+ /* TEXT */
571
+ ),
572
+ vue.createElementVNode(
573
+ "span",
574
+ { class: "text-xs text-auxiliary" },
575
+ vue.toDisplayString($t("pleaseCheckWhetherTheCollectionStationIsOnlineAndWhetherTheFileExists")),
576
+ 1
577
+ /* TEXT */
578
+ )
579
+ ],
580
+ 64
581
+ /* STABLE_FRAGMENT */
582
+ )) : (vue.openBlock(), vue.createElementBlock(
583
+ vue.Fragment,
584
+ { key: 1 },
585
+ [
586
+ vue.createElementVNode("div", { class: "flex items-center justify-center text-auxiliary" }, [
587
+ vue.createVNode(vue.unref(index$2.HyIcon), {
588
+ "svg-name": "ops-audio-media-center-right-ripple",
589
+ class: "!w-[12px] !h-[12px]"
590
+ }),
591
+ vue.createVNode(vue.unref(index$2.HyIcon), {
592
+ "svg-name": "ops-audio-media-center-video",
593
+ class: "!w-[40px] !h-[40px] mx-1"
594
+ }),
595
+ vue.createVNode(vue.unref(index$2.HyIcon), {
596
+ "svg-name": "ops-audio-media-center-left-ripple",
597
+ class: "!w-[12px] !h-[12px]"
598
+ })
599
+ ]),
600
+ vue.createElementVNode(
601
+ "span",
602
+ { class: "text-theme mt-3 mb-[14px]" },
603
+ vue.toDisplayString(vue.unref(isCanNotPlayType) ? $t("vlcPlayerTip") : $t("videoCannotBePlayed")),
604
+ 1
605
+ /* TEXT */
606
+ ),
607
+ vue.unref(isCanNotPlayType) ? (vue.openBlock(), vue.createElementBlock("div", {
608
+ key: 0,
609
+ class: "flex justify-center"
610
+ }, [
611
+ vue.unref(hasVLC) ? (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyButton), {
612
+ key: 0,
613
+ class: "",
614
+ onClick: vue.unref(openVLC)
615
+ }, {
616
+ default: vue.withCtx(() => [
617
+ vue.createTextVNode(
618
+ vue.toDisplayString($t("clickPlay")),
619
+ 1
620
+ /* TEXT */
621
+ )
622
+ ]),
623
+ _: 1
624
+ /* STABLE */
625
+ }, 8, ["onClick"])) : (vue.openBlock(), vue.createBlock(vue.unref(index$3.HyButton), {
626
+ key: 1,
627
+ class: "",
628
+ onClick: vue.unref(downloadVLC)
629
+ }, {
630
+ default: vue.withCtx(() => [
631
+ vue.createTextVNode(
632
+ vue.toDisplayString($t("toDownloadVlc")),
633
+ 1
634
+ /* TEXT */
635
+ )
636
+ ]),
637
+ _: 1
638
+ /* STABLE */
639
+ }, 8, ["onClick"]))
640
+ ])) : vue.createCommentVNode("v-if", true)
641
+ ],
642
+ 64
643
+ /* STABLE_FRAGMENT */
644
+ ))
645
+ ])) : (vue.openBlock(), vue.createElementBlock("video", {
646
+ key: 2,
647
+ id: "videoPlayer",
648
+ class: "w-full h-full"
649
+ }, [
672
650
  vue.createElementVNode("source", { type: "video/mp4" }),
673
651
  vue.createElementVNode("source", { type: "video/webm" }),
674
652
  vue.createElementVNode("source", { type: "video/ogg" }),
@@ -677,215 +655,235 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
677
655
  1
678
656
  /* TEXT */
679
657
  )
658
+ ]))
659
+ ],
660
+ 2
661
+ /* CLASS */
662
+ ),
663
+ vue.createCommentVNode(" \u63A7\u5236\u8FDB\u5EA6 "),
664
+ vue.createElementVNode("div", { class: "px-2 box-border border-b border-border" }, [
665
+ vue.createCommentVNode(" \u8FDB\u5EA6\u6761 "),
666
+ vue.withDirectives(vue.createElementVNode("input", {
667
+ max: "100",
668
+ class: "relative w-[100%] h-[6px] rounded-[20px] outline-none appearance-none bg-[#eaf5f9]",
669
+ style: vue.normalizeStyle({
670
+ background: `linear-gradient(to right, rgb(var(--hy-theme), 1) ${vue.unref(getPercent)(
671
+ vue.unref(value),
672
+ 100
673
+ )}%, rgb(var(--hy-theme), 0.5) ${vue.unref(getPercent)(vue.unref(value), 100)}% `
674
+ }),
675
+ type: "range",
676
+ onMouseup: ($event) => vue.unref(getNowWh)($event),
677
+ onMousedown: ($event) => isDrop.value = true,
678
+ ref: "progressRef",
679
+ id: "progress",
680
+ "onUpdate:modelValue": ($event) => vue.isRef(value) ? value.value = $event : null
681
+ }, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
682
+ [vue.vModelText, vue.unref(value)]
683
+ ]),
684
+ vue.createElementVNode("div", { class: "flex items-center justify-center relative h-[46px]" }, [
685
+ vue.createElementVNode("div", { class: "absolute left-[0px] flex w-[120px] leading-[20px] text-auxiliary" }, [
686
+ vue.createElementVNode(
687
+ "span",
688
+ {
689
+ class: vue.normalizeClass(["is-play-seconds", { "text-main": vue.unref(curTime) !== 0 }])
690
+ },
691
+ vue.toDisplayString(vue.unref(timeUtils.formatSeconds)(vue.unref(curTime), Math.floor(vue.unref(totalTime) / 3600))) + '" ',
692
+ 3
693
+ /* TEXT, CLASS */
694
+ ),
695
+ vue.createElementVNode("span", { class: "mx-1" }, "/"),
696
+ vue.createElementVNode(
697
+ "span",
698
+ { class: "total-seconds" },
699
+ vue.toDisplayString(vue.unref(timeUtils.formatSeconds)(vue.unref(totalTime))) + '" ',
700
+ 1
701
+ /* TEXT */
702
+ )
680
703
  ]),
681
- vue.createElementVNode("div", { class: "operator-box flex flex-row" }, [
682
- vue.createElementVNode("div", { class: "progress-box" }, [
683
- vue.withDirectives(vue.createElementVNode("input", {
684
- max: "100",
685
- class: "w-full relative",
686
- style: vue.normalizeStyle({
687
- background: `linear-gradient(to right, rgb(var(--hy-theme), 1) ${vue.unref(getPercent)(
688
- vue.unref(value),
689
- 100
690
- )}%, rgb(var(--hy-theme), 0.5) ${vue.unref(getPercent)(vue.unref(value), 100)}% `
691
- }),
692
- type: "range",
693
- onMouseup: ($event) => vue.unref(getNowWh)($event),
694
- onMousedown: ($event) => isDrop.value = true,
695
- ref: "progressRef",
696
- id: "progress",
697
- "onUpdate:modelValue": ($event) => vue.isRef(value) ? value.value = $event : null
698
- }, null, 44, ["onMouseup", "onMousedown", "onUpdate:modelValue"]), [
699
- [vue.vModelText, vue.unref(value)]
700
- ])
701
- ]),
702
- vue.createElementVNode("div", { class: "left-operator flex text-xs leading-[20px] text-auxiliary" }, [
703
- vue.createElementVNode(
704
- "span",
705
- { class: "is-play-seconds flex-shrink-0" },
706
- vue.toDisplayString(vue.unref(timeUtils.formatSeconds)(vue.unref(curTime), Math.floor(vue.unref(totalTime) / 3600))) + '" ',
707
- 1
708
- /* TEXT */
709
- ),
710
- vue.createTextVNode(" / "),
711
- vue.createElementVNode(
712
- "span",
713
- { class: "total-seconds flex-shrink-0" },
714
- vue.toDisplayString(vue.unref(timeUtils.formatSeconds)(vue.unref(totalTime))) + '" ',
715
- 1
716
- /* TEXT */
717
- )
718
- ]),
719
- vue.unref(canPlay) ? (vue.openBlock(), vue.createElementBlock("div", {
704
+ vue.unref(canPlay) ? (vue.openBlock(), vue.createElementBlock("div", {
705
+ key: 0,
706
+ class: "center-operator flex w-[88px] justify-between items-center group-[.is-full]:h-[34px]"
707
+ }, [
708
+ vue.createElementVNode("span", { onClick: vue.unref(playPrevious) }, [
709
+ vue.createVNode(vue.unref(index$2.HyIcon), {
710
+ "svg-name": "ops-audio-audio-previous-btn",
711
+ class: vue.normalizeClass(centerIconClass)
712
+ })
713
+ ], 8, ["onClick"]),
714
+ vue.unref(videoState) !== "PLAYING" && vue.unref(canPlay) ? (vue.openBlock(), vue.createElementBlock("span", {
720
715
  key: 0,
721
- class: "center-operator flex"
716
+ onClick: ($event) => vue.unref(playVideo)(vue.unref(videoUrl))
722
717
  }, [
723
- vue.createElementVNode("span", { onClick: vue.unref(playPrevious) }, [
724
- vue.createVNode(vue.unref(index$2.HyIcon), {
725
- "svg-name": "ops-audio-audio-previous-btn",
726
- class: "svgBox"
727
- })
728
- ], 8, ["onClick"]),
729
- vue.unref(videoState) !== "PLAYING" && vue.unref(canPlay) ? (vue.openBlock(), vue.createElementBlock("span", {
730
- key: 0,
731
- onClick: ($event) => vue.unref(playVideo)(vue.unref(videoUrl))
732
- }, [
733
- vue.createVNode(vue.unref(index$2.HyIcon), {
734
- "svg-name": "ops-audio-audio-play-btn",
735
- class: "svgBox"
736
- })
737
- ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
738
- vue.unref(videoState) === "PLAYING" ? (vue.openBlock(), vue.createElementBlock("span", {
739
- key: 1,
740
- onClick: vue.unref(pauseVideo)
741
- }, [
742
- vue.createVNode(vue.unref(index$2.HyIcon), {
743
- "svg-name": "ops-audio-audio-pause-btn",
744
- class: "svgBox"
745
- })
746
- ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
747
- vue.createElementVNode("span", { onClick: vue.unref(playNext) }, [
718
+ vue.createVNode(vue.unref(index$2.HyIcon), {
719
+ "svg-name": "ops-audio-audio-play-btn",
720
+ class: vue.normalizeClass(centerIconClass)
721
+ })
722
+ ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
723
+ vue.unref(videoState) === "PLAYING" ? (vue.openBlock(), vue.createElementBlock("span", {
724
+ key: 1,
725
+ onClick: vue.unref(pauseVideo)
726
+ }, [
727
+ vue.createVNode(vue.unref(index$2.HyIcon), {
728
+ "svg-name": "ops-audio-audio-pause-btn",
729
+ class: vue.normalizeClass(centerIconClass)
730
+ })
731
+ ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
732
+ vue.createElementVNode("span", { onClick: vue.unref(playNext) }, [
733
+ vue.createVNode(vue.unref(index$2.HyIcon), {
734
+ "svg-name": "ops-audio-audio-next-btn",
735
+ class: vue.normalizeClass(centerIconClass)
736
+ })
737
+ ], 8, ["onClick"])
738
+ ])) : vue.createCommentVNode("v-if", true),
739
+ vue.createElementVNode("div", { class: "absolute right-[0px] flex items-center justify-end" }, [
740
+ vue.createCommentVNode(" \u901F\u5EA6 "),
741
+ vue.createVNode(vue.unref(elementPlus.ElPopover), {
742
+ placement: "top",
743
+ appendToBody: false,
744
+ "popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
745
+ trigger: "click"
746
+ }, {
747
+ reference: vue.withCtx(() => [
748
+ vue.createElementVNode("div", { class: "w-[40px] h-[24px] mr-3 rounded border border-solid border-main flex items-center justify-center clickBox px-1 box-border" }, [
749
+ vue.createElementVNode(
750
+ "div",
751
+ { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" },
752
+ vue.toDisplayString(vue.unref(speedLabel)),
753
+ 1
754
+ /* TEXT */
755
+ )
756
+ ])
757
+ ]),
758
+ default: vue.withCtx(() => [
759
+ vue.createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
760
+ vue.createElementVNode("ul", { class: "speedList w-full text-auxiliary" }, [
761
+ (vue.openBlock(true), vue.createElementBlock(
762
+ vue.Fragment,
763
+ null,
764
+ vue.renderList(vue.unref(speedList), (item, index) => {
765
+ return vue.openBlock(), vue.createElementBlock("li", {
766
+ class: vue.normalizeClass(["clickBox h-[26px] leading-[26px] text-center hover:text-theme hover:bg-background-3", { "text-theme bg-background-3": item.value === vue.unref(speed) }]),
767
+ onClick: ($event) => vue.unref(speedFn)(item.value),
768
+ key: index
769
+ }, vue.toDisplayString(item.label), 11, ["onClick"]);
770
+ }),
771
+ 128
772
+ /* KEYED_FRAGMENT */
773
+ ))
774
+ ])
775
+ ])
776
+ ]),
777
+ _: 1
778
+ /* STABLE */
779
+ }),
780
+ vue.createCommentVNode(" \u58F0\u97F3 "),
781
+ vue.createVNode(vue.unref(elementPlus.ElPopover), {
782
+ placement: "top",
783
+ appendToBody: false,
784
+ "popper-class": "popover_volumeSlider w-[40px]",
785
+ trigger: "click"
786
+ }, {
787
+ reference: vue.withCtx(() => [
788
+ vue.createElementVNode("div", null, [
789
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
790
+ class: "item",
791
+ effect: "dark",
792
+ content: $t("adjustPlaybackVolume"),
793
+ placement: "top"
794
+ }, {
795
+ default: vue.withCtx(() => [
796
+ vue.createVNode(vue.unref(index$2.HyIcon), {
797
+ "svg-name": "dispatch-share-audio-volumn",
798
+ class: vue.normalizeClass([rightIconClass, "mr-3"])
799
+ })
800
+ ]),
801
+ _: 1
802
+ /* STABLE */
803
+ }, 8, ["content"])
804
+ ])
805
+ ]),
806
+ default: vue.withCtx(() => [
807
+ vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
808
+ vue.createVNode(vue.unref(elementPlus.ElSlider), {
809
+ onInput: ($event) => vue.unref(changeVolume)($event),
810
+ class: "volume-slider",
811
+ modelValue: vue.unref(volumeValue),
812
+ "onUpdate:modelValue": ($event) => vue.isRef(volumeValue) ? volumeValue.value = $event : null,
813
+ vertical: "",
814
+ height: "105px"
815
+ }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"])
816
+ ])
817
+ ]),
818
+ _: 1
819
+ /* STABLE */
820
+ }),
821
+ vue.createCommentVNode(" \u653E\u5927 "),
822
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
823
+ class: "item clickBox",
824
+ effect: "dark",
825
+ content: $t("fullScreenSwitch"),
826
+ placement: "top",
827
+ appendToBody: false
828
+ }, {
829
+ default: vue.withCtx(() => [
748
830
  vue.createVNode(vue.unref(index$2.HyIcon), {
749
- "svg-name": "ops-audio-audio-next-btn",
750
- class: "svgBox"
751
- })
752
- ], 8, ["onClick"])
753
- ])) : vue.createCommentVNode("v-if", true),
754
- vue.createElementVNode("div", { class: "right-operator flex relative" }, [
755
- vue.createCommentVNode(" \u901F\u5EA6 "),
756
- vue.createVNode(vue.unref(elementPlus.ElPopover), {
757
- placement: "top",
758
- appendToBody: false,
759
- "popper-class": "minWidth0_popover popover_darkColor liveBroadcast w-[62px]",
760
- trigger: "click"
831
+ onClick: vue.unref(clickFullScreen),
832
+ "svg-name": vue.unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
833
+ class: vue.normalizeClass([rightIconClass, "mr-3"])
834
+ }, null, 8, ["onClick", "svg-name"])
835
+ ]),
836
+ _: 1
837
+ /* STABLE */
838
+ }, 8, ["content"]),
839
+ vue.unref(isHideVideo) ? (vue.openBlock(), vue.createElementBlock("div", {
840
+ key: 0,
841
+ onClick: ($event) => vue.unref(setIsHideVideo)(false)
842
+ }, [
843
+ vue.createVNode(vue.unref(elementPlus.ElTooltip), {
844
+ class: "item",
845
+ effect: "dark",
846
+ content: "\u9690\u85CF\u753B\u9762",
847
+ placement: "top"
761
848
  }, {
762
- reference: vue.withCtx(() => [
763
- vue.createElementVNode("div", { class: "text-xs text-auxiliary speed_box flex items-center justify-center clickBox select-none px-1 box-border" }, [
764
- vue.createElementVNode(
765
- "div",
766
- { class: "overflow-ellipsis overflow-hidden whitespace-nowrap" },
767
- vue.toDisplayString(vue.unref(speedLabel)),
768
- 1
769
- /* TEXT */
770
- )
771
- ])
772
- ]),
773
849
  default: vue.withCtx(() => [
774
- vue.createElementVNode("div", { class: "flex items-center justify-center p-[10px_0]" }, [
775
- vue.createElementVNode("ul", { class: "text-auxiliary text-xs speedList" }, [
776
- (vue.openBlock(true), vue.createElementBlock(
777
- vue.Fragment,
778
- null,
779
- vue.renderList(vue.unref(speedList), (item, index) => {
780
- return vue.openBlock(), vue.createElementBlock("li", {
781
- class: vue.normalizeClass(["clickBox", { " selectBox": item.value === vue.unref(speed) }]),
782
- onClick: ($event) => vue.unref(speedFn)(item.value),
783
- key: index
784
- }, vue.toDisplayString(item.label), 11, ["onClick"]);
785
- }),
786
- 128
787
- /* KEYED_FRAGMENT */
788
- ))
789
- ])
790
- ])
791
- ]),
792
- _: 1
793
- /* STABLE */
794
- }),
795
- vue.createCommentVNode(" \u58F0\u97F3 "),
796
- vue.createVNode(vue.unref(elementPlus.ElPopover), {
797
- placement: "top",
798
- appendToBody: false,
799
- "popper-class": "popover_volumeSlider w-[40px]",
800
- trigger: "click"
801
- }, {
802
- reference: vue.withCtx(() => [
803
- vue.createElementVNode("div", null, [
804
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
805
- class: "item",
806
- effect: "dark",
807
- content: $t("adjustPlaybackVolume"),
808
- placement: "top"
809
- }, {
810
- default: vue.withCtx(() => [
811
- vue.createVNode(vue.unref(index$2.HyIcon), {
812
- "svg-name": "dispatch-share-audio-volumn",
813
- class: "svgBox"
814
- })
815
- ]),
816
- _: 1
817
- /* STABLE */
818
- }, 8, ["content"])
819
- ])
820
- ]),
821
- default: vue.withCtx(() => [
822
- vue.createElementVNode("div", { class: "flex items-center justify-center" }, [
823
- vue.createVNode(vue.unref(elementPlus.ElSlider), {
824
- onInput: ($event) => vue.unref(changeVolume)($event),
825
- class: "volume-slider",
826
- modelValue: vue.unref(volumeValue),
827
- "onUpdate:modelValue": ($event) => vue.isRef(volumeValue) ? volumeValue.value = $event : null,
828
- vertical: "",
829
- height: "105px"
830
- }, null, 8, ["onInput", "modelValue", "onUpdate:modelValue"])
831
- ])
850
+ vue.createVNode(vue.unref(index$2.HyIcon), {
851
+ "svg-name": "dispatch-share-audio-volumn",
852
+ class: vue.normalizeClass(rightIconClass)
853
+ })
832
854
  ]),
833
855
  _: 1
834
856
  /* STABLE */
835
- }),
836
- vue.createCommentVNode(" \u653E\u5927 "),
857
+ })
858
+ ], 8, ["onClick"])) : (vue.openBlock(), vue.createElementBlock("div", {
859
+ key: 1,
860
+ onClick: ($event) => vue.unref(setIsHideVideo)(true)
861
+ }, [
837
862
  vue.createVNode(vue.unref(elementPlus.ElTooltip), {
838
- class: "item clickBox",
863
+ class: "item",
839
864
  effect: "dark",
840
- content: $t("fullScreenSwitch"),
841
- placement: "top",
842
- appendToBody: false
865
+ content: "\u663E\u793A\u753B\u9762",
866
+ placement: "top"
843
867
  }, {
844
868
  default: vue.withCtx(() => [
845
869
  vue.createVNode(vue.unref(index$2.HyIcon), {
846
- onClick: vue.unref(clickFullScreen),
847
- "svg-name": vue.unref(isFullScreen) ? "ops-audio-audio-reduce" : "ops-audio-audio-enlarge",
848
- class: "svgBox"
849
- }, null, 8, ["onClick", "svg-name"])
870
+ "svg-name": "dispatch-share-audio-volumn",
871
+ class: vue.normalizeClass(rightIconClass)
872
+ })
850
873
  ]),
851
874
  _: 1
852
875
  /* STABLE */
853
- }, 8, ["content"])
854
- ])
876
+ })
877
+ ], 8, ["onClick"]))
855
878
  ])
856
- ],
857
- 64
858
- /* STABLE_FRAGMENT */
859
- )),
860
- __props.downloadFilesType || __props.playRulesType ? (vue.openBlock(), vue.createElementBlock(
861
- "div",
862
- {
863
- key: 3,
864
- class: vue.normalizeClass(["float-operator-item right-top-operator", { "!right-[43px]": vue.unref(videoState) === "CAN_NOT_PLAY" && __props.playList?.length > 1 }])
865
- },
866
- [
867
- vue.createCommentVNode(" \u4E0B\u8F7D "),
868
- __props.downloadFilesType ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElTooltip), {
879
+ ])
880
+ ]),
881
+ vue.createCommentVNode(" \u5176\u4ED6\u529F\u80FD "),
882
+ vue.createElementVNode("div", { class: "px-2 box-border h-[40px] flex items-center justify-between" }, [
883
+ vue.createElementVNode("ul", { class: "flex" }, [
884
+ __props.playRulesType && vue.unref(videoState) !== "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("li", {
869
885
  key: 0,
870
- class: "item clickBox",
871
- effect: "dark",
872
- content: $t("downloadFile"),
873
- placement: "top"
874
- }, {
875
- default: vue.withCtx(() => [
876
- vue.createVNode(vue.unref(index$2.HyIcon), {
877
- onClick: vue.withModifiers(vue.unref(downloadFn), ["stop"]),
878
- "svg-name": "ops-audio-audio-down-btn",
879
- class: "svgBox"
880
- }, null, 8, ["onClick"])
881
- ]),
882
- _: 1
883
- /* STABLE */
884
- }, 8, ["content"])) : vue.createCommentVNode("v-if", true),
885
- vue.createCommentVNode(" \u64AD\u653E\u89C4\u5219 "),
886
- __props.playRulesType && vue.unref(videoState) !== "CAN_NOT_PLAY" ? (vue.openBlock(), vue.createElementBlock("div", {
887
- key: 1,
888
- class: "mt-2"
886
+ class: "mr-4 clickBox"
889
887
  }, [
890
888
  (vue.openBlock(true), vue.createElementBlock(
891
889
  vue.Fragment,
@@ -895,21 +893,17 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
895
893
  onClick: ($event) => vue.unref(playRulesFn)(item.value),
896
894
  key: index + "playRuleslist"
897
895
  }, [
898
- vue.createVNode(vue.unref(elementPlus.ElTooltip), {
899
- class: "item clickBox",
900
- effect: "dark",
901
- content: item.label,
902
- placement: "top"
903
- }, {
904
- default: vue.withCtx(() => [
905
- vue.createVNode(vue.unref(index$2.HyIcon), {
906
- "svg-name": item.svgName,
907
- class: "svgBox"
908
- }, null, 8, ["svg-name"])
909
- ]),
910
- _: 2
911
- /* DYNAMIC */
912
- }, 1032, ["content"])
896
+ vue.createVNode(vue.unref(index$2.HyIcon), {
897
+ class: vue.normalizeClass(["!w-[12px] !h-[12px]", floatIconClass]),
898
+ "svg-name": item.svgName
899
+ }, null, 8, ["svg-name"]),
900
+ vue.createElementVNode(
901
+ "span",
902
+ { class: "ml-2" },
903
+ vue.toDisplayString(item.label),
904
+ 1
905
+ /* TEXT */
906
+ )
913
907
  ], 8, ["onClick"])), [
914
908
  [vue.vShow, vue.unref(playRules) === item.value]
915
909
  ]);
@@ -918,15 +912,42 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
918
912
  /* KEYED_FRAGMENT */
919
913
  ))
920
914
  ])) : vue.createCommentVNode("v-if", true),
921
- vue.renderSlot(_ctx.$slots, "pight-control-ranel", {}, void 0, true)
922
- ],
923
- 2
924
- /* CLASS */
925
- )) : vue.createCommentVNode("v-if", true)
926
- ],
927
- 2
928
- /* CLASS */
929
- );
915
+ __props.downloadFilesType ? (vue.openBlock(), vue.createElementBlock("li", {
916
+ key: 1,
917
+ class: "mr-4 clickBox",
918
+ onClick: vue.unref(downloadFn)
919
+ }, [
920
+ vue.createVNode(vue.unref(index$2.HyIcon), {
921
+ "svg-name": "ops-audio-audio-reduce",
922
+ class: "!w-[12px] !h-[12px]"
923
+ }),
924
+ vue.createElementVNode(
925
+ "span",
926
+ { class: "ml-2" },
927
+ vue.toDisplayString($t("downloadFile")),
928
+ 1
929
+ /* TEXT */
930
+ )
931
+ ], 8, ["onClick"])) : vue.createCommentVNode("v-if", true),
932
+ vue.createElementVNode("li", { class: "mr-4 clickBox" }, [
933
+ vue.createVNode(vue.unref(index$2.HyIcon), {
934
+ "svg-name": "ops-audio-audio-reduce",
935
+ class: "!w-[12px] !h-[12px]"
936
+ }),
937
+ vue.createElementVNode("span", { class: "ml-2" }, "\u8BED\u4E49\u68C0\u7D22")
938
+ ]),
939
+ vue.createElementVNode("li", { class: "mr-4 clickBox" }, [
940
+ vue.createVNode(vue.unref(index$2.HyIcon), {
941
+ "svg-name": "ops-audio-audio-reduce",
942
+ class: "!w-[12px] !h-[12px]"
943
+ }),
944
+ vue.createElementVNode("span", { class: "ml-2" }, "\u89C6\u9891\u526A\u8F91")
945
+ ])
946
+ ]),
947
+ vue.createElementVNode("div", null, "\u672A\u8BC4\u5206")
948
+ ])
949
+ ])
950
+ ]);
930
951
  };
931
952
  }
932
953
  });