Skip to content

Antyfive/teo-streamer-extension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

teo-streamer-extension

Teo.JS streamer extension. You can use this extension for streaming of videos, music files etc.

Settings

Here is an object of default settings:

{
    // download file instead of streaming it
    forceDownload: false,
    // max age for Cache-Control header
    maxAge: 3600,
    // Allow CORS flag
    cors: false,
    // (limit) server bandwidth (bytes/second). See https://www.npmjs.com/package/throttle
    throttle: false
}

How To Use It

  • Install extension
  • Add the following object to your Teo.JS app configuration file:
extensions: [
    // e.g.
    {
        name: "streamer",                     // name in registry of extensions
        module: "teo-streamer-extension"      // npm module
        config: {                             // extension's configuration. Will be passed to the extension, as a second argument
           // download file instead of streaming it
            forceDownload: false,
            // max age for Cache-Control header
            maxAge: 3600,
            // Allow CORS flag
            cors: false,
            // (limit) server bandwidth (bytes/second). See https://www.npmjs.com/package/throttle
            throttle: false
        }
    }
]

About

Teo.JS streamer extension.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published