加载后无法在android上显示控件的html5视频 [英] html5 videos not showing controls on android once loaded

查看:74
本文介绍了加载后无法在android上显示控件的html5视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天.我目前正在使用具有html5视频的framework7开发混合应用程序.视频可以正常播放,并且可以正常加载,但是只要视频以全屏显示或控件从视频播放器界面消失,当我按视频播放时,都不会再次显示.我正在使用<video width="100%" height="auto" controls </video>.是否有办法解决此问题,或者这是混合应用程序本身的限制吗?谢谢您的帮助.

Good day. I am currently working on a hybrid app using framework7 which has an html5 video. The video works fine and loads just ok but whenever the video goes on fullscreen or the controls disappear from the video player interface it wont show up again when I press the video playing. I am using <video width="100%" height="auto" controls </video>. Would there be a way to fix this or is this a limitation on the hybrid app itself? Thank you for your help.

推荐答案

该问题是由fastclick引起的.将class no-fastclick添加到您的视频代码中,它将解决您的问题.

That issue is caused by fastclick. Add class no-fastclick to your video tag and it will solve your issue.

这篇关于加载后无法在android上显示控件的html5视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆