<video class="video" ref="myVideo" src="http://qn.feeyu.vip/202007/FvIX60Po1RsvJFP0UD19ui-t5jKI.mp4" id="myVideo" :controls="false" :show-center-play-btn="false" poster="http://qn.feeyu.vip/202007/Fn8lf1ablqFuTW0S6UeTzSsgayCd.png" @play="startPlay" @timeupdate="timeUpdate"></video>
- 发布:2020-07-04 09:05
- 更新:2024-12-05 10:47
- 阅读:1206
产品分类: uniapp/H5
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15.3 (19D76)
HBuilderX类型: 正式
HBuilderX版本号: 2.7.14
浏览器平台: Chrome
浏览器版本: 83.0.4103.116(正式版本) (64 位)
项目创建方式: HBuilderX
操作步骤:
预期结果:
<video src="http://qn.feeyu.vip/202007/FvIX60Po1RsvJFP0UD19ui-t5jKI.mp4" poster="http://qn.feeyu.vip/202007/Fn8lf1ablqFuTW0S6UeTzSsgayCd.png" webkit-playsinline="" playsinline="" class="uni-video-video" style="object-fit: contain;" id="myVideo" class="video"></video>
<video src="http://qn.feeyu.vip/202007/FvIX60Po1RsvJFP0UD19ui-t5jKI.mp4" poster="http://qn.feeyu.vip/202007/Fn8lf1ablqFuTW0S6UeTzSsgayCd.png" webkit-playsinline="" playsinline="" class="uni-video-video" style="object-fit: contain;" id="myVideo" class="video"></video>
实际结果:
<uni-video data-v-3cebc62a="" id="myVideo" class="video"><div class="uni-video-container"><video src="http://qn.feeyu.vip/202007/FvIX60Po1RsvJFP0UD19ui-t5jKI.mp4" poster="http://qn.feeyu.vip/202007/Fn8lf1ablqFuTW0S6UeTzSsgayCd.png" webkit-playsinline="" playsinline="" class="uni-video-video" style="object-fit: contain;"></video></div></div>
<uni-video data-v-3cebc62a="" id="myVideo" class="video"><div class="uni-video-container"><video src="http://qn.feeyu.vip/202007/FvIX60Po1RsvJFP0UD19ui-t5jKI.mp4" poster="http://qn.feeyu.vip/202007/Fn8lf1ablqFuTW0S6UeTzSsgayCd.png" webkit-playsinline="" playsinline="" class="uni-video-video" style="object-fit: contain;"></video></div></div>
bug描述:
我在h5项目里面,给video标签设置id,来操作视频的播放,但是经过编译后,id实际是设置在了外部标签里面,请问是bug还是操作不对