svrx-plugin-http-ranges
v0.0.5
Published
Handle the requests passed by HTTP Ranges
Maintainers
Readme
svrx-plugin-http-ranges
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-rangesVia API
const svrx = require("@svrx/svrx");
svrx({ plugins: ["http-ranges"] }).start();Options
just put the
.mp4files under any of those directories your current running svrx instance has permission to access to, eg.process.cwd()/videos/1.mp4check if the service is standing by:
curl http://localhost:8000/videos/1.mp4 -i -H "Range: bytes=0-50, 100-150"
License
MIT
