How to use the node-video-lib.DASHPacketizer function in node-video-lib

To help you get started, we’ve selected a few node-video-lib examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gkozlenko / node-media-server / routes / vod / dash.js View on Github external
router.get(/^(.*)\/(audio|video)\.sidx/, Movie.openMovie, (req, res) => {
    let type = req.params[1];
    req.logger.info('Type:', type);
    let buffer = VideoLib.DASHPacketizer[`${type}Index`](req.fragmentList);
    res.send(buffer);
});

node-video-lib

Node.js Video Library / MP4 & FLV parser / MP4 builder / HLS muxer

MIT
Latest version published 7 months ago

Package Health Score

59 / 100
Full package analysis