mirror of
https://gitlab.com/vyla-entertainment/home-frontend.git
synced 2026-11-16 22:07:19 -05:00
13 lines
388 B
JavaScript
13 lines
388 B
JavaScript
document.addEventListener("DOMContentLoaded", () => {
|
|
document.querySelectorAll("video").forEach(video => {
|
|
video.muted = true;
|
|
video.setAttribute("muted", "");
|
|
video.setAttribute("playsinline", "");
|
|
video.setAttribute("webkit-playsinline", "");
|
|
video.preload = "auto";
|
|
|
|
video.load();
|
|
|
|
video.play().catch(() => { });
|
|
});
|
|
}); |