How to realize the function of video tag playing full screen and pausing display advertisement

as the title: how to achieve the video tag full screen playback and pause display advertising function

Mar.13,2021

var video=document.getElementById ("v");
video.addEventListener ('play',function () {

)
$('.').hide();     

});
video.addEventListener ('pause',function () {

)
$('.').show();  

})


listen for vedio playback and pause events

Menu