clone() 方法在 MediaStream interface creates a duplicate of the MediaStream . This new MediaStream object has a new unique id and contains clones of every MediaStreamTrack contained by the MediaStream on which clone() 被调用。

句法

var stream = MediaStream.clone();
					

参数

None.

返回值

新的 MediaStream instance which has a new unique ID and contains clones of every MediaStreamTrack contained by the MediaStream on which clone() 被调用。

规范

规范 状态 注释
媒体捕获和流
The definition of 'MediaStream.clone()' in that specification.
候选推荐 初始定义。

浏览器兼容性

The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request. 更新 GitHub 上的兼容性数据
桌面 移动
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
clone Chrome 45 Edge 12 Firefox 48 IE No Opera No Safari Yes WebView Android 45 Chrome Android 45 Firefox Android 48 Opera Android No Safari iOS Yes Samsung Internet Android 5.0

图例

完整支持

完整支持

不支持

不支持

元数据

  • 最后修改: