Skip to content Skip to sidebar Skip to footer

Seeking Functionality On Mp4 Video In Html5 Is Not Working

I have an asp.net mvc 5 site and on the home page I need to display a video in mp4 format. Everything works nice except the seeking functionality. I spent several hours looking fo

Solution 1:

The problem is most likely on the server side, not the client side.

Depending on how you host your video the seek functionality will work slightly differently.

For example if you are using a 'proper' streaming server and an adaptive bit rate streaming protocol (like HLS, Smooth streaming, MPEG DASH etc) then your client will be able to request a particular 'chunk' of the video easily and jump to it (i.e. seek functionality).

If you are using HTTP 'pseudo' streaming (which is probably more likely) then your client should still be able to request just a certain part of the video, but to support this your server has to support 'Accept-Ranges' response header.

This mechanism essentially allows the client request just a portion of the file form the server - it allows a browser save bandwidth by just downloading small chunks of a video before they are to play rather than always downloading the whole video, and it also allows it seek easily by requesting the chunk corresponding to the place the user is seeking to.

Not all servers support this or have it configured out of the box, so this may be where your problem sits.

Note that your mp4 video also has to be set up to have the metadata at the start to support playback before it has downloaded (see: http://multimedia.cx/eggs/improving-qt-faststart/), but from your description it sounds like you already have this.


Post a Comment for "Seeking Functionality On Mp4 Video In Html5 Is Not Working"