mod_flv

mod_flv provides flash pseudo streaming

flv (action)

pseudo stream the current file as flash

flv;

Lets flash players seek with the “start” query string parameter to an (byte) offset in the file, and prepends a simple flash header before streaming the file from that offset.

Uses “video/x-flv” as hard-coded content type.

Example

if phys.path =$ ".flv" {
	flv;
}

Example

Use caching and bandwidth throttling to save traffic. Use a small burst threshold to prevent the player from buffering at the beginning.

This config will make browsers cache videos for 1 month and limit bandwidth to 150 kilobyte/s after 500 kilobytes.

if phys.path =$ ".flv" {
	expire "access 1 month";
	io.throttle 500kbyte => 150kbyte;
	flv;
}