Recently, we are studying the playing of online streaming media videos. The following technologies are used:
1 conversion uses FFMPEG + mencoder (when FFMPEG does not support video formats, you can use mencoder for conversion)
2. The key frame injection tool uses yamdi.
3. Web containers use nginx for streaming media support (FLV)
4. JW player is used for front-end playback.
If you want to do research in this area, the above combinations are well-configured and I found it through a series of searches.
In other words, I encountered a problem, that is, when I used JW player to play streaming media, I wanted to drag the progress, but every time it failed, it returned to the origin. After a while, I found that my FLV file was obtained through the nginx proxy to my tomcat container. This is not the case, so I changed the configuration to let nginx direct to the file address, in this way, the drag function is OK. As follows:
Location ~ \. FLV {
FLV;
Root D: \ Dev \ app;
}
Attached to my JW player configuration parameters
jwplayer("flashContent").setup({flashplayer: "/jwplayer/player.swf",height: 270,width: 480,file: "${file_url}_final.flv",stretching: 'fill',streamer:"start",image:"${file_url}.jpg",provider: "http",});
I will not go into details about other use cases. I have posted several blog posts on the Internet that I have benefited a lot from:
JW player use: http://j-coriolanus.blog.163.com/blog/static/64211038200992011745532/
JW player + nginx: http://www.iinuu.eu/en/it-guru/flv-streaming-using-nginx-and-jw-player-5-1