Giter Site home page Giter Site logo

nginx-master-playlist-module's Introduction

nginx-master-playlist-module

this thing only works in special environment, so it's not written to work the way you want it can generate akamai token as query string to access protected location by akamai enabled token

Example

 location /master {
                alias /data/stream;
                vod_master_playlist;
                vod_location hlsstreaming;
                vod_host localhost;
        }

then to request master playlist, do this:

$ curl "http:/localhost/test3.m3u8"

result:

	#EXTM3U
	#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1560000,RESOLUTION=640x360,CODECS="mp4a.40.2, avc1.4d4015"
	http://localhost/hlsstreaming/test_360.mp4/index.m3u8
	#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=3120000,RESOLUTION=854x480,CODECS="mp4a.40.2, avc1.4d4015"
	http://localhost/hlsstreaming/test_480.mp4/index.m3u8
	#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=5120000,RESOLUTION=1280x720,CODECS="mp4a.40.2, avc1.4d4015"
	http://localhost/hlsstreaming/test.mp4/index.m3u8	

Directive

vod_master_playlist : enable this module

vod_location : location where you configure your vod in nginx

vod_host: your domain name

playlist_type: hls, dash, mss, hds, default is hls and it supports hls and dash by now

vod_akamai_token: enable akamai token insertion. with this directive, this module will generate akamai token query strings and forward to location with akamai token enabled, to access protected content.

vod_akamai_token_key: secret key (in hex)

vod_akamai_token_param_name: default hdna

vod_akamai_token_window: expire time of generated token (default 86400)

vod_akamai_token_acl: akamai token acl, default baseuri

nginx-master-playlist-module's People

Contributors

whatvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

nginx-modules

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.