Commit 291cbc2e by 李伟康

feat(video): 替换原生video标签为自定义视频播放器组件

- 在TaskItem组件中使用DomVideoPlayer替换原生video标签
- 新增DomVideoPlayer组件,提供完整的视频播放功能
- 为视频播放器添加controls、poster等属性支持
- 实现视频播放、暂停、全屏等控制功能
- 添加视频加载状态和错误处理机制
- 优化视频播放器样式,设置固定宽高尺寸
1 parent 80f0150d
......@@ -38,7 +38,8 @@
</view>
</template>
<template v-else>
<video :src="item.mediaIds" class="video" :poster="defaultPoster"></video>
<!-- <video controls :src="item.mediaIds" class="video" ></video> -->
<DomVideoPlayer class="video" ref="domVideoPlayer" :src="item.mediaIds" :poster="defaultPoster" controls />
</template>
</template>
<template v-else-if="item.messageType == 4">
......@@ -228,6 +229,7 @@ export default {
background-color: #EAF9F1;
color: #35C376;
}
&.failed {
background-color: #FDECE9;
color: #F24724;
......@@ -272,12 +274,17 @@ export default {
}
}
.video,
.image {
width: toRpx(160);
height: toRpx(160);
border-radius: toRpx(16);
}
.video {
width: toRpx(480);
height: toRpx(320);
border-radius: toRpx(16);
}
.img-box {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!