Forum Discussion
stephanefedou-4
6 months agoCommunity Member
Try this on start chrono :
// Sélectionne toutes les balises vidéo sur la page
const videos = document.querySelectorAll('video');
// Boucle à travers chaque vidéo
videos.forEach(video => {
// Désactive la fonctionnalité "Picture in Picture"
video.disablePictureInPicture = true;
});
- BarbaraJacobs-15 months agoCommunity Member
Thank you, Stephane! It is simpler. I'll give it a try! So far, using a screen combined with JavaScript is keeping (discouraging) learners from selecting the option for full screen available from within the browser. This does not address those who can use a keyboard to bypass the option.