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-ranges
Via API
const svrx = ; start;
Options
-
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
-
check if the service is standing by:
curl http://localhost:8000/videos/1.mp4 -i -H "Range: bytes=0-50, 100-150"
License
MIT