mse-stream-grabber

0.0.3 • Public • Published

Webcam Grabber

This is a simple npm module for grabbing input from a MediaSrouce Extensions stream. webcam. It's essentially a very lightweight convenience wrrapper around hls.js, so you may want to look there for more info.

Usage

 
var mseStreamGrabber = require('mse-strem-grabber');
var src = 'http://www.streambox.fr/playlists/test_001/stream.m3u8';
var video = mseStreamGrabber(src, onStreamLoaded);
 
document.body.appendChild(video);
 
function onStreamLoaded(err, v) {
    if(err) {
        throw err;
    }
 
    v.play();
};
 

Example

To run the included example:

npm install
npm run example

The example uses the budo development server to run.

Readme

Keywords

none

Package Sidebar

Install

npm i mse-stream-grabber

Weekly Downloads

2

Version

0.0.3

License

ISC

Last publish

Collaborators

  • amdayton