Streaming flv video to JW FLV media player 4.0

Thomas iamkenzo at gmail.com
Fri Jul 4 15:30:57 MSD 2008


Why is my rewrite rule not working as expected? My video still doesn't
want to scrub correctly.

Using the following config:
---
  location ~ ^/videos/[\w|-]+\.flv.* {
    rewrite ^/(videos)/([\w|-]+\.flv\?start=\d+).* /$1/$2 break;
    root          /public;
    flv;
  }
---

Using my regexp tool, I get the following:

Request:
/videos/video.flv?start=3850792&width=280&client=FLASH%20MAC%209,0,124,0&version=4.0%20$Rev:%2030%20$

Gets rewritten as:
/videos/video.flv?start=3850792

Am I not understanding how Nginx rewrite and location work?





More information about the nginx mailing list