video progress bar is not working when I use python server

258 Views Asked by At

I am creating a web page like Youtube, the upload works but when showing the page to see the downloaded video and wanting to go to a specific position using the progress bar of the video controls, it restarts from scratch again, unless it loads all the metadata and restart the page, I use django to create the page but also if I use a static page like this:

<body>
<video controls preload width="640" height="360">
      <source src="myvideo.mp4" type="video/mp4" />
    </video>
</body>

and then run the command :

python -m http.server 5000

it does not work for me either

I try changing the time using

video.currentTime = 14; 

in javascript but it causes an error

enter image description here

0

There are 0 best solutions below