WebCodecs APIwindow_and_dedicated
The clone() method of the AudioData interface creates a new AudioData object with reference to the same media resource as the original.
Syntax
clone()
Parameters
None.
Return value
The cloned AudioData object.
Exceptions
InvalidStateErrorDOMException- : Thrown if the
AudioDataobject has been transferred.
- : Thrown if the
Examples
The following example clones a copy of AudioData as audioData2.
let audioData2 = AudioData.clone();
Specifications
Browser compatibility
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
