This article needs a technical review. How you can help.

The active read-only property of the MediaStream interface returns a Boolean value that will return to be  true if the MediaStream is active, else false.


var isActive =;


A Boolean value that returns true if the MediaStream is active, or false otherwise.


var promise = navigator.mediaDevices.getUserMedia({ 
  audio: true, 
  video: true 

promise.then(function(stream) {
  var startBtn = document.querySelector('#startBtn');
  startBtn.disabled =; 


Specification Status Comment
Media Capture and Streams
The definition of 'active' in that specification.
Editor's Draft Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) ? ? ? ?
Feature Android Android Webview Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support (Yes) ? ? ? ? ? (Yes)

Document Tags and Contributors

 Contributors to this page: PushpitaPikuDey, jpmedley
 Last updated by: PushpitaPikuDey,