Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

stop-media-stream

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Issues
File Explorer

Advanced tools

stop-media-stream

Stops all tracks in a MediaStream

    1.0.0latest

Version published
Maintainers
1
Yearly downloads
10,856
increased by117.12%

Weekly downloads

Readme

Source

stop-media-stream

npm build status downloads

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

import stopMediaStream from 'stop-media-stream'; // get a media stream somehow navigator.mediaDevices.getUserMedia(constraints) .then(mediaStream => { // Use your media stream and when you're done with it: stopMediaStream(mediaStream); });

Contributing

Please feel free to submit any issues or pull requests.

License

MIT

Keywords

FAQs

What is stop-media-stream?

Stops all tracks in a MediaStream

Is stop-media-stream popular?

The npm package stop-media-stream receives a total of 221 weekly downloads. As such, stop-media-stream popularity was classified as not popular.

Is stop-media-stream well maintained?

We found that stop-media-stream demonstrated a not healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.

Last updated on 05 Nov 2019
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc