JW player streaming media cannot be dragged. nginx cannot use a proxy to support FLV.

Source: Internet
Author: User
Tags flv file

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.