svrx-plugin-http-ranges

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i svrx-plugin-http-ranges

Weekly Downloads

14

Version

0.0.5

License

MIT

Unpacked Size

101 MB

Total Files

24

Last publish

Collaborators

  • hsiaosiyuan0