Skip to content

The module provides pseudo-streaming server-side support for Flash Video (FLV) files.

Notifications You must be signed in to change notification settings

yanaren/eflv-nginx-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Name

eflv-nginx-module - the module provides pseudo-streaming server-side support for Flash Video (FLV) files.

This module is not distributed with the Nginx source. See the installation instructions.

Table of Contents

Description

It handles requests with the start argument in the request URI’s query string specially, by sending back the contents of a file starting from the requested byte offset and with the prepended FLV header.

Back to TOC

Installation

 wget 'http://nginx.org/download/nginx-1.9.9.tar.gz'
 tar -xzvf nginx-1.9.9.tar.gz
 cd nginx-1.9.9/

 # Here we assume Nginx is to be installed under /opt/nginx/.
 ./configure --prefix=/opt/nginx \
         --add-module=/path/to/eflv-nginx-module

 make -j2
 make install

Example Configuration

location /video1/ {
    tflv;
}

location /video2/ {
    sflv;
}

With this configuration, the following URIs are supported for the “/var/video/test.mp4” file:

http://video.example.com/video1/test.flv?start=1.000&end=2.200
http://video.example.com/video2/test.flv?start=1.000&end=2.200

Back to TOC

Directives

tflv

syntax: tflv

default: -

context: http, server, location, location if

Turns on module processing in a surrounding location with time.

sflv

syntax: sflv

default: -

context: http, server, location, location if

Turns on module processing in a surrounding location with position.

Copyright and License

This module is licensed under the BSD license.

Copyright (C) 2011-2016, Xunen leixunen@gmail.com and others. Copyright (C) 2011-2016, Leevid Inc.

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Back to TOC

See Also

Back to TOC

About

The module provides pseudo-streaming server-side support for Flash Video (FLV) files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages