0.0.5 • Published 4 years ago

svrx-plugin-http-ranges v0.0.5

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

svrx-plugin-http-ranges

svrx npm

A Server-X plugin to demonstrate how to handle HTTP range requests, more specifically it's used as the server to develop your custom Media Source Extension strategy.

Usage

Please make sure that you have installed svrx already.

Via CLI

svrx -p http-ranges

Via API

const svrx = require("@svrx/svrx");

svrx({ plugins: ["http-ranges"] }).start();

Options

  1. just put the .mp4 files under any of those directories your current running svrx instance has permission to access to, eg. process.cwd()/videos/1.mp4

  2. check if the service is standing by:

    curl http://localhost:8000/videos/1.mp4 -i -H "Range: bytes=0-50, 100-150"

License

MIT

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago