Streaming flv video to JW FLV media player 4.0

Thomas iamkenzo at gmail.com
Fri Jul 4 00:34:54 MSD 2008


Hi,

Using this flash player in version 4.0:
http://www.jeroenwijering.com/?item=JW_FLV_Player

I have a problem when scrubbing. I think it is because, JW has updated
his code to send the following request:
myvideo.flv?start=2659763&width=280&client=FLASH%20MAC%209,0,124,0&version=4.0%20$Rev:%2030%20

And I guess that Nginx doesn't like such a request, because what
happens when scrubbing, is that the video starts back at the
beginning. Surprisingly, the buffering occurs at the correct spot of
the scrub, but the video starts at the beginning of the file. I
suspect that Nginx sends back to the flash player the full request (or
at least a corrupted starting point) and therefore the player doesn't
know where to start, and so it starts at the beginning of the file.

In the previous version 3.16, the request would have only been:
myvideo.flv?start=2659763

So I have edited the source code of JWFLV to only append the start
parameter, and it works. But actually I would like to keep some of the
appended parameters and still have nginx work. Could this be handled
by a rewrite rule? How does Nginx actually treats the requests when
using the flv module?

I tried the following directives with no success, it keeps looping
back at the beginning:
---
  rewrite ^/(videos)/([\w|-]+\.flv\?start=\d+).* /$1/$2 last;
  location ~ ^/videos/[\w|-]+\.flv {
    root          /public;
    flv;
  }





More information about the nginx mailing list