Package Exports
- file-streaming
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (file-streaming) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A basic module to stream files in hls
const fileStreaming = require('file-streaming');
const emission = new fileStreaming('/home/user/streaming');
function emit(input) {
emission.emit(input)
.then( e => {
console.log(`Finish: ${e.input}`);
})
.catch(console.error);
}
emit('/home/user/videos/Test1.mp4');
setTimeout( () => {
emit('/home/user/videos/Test2.mp4');
}, 60000);