I’m trying to have a short video play in the background of my website just the once. the video plays fine on chrome when viewed on desktop computer however when view on a mobile device in chrome/safari it does not play.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
#background-video {
position: fixed;
align-items: center;
width: 100vw;
height: 100vh;
z-index: -1;
right: 0;
}
</style>
</head>
<body>
<video autoplay muted id="background-video">
<source src="BGVid/backgroundVid.mp4" type="video/mp4">
Your browser does not support the video tag.
</video>
</body>
</html>