HTML5 video element non-seekable when using Django development server

Posted by Ory Band on Stack Overflow See other posts from Stack Overflow or by Ory Band
Published on 2010-12-27T13:00:03Z Indexed on 2010/12/27 20:54 UTC
Read the original article Hit count: 172

Filed under:
|
|
|
|

Hey everyone.

I've got a Django app serving a webpage with an HTML5 element. There's a wierd "feature", turning the video element to be non-seekable: video.seekable returns a timeRanges object with length=0, whereas it should be length=1.

This means I can't edit the video. JavaScript can't do anything either.

The thing is, when I upload the problematic webpage, statically - no Django, just plain HTML/JS/CSS - to my website for testing, it works fine - length=1.

However, if I try to serve the same static page on my Django dev server still gives the same problem.

I am using Django's static serving for dev/debug purposes - Do you have any idea what is causing this, or how can I fix it?

Thanks.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about python