[Answer]-Video.js scub bar not working?

1👍

I noticed this error message in the django web server log.

Exception happened during processing of request from ('192.168.1.70', 54466)
Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 582, in process_request_thread
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 323, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\site-packages\django\core\servers\basehttp.py", line 126
  , in __init__
    super(WSGIRequestHandler, self).__init__(*args, **kwargs)
  File "C:\Python27\lib\SocketServer.py", line 641, in __init__
    self.finish()
  File "C:\Python27\lib\SocketServer.py", line 694, in finish
    self.wfile.flush()
  File "C:\Python27\lib\socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
    error: [Errno 10053] An established connection was aborted by the software in your host machine

I belive that the issue may be with DJANGO’s test server. I don’t belive this to be an actual issue with video-js.

👤cph

0👍

It should not work. Django should not “handle” videos or other static files. Is is job ob Web Servers (nginx, apache, ….). Django will only give url to static file and Web Server will process it.
When you deploy your application you will catch /static/ or /media/ urls requests with Web Server.

For nginx as an example we have this.

👤DAKZH

0👍

I’m not positive that this will fix your issue completely, but your video.js embed code is a little messed up. You have two video tags, and one is inside the fallback paragraph (“vjs-no-video”) with no sources. Compare it to the embed code on videojs.com.

<video id="MY_VIDEO_1" class="video-js vjs-default-skin" controls
 preload="auto" width="640" height="264" poster="MY_VIDEO_POSTER.jpg"
 data-setup="{}">
 <source src="MY_VIDEO.mp4" type='video/mp4'>
 <source src="MY_VIDEO.webm" type='video/webm'>
 <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
</video>

If that doesn’t fix the issue, posting a live example or any errors that show up in the browser error console will help debug the issue.

👤heff

Leave a comment