Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.1k views
in Technique[技术] by (71.8m points)

微信小程序 视频的poster一闪而过

代码

 <video
    id="banner-video" 
    src="{{QINIU_URL + videoUrl}}" 
    poster="{{QINIU_URL + posterUrl}}"
    show-center-play-btn='{{false}}' 
    show-play-btn="{{false}}"
    controls
    picture-in-picture-mode='{{[]}}'
   ></video>
问题描述:视频和图片以轮播图的形式展示,当左右滑动,或者点进去再次返回的时候,微信开发工具中的poster可以完美显示,但是真机调试或者测试版的poster都会在作用滑动或者点击视频再次返回的时候会消失,然后点击才会再次出现

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

层级高度问题?没播放的时候先把 Video 隐藏掉试试?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...