Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 726217 of LocalMediaStream

  • Revision slug: Web/API/LocalMediaStream
  • Revision title: LocalMediaStream
  • Revision id: 726217
  • Created:
  • Creator: kscarfone
  • Is current revision? No
  • Comment Editorial review

Revision Content

{{WebRTCref("MediaStream API")}} {{SeeCompatTable}}

The LocalMediaStream interface represents a stream of media content fetched from a local data source. This is the interface returned by getUserMedia().

Methods

{{domxref("LocalMediaStream.stop()")}}
Stops the stream. When the source of the stream is a connected device (such as a camera or microphone), stops capture on the device.

See Also

Revision Source

<div>{{WebRTCref("MediaStream API")}} {{SeeCompatTable}}</div>

<p>The <strong><code>LocalMediaStream</code></strong><strong> </strong>interface represents a stream of media content fetched from a local data source. This is the interface returned by <code><a href="/en-US/docs/WebRTC/navigator.getUserMedia" title="/en-US/docs/WebRTC/navigator.getUserMedia">getUserMedia()</a></code>.</p>

<h2 id="Methods">Methods</h2>

<dl>
 <dt>{{domxref("LocalMediaStream.stop()")}}</dt>
 <dd>Stops the stream. When the source of the stream is a connected device (such as a camera or microphone), stops capture on the device.</dd>
</dl>

<h2 id="See_Also">See Also</h2>

<ul>
 <li>Using the MediaStream API</li>
 <li><a href="/en-US/docs/WebRTC/navigator.getUserMedia" title="/en-US/docs/WebRTC/navigator.getUserMedia">getUserMedia()</a></li>
</ul>
Revert to this revision