How do ios and Android quit full-screen playback after Wechat video monitoring is over?

< H1 > questions such as questions < / H1 >

how do I monitor the event of exiting full screen after video full screen playback ends?

found some cases on the Internet

listen to the event of video entering and exiting full screen

//
function FullScreen() {
    var ele = document.documentElement;
    if (ele .requestFullscreen) {
        ele .requestFullscreen();
    } else if (ele .mozRequestFullScreen) {
        ele .mozRequestFullScreen();
    } else if (ele .webkitRequestFullScreen) {
        ele .webkitRequestFullScreen();
    }
}
//
exitFullscreen(elem) {
    elem = elem || document;
    if (elem.cancelFullScreen) {
        elem.cancelFullScreen();
    } else if (elem.mozCancelFullScreen) {
        elem.mozCancelFullScreen();
    } else if (elem.webkitCancelFullScreen) {
        elem.webkitCancelFullScreen();
    } else if (elem.webkitExitFullScreen) {
        elem.webkitExitFullScreen()
    }
}

// 
$(video).on("ended",function(){
    //
    exitFullscreen()
});

// webkitbeginfullscreen-webkitendfullscreen
$(video).on("webkitbeginfullscreen", function() {
    video.play();
 }).on("webkitendfullscreen", function() {
    video.pause();
 });

above you can see the method of exiting full screen exitFullscreen (), but the trigger does not respond. Google browser ~

how do I monitor the event of exiting full screen after the full screen playback of video video ends?

Mar.02,2022

Brother, have you solved this problem


approximate solution to copywriting: use the above to exit the full-screen method. However, a small number of computers cannot be used. Reload the video with load (), and then pause pause ()

.

clipboard.png


any element is displayed in full screen, less than 1kb.
https://github.com/any86/be-full

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1be2970-30b56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1be2970-30b56.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?