I want to extract the size of the video file in megabytes, If there is a way, just inspiration is enough
<video id="myVideo" width="200" controls>
<source src="https://www.w3schools.com/JSREF/movie.mp4" type="video/mp4">
</video>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myVideo").filesSize;
document.getElementById("demo").innerHTML = x + "MB";
}
</script>