uniapp开发的APP,video组件中设置duration视频时长属性,在安卓手机设备不起作用,在ios设备上管用,应该需要怎么改。

h***@163.com
- 发布:2023-10-17 09:45
- 更新:2023-10-17 14:23
- 阅读:353
h***@163.com (作者)
测试设备用的小米10pro和华为mate40PRO还有OPPO手机,设置了一下duration这个配置,没有生效,视频还是之前的时长。这个是源代码
<video v-show="videoShow" duration="180" :autoplay="true" :src="curriculumData.curr.playUrl" :poster="curriculumData.curr.thumbnail" controls @play="video_play" @pause="video_pause" :title="curriculumData.curr.title" :vslide-gesture-in-fullscreen="true"></video>
2023-10-17 16:26
h***@163.com (作者)
苹果设备上面运行了一下,可以将视频时长控制到3分钟
2023-10-17 16:27
h***@163.com (作者)
找到原因了,我把自动播放属性功能去掉,视频时长就正常了,谢谢
2023-10-17 16:44
喜欢技术的前端
回复 h***@163.com: 解决了就好(●'◡'●)
2023-10-17 17:46