diff --git a/src/assets/images/chart/informations/photo.png b/src/assets/images/chart/informations/photo.png index 42cb05bb..ea542b10 100644 Binary files a/src/assets/images/chart/informations/photo.png and b/src/assets/images/chart/informations/photo.png differ diff --git a/src/assets/images/chart/informations/video.png b/src/assets/images/chart/informations/video.png new file mode 100644 index 00000000..d8817301 Binary files /dev/null and b/src/assets/images/chart/informations/video.png differ diff --git a/src/packages/components/Informations/Mores/Video/config.ts b/src/packages/components/Informations/Mores/Video/config.ts index bfeabf00..41db6a90 100644 --- a/src/packages/components/Informations/Mores/Video/config.ts +++ b/src/packages/components/Informations/Mores/Video/config.ts @@ -9,8 +9,6 @@ export const option = { dataset: video, // 循环播放 loop: true, - // 自动播放 - autoplay: true, // 静音 muted: true, // 适应方式 diff --git a/src/packages/components/Informations/Mores/Video/config.vue b/src/packages/components/Informations/Mores/Video/config.vue index 1b8a5f71..ee3f5ee8 100644 --- a/src/packages/components/Informations/Mores/Video/config.vue +++ b/src/packages/components/Informations/Mores/Video/config.vue @@ -9,9 +9,6 @@ - - 自动播放 - 循环播放 diff --git a/src/packages/components/Informations/Mores/Video/index.ts b/src/packages/components/Informations/Mores/Video/index.ts index 01998cb7..ff47d5e8 100644 --- a/src/packages/components/Informations/Mores/Video/index.ts +++ b/src/packages/components/Informations/Mores/Video/index.ts @@ -1,5 +1,5 @@ -import image from '@/assets/images/chart/informations/photo.png' -import { ConfigType, PackagesCategoryEnum } from '@/packages/index.d' +import image from '@/assets/images/chart/informations/video.png' +import { ConfigType, PackagesCategoryEnum, ChartFrameEnum } from '@/packages/index.d' import { ChatCategoryEnum, ChatCategoryEnumName } from '../../index.d' export const VideoConfig: ConfigType = { @@ -10,5 +10,6 @@ export const VideoConfig: ConfigType = { category: ChatCategoryEnum.MORE, categoryName: ChatCategoryEnumName.MORE, package: PackagesCategoryEnum.INFORMATIONS, + chartFrame: ChartFrameEnum.ECHARTS, image } diff --git a/src/packages/components/Informations/Mores/Video/index.vue b/src/packages/components/Informations/Mores/Video/index.vue index ba016d2c..e62bc709 100644 --- a/src/packages/components/Informations/Mores/Video/index.vue +++ b/src/packages/components/Informations/Mores/Video/index.vue @@ -7,8 +7,8 @@ preload="auto" crossOrigin="anonymous" playsinline + autoplay :loop="option.loop" - :autoplay="option.autoplay" :muted="option.muted" :width="w" :height="h" @@ -47,12 +47,8 @@ watch( if (!vVideoRef.value) return const video: any = vVideoRef.value video.loop = option.loop - video.autoplay = option.autoplay video.muted = option.muted - - // 控制是否播放还是停止在第一帧 - !option.autoplay && (video.pause(), (video.currentTime = 0)) - option.autoplay && video.play() + video.play() }, { immediate: true,