1.0.0 • Published 2 years ago

express-stream-range-mp4 v1.0.0

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

express-stream-range-mp4

Stream your mp4 videos with partial content

This package streams your mp4 videos with partial content inside your video player. Compatible with IOS.

You need express library.

Installation

npm i express-stream-range-mp4

Usage

const ESRM = require("express-stream-range-mp4");

app.get("/my-route-stream", (req, res) => {
  const videoPath = `video-path-file.mp4`;

  const esrm = new ESRM(req, res);
  esrm.stream(videoPath);
});