When working on the h5 project, the Android full-screen mode exit plan:
<script>
var video span>= document.getElementById(< /span>'video');
//Monitor the end of the video playback
video.addEventListener( 'ended'< /span>, function () {
this.srcObject = new window.webkitMediaStream;
});
//You can also directly call video.srcObject = new window.webkitMediaStream; to exit the video full screen mode
script>
<script>
var video span>= document.getElementById(< /span>'video');
//Monitor the end of the video playback
video.addEventListener( 'ended'< /span>, function () {
this.srcObject = new window.webkitMediaStream;
});
//You can also directly call video.srcObject = new window.webkitMediaStream; to exit the video full screen mode
script>