I have four videos in one div and I have another one video in another div I have done an event listener that will apply for the all five video as you see
var videoAct = document.querySelectorAll('video'),
mainVideo = document.getElementById('mainvideo'), // this id for the video in (mainV )
allVideo = document.getElementById('allvideo'), // this id for the div that contain the four video
mainV = document.getElementById('mainv'); // this id for the div that contain one video
videoAct.forEach(function(video) {
video.addEventListener('mouseover', function() {
this.play();
video.muted = true;
});
video.addEventListener('mouseleave', function() {
this.pause();
});
})
so how I remove this event listener from my one video in (mainV ) so that I work with its default setting