Skip to content

indrajaala/http-media-streamer

Repository files navigation

http-media-streamer

npm example workflow example workflow

Node.js Express module to stream Video and Audio files.

Installation

npm i http-media-streamer

Usage

import mediaStreamer from 'http-media-streamer';
import express from 'express';

const app = express();

app.get('/', mediaStreamer);

app.listen(3000, () => {
    console.log(`App listening on http://localhost:3000`);
});

in browser

send the request with absolute path of the file as query parameter filePath

<video controls>
  <source src="http://localhost:3000/?filePath=/home/xyz/video.mp4" type="video/mp4">
</video>

Supported formats

https://support.mozilla.org/en-US/kb/html5-audio-and-video-firefox#w_supported-formats

Build

npm run build

Test

npm run test

License

MIT

About

http media streamer - express module to stream video and audio files

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published