stop-media-stream
Stops and removes all tracks in a MediaStream.
This will release the camera, if the MediaStream was obtained with getUserMedia.
Installation
Install with:
$ npm install stop-media-stream
Or:
$ yarn add stop-media-stream
Usage
; // get a media stream somehownavigatormediaDevices ;
Contributing
Please feel free to submit any issues or pull requests.
License
MIT