我使用下面的代码来播放视频 请参阅详情链接:http://liveweave.com/gaDcmn
var v = document.getElementById("myVideo");
$(document).on('click', v, function (e) {
if (v.paused === false) {
v.pause();
} else {
v.webkitEnterFullscreen();
v.play();
}
return false;
});
<video width="80%" height="auto" controls="controls" id="myVideo">
<source src="video/kitkat_converted.mp4" type="video/mp4" />
</video>
现在 我可以在我的brwoser中播放暂停vidoe,但我在android浏览器中遇到了问题:
1. 1:i want that when we click play button it plays in fullscreen mode
but when i click again it does not gets paused
2: Problem in both android When i backpress fullscreen video in android or browser exitfullscreen video
Video must get paused but it keeps on playing , what to do to pause video when not in fullscreen mode
该怎么做