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