The webserver-modules ngx_http_mp4_module
or mod_h264_streaming
allow Flash-clients to seek a video beyond the downloaded buffer line, using a "start"-parameter, e.g.:
http://server.com/path/to/video.mp4?start=10
Is there a chance to enable this feature in mediaelement.js?
At the moment, pseudostreaming in Mediaelement flash player is not implemented.
Look at this thread: http streamed MP4 vidéo is not randomly seekable in flash. But someone is working on it; hopefully, we'll get the feature in the future :)
Edit :
They're now working on it (see this news). It only works with mp4 files at the moment. You have to set enablePseudoStreaming
to true
to enable the feature.
Sample code:
var Player = new MediaElement('video_player', {
features: [ 'flash' ],
enablePseudoStreaming: true
});
The player will then make request such as this one:
http://example.com/video.mp4?start=40
The start query parameter specify the second in which you want to start pseudostream. You could also set another one with the option pseudoStreamingStartQueryParam
.