February 2018
Beginner to intermediate
348 pages
9h 40m
English
FLV and MP4 are separate modules, enabling a simple functionality that becomes useful when serving Flash (FLV) or MP4 video files. It parses a special argument of the request, start, which indicates the offset of the section the client wishes to download or pseudo-stream. The video file must thus be accessed with the following URI: video.flv?start=XXX. This parameter is prepared automatically by mainstream video players, such as JWPlayer.
To utilize this feature, simply insert the .flv or .mp4 directive in the location of your choice:
location ~* \.flv {
flv;
}
location ~* \.mp4 {
mp4;
}
Be aware that if Nginx fails to seek the requested position within the video file, the ...
Read now
Unlock full access