/
Automatically Play Videos with Audio Despite Chromium Restrictions
Automatically Play Videos with Audio Despite Chromium Restrictions
The following Chromium flags are not yet supported on BrightSign players:
disable-user-media-security
allow-hidden-media-playback
autoplay-policy="no-user-gesture-required"
To automatically play videos with audio despite these Chromium autoplay restrictions, start your video with its audio muted and activate the audio shortly after video playback begins. This will work on a player’s browser (not in a Chrome browser).
Example
In the example below:
source
is set tovideo.mp4
type
ismp4
width
is640
height
is360
The audio is activated 100 milliseconds into the video
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<video id="myVideo" width="640" height="360" autoplay muted>
<source src="video.mp4" type="video/mp4">
</video>
<script>
const videoElement = document.getElementById("myVideo");
videoElement.addEventListener("canplaythrough", function() {
setTimeout(function() {
videoElement.muted = false;
}, 100); // Adjust the delay (in milliseconds) if necessary
});
</script>
</body>
</html>
, multiple selections available,
Related content
HTML Playback Options on Series 5 Players
HTML Playback Options on Series 5 Players
More like this
Audio Stream
Audio Stream
More like this
HTML Video
HTML Video
More like this
Audio Resource Management
Audio Resource Management
More like this
Display YouTube Videos in BrightAuthor
Display YouTube Videos in BrightAuthor
More like this
BSN.Cloud Ports and URLs for Players and Software
BSN.Cloud Ports and URLs for Players and Software
Read with this