MediaStreamTrack.id

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。

The read-only property MediaStreamTrack.id returns a DOMString containing a unique identifier (GUID) for the track; it is generated by the browser.

Syntax

 var id = track.id;

Example

Specifications

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

Browser compatibility

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

See also

文档标签和贡献者