如何使用jQuery/javascript从浏览器中使用本机播放器在手机上播放全屏视频?
我试图让我的视频播放在用户的手机上时,一个按钮被点击。我尝试过使用绝对定位元素,但它没有发挥作用。如何使用jQuery或javascript在单击时播放视频 编辑 这段视频只是我的本地视频如何使用jQuery/javascript从浏览器中使用本机播放器在手机上播放全屏视频?,javascript,html,video,mobile,html5-video,Javascript,Html,Video,Mobile,Html5 Video,我试图让我的视频播放在用户的手机上时,一个按钮被点击。我尝试过使用绝对定位元素,但它没有发挥作用。如何使用jQuery或javascript在单击时播放视频 编辑 这段视频只是我的本地视频 <video> <source url="mysite.com/example.mp4" type="video/mp4"> </video> 您没有指定链接到视频的元素类型。如果是iframe,请使用allowfullscreen <iframe src
<video>
<source url="mysite.com/example.mp4" type="video/mp4">
</video>
您没有指定链接到视频的元素类型。如果是iframe,请使用allowfullscreen
<iframe src="http://player.example.com" width="560" height="315" frameborder="0" allowfullscreen></iframe>
如果您使用的是HTML5视频标签,则必须使用requestFullscreen方法