Seeking videos beyond the buffer line in Flash-mode

守給你的承諾、 提交于 2020-01-01 17:09:08

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/15717430/seeking-videos-beyond-the-buffer-line-in-flash-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!