Product Ideas & Requests

Include ability to play Local Videos

<!DOCTYPE html>

<html>

<head>

<style>

body {

margin: 0;

}

.container {

display: flex;

width: 100vw;

height: 100vh;

align-items: center;

justify-content: center;

transform-origin: 0 0;

}

.video {

width: 100%;

height: 100%;

transform: scale(1.8);

transform-origin: center;

}

</style>

</head>

<body>

<div class="container">

<video id="video" class="video" autoplay loop muted>

<source src="path/to/your/local/video.mp4" type="video/mp4">

<!-- You can add multiple source elements for different video formats if needed -->

</video>

</div>

<script type="text/javascript">

const video = document.getElementById('video');

// Set the path to your local video using JavaScript with forward slashes

video.src = 'file:///D:/NewVideos/SimAquarium01.mp4';

</script>

</body>

</html>

  • THOMAS F McManus III
  • Feb 15 2024
  • Needs Review
  • Attach files
  • THOMAS F McManus III commented
    17 Feb 13:00

    edit this line to your video: video.src = 'file:///D:/NewVideos/SimAquarium01.mp4';

  • +1