function stopAllTracks(stream) {
  var tracks = stream.getTracks();
  for (var i = 0, end = tracks.length; i < end; ++i) {
    tracks[i].stop();
  }
  chrome.test.assertFalse(stream.active);
}
// Stops all the tracks in a MediaStream.
Stops all the tracks in a MediaStream.
Stops all the tracks in a MediaStream .
function stopAllTracks(stream) {
  var tracks = stream.getTracks();
  for (var i = 0, end = tracks.length; i < end; ++i) {
    tracks[i].stop();
  }
  chrome.test.assertFalse(stream.active);
}
function stopAllTracks ( stream ) { var tracks = stream . getTracks ( ) ; for ( var i = 0 , end = tracks . length ; i < end ; ++ i ) { tracks [ i ] . stop ( ) ; } chrome . test . assertFalse ( stream . active ) ; }
Stops all the tracks in a MediaStream.
Stops all the tracks in a MediaStream .