-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: "MediaStreamTrack: clone() メソッド" | ||
short-title: clone() | ||
slug: Web/API/MediaStreamTrack/clone | ||
l10n: | ||
sourceCommit: 84f8672adab0fdb783d02676c42a2b7ae16b3606 | ||
--- | ||
|
||
{{APIRef("Media Capture and Streams")}} | ||
|
||
**`clone()`** は {{domxref("MediaStreamTrack")}} インターフェイスのメソッドで、`MediaStreamTrack` の複製を作成します。この新しい `MediaStreamTrack` オブジェクトは、固有の {{domxref("MediaStreamTrack.id", "id")}} 以外は同じです。 | ||
|
||
## 構文 | ||
|
||
```js-nolint | ||
clone() | ||
``` | ||
|
||
### 引数 | ||
|
||
なし。 | ||
|
||
### 返値 | ||
|
||
新しい {{domxref("MediaStreamTrack")}} インスタンスで、`clone()` が呼び出されたのと同じですが、新しい固有の {{domxref("MediaStreamTrack.id", "id")}} を持つものです。 | ||
|
||
## 仕様書 | ||
|
||
{{Specifications}} | ||
|
||
## ブラウザーの互換性 | ||
|
||
{{Compat}} |