Skip to content

Platform independent binary installer of mediamtx for node projects

License

Notifications You must be signed in to change notification settings

angeldeejay/node-mediamtx-installer

Repository files navigation

mediamtx installer

Platform independent binary installer of mediamtx for node projects. Useful for tools that should "just work" on multiple environments.

Installs a binary of mediamtx for the current platform and provides a path and version. Supports Linux, Windows and Mac OS/X.

A combination of package.json fields supportedPlatforms, cpu, and os let's the installer only download the binary for the current platform. See also "Warnings during install", below.

Install

npm install --save mediamtx-installer

Usage examples

const mediamtx = require('mediamtx-installer');
console.log(mediamtx.path, mediamtx.version);
const mediamtxPath = require('mediamtx-installer').path;
const spawn = require('child_process').spawn;
const mediamtx = spawn(mediamtxPath, args);
mediamtx.on('exit', onExit);

About

Platform independent binary installer of mediamtx for node projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published