Résultats de Recherche
Voir tous les résulats
Domicile
Reels
Groupes
Pages
Marketplace
Plus
Groupes
Pages
Marketplace
Evènements
Blogs
Financement
Offres
Emplois
ViewMe Bonuses
Nous rejoindre
Se connecter
S’enregistrer
Mode Clair
Rechercher
Articles
Blogs
Utilisateurs
Pages
Groupes
Evènements
Aucune donnée à afficher
Mise à niveau vers Pro
Choisissez le forfait qui vous convient
Mise à niveau
// Custom JavaScript to mute all videos and reels on the Sngine site // This handles both native
tags and Plyr players // It also observes for dynamically loaded content (e.g., in the timeline feed) (function() { function muteAllVideos() { document.querySelectorAll('video').forEach(function(video) { if (video.muted) return; // Skip if already muted video.setAttribute('muted', 'muted'); // Set attribute for persistence video.muted = true; // Mute native video video.volume = 0; // Ensure volume is zero // If using Plyr player (as in Sngine) if (video.plyr) { video.plyr.muted = true; } // Optional: Enable autoplay if not already set (browsers allow muted autoplay) // Uncomment the lines below if you want to force autoplay on all videos // video.setAttribute('autoplay', ''); // video.autoplay = true; // video.setAttribute('playsinline', ''); // For mobile compatibility // if (video.plyr) { // video.plyr.autoplay = true; // } }); } // Run on initial load if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', muteAllVideos); } else { muteAllVideos(); } // Observe for new videos added dynamically (e.g., scrolling in timeline) const observer = new MutationObserver(muteAllVideos); observer.observe(document.body, { childList: true, subtree: true }); })();