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.

MediaStream.id

この記事はまだボランティアによって 日本語 に翻訳されていません。ぜひ MDN に参加して翻訳を手伝ってください!

The MediaStream.id() read-only property is a DOMString containing 36 characters denoting a unique identifier (GUID) for the object.

Syntax

var id = mediaStream.id;

Example

var p = navigator.mediaDevices.getUserMedia({ audio: true, video: true });

p.then(function(stream) {
   console.log(stream.id);
};)

Specifications

Specification Status Comment
Media Capture and Streams
The definition of 'MediaStream.id' in that specification.
Candidate Recommendation Initial definition.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? 41 (41) ? ? ?
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? 41.0 (41) ? ? ?

See Also

ドキュメントのタグと貢献者

 このページの貢献者: teoli
 最終更新者: teoli,