diff --git a/files/en-us/web/api/mediastream/index.md b/files/en-us/web/api/mediastream/index.md index a6356f5a80ace66..b99d06a9001a477 100644 --- a/files/en-us/web/api/mediastream/index.md +++ b/files/en-us/web/api/mediastream/index.md @@ -7,11 +7,9 @@ browser-compat: api.MediaStream {{APIRef("Media Capture and Streams")}} -The **`MediaStream`** interface represents a stream of media content. A stream consists of several **tracks**, such as video or audio tracks. Each track is specified as an instance of {{domxref("MediaStreamTrack")}}. +The **`MediaStream`** interface of the {{domxref("Media Capture and Streams API", "", "", "nocode")}} represents a stream of media content. A stream consists of several **tracks**, such as video or audio tracks. Each track is specified as an instance of {{domxref("MediaStreamTrack")}}. -You can obtain a `MediaStream` object either by using the constructor or by calling functions such as {{domxref("MediaDevices.getUserMedia()")}}, {{domxref("MediaDevices.getDisplayMedia()")}}, or {{domxref("HTMLCanvasElement.captureStream()")}}. - -Some user agents subclass this interface to provide more precise information or functionality, like in {{domxref("CanvasCaptureMediaStreamTrack")}}. +You can obtain a `MediaStream` object either by using the constructor or by calling functions such as {{domxref("MediaDevices.getUserMedia()")}}, {{domxref("MediaDevices.getDisplayMedia()")}}, or {{domxref("HTMLCanvasElement.captureStream()")}} and {{domxref("HTMLMediaElement.captureStream()")}}. {{InheritanceDiagram}} diff --git a/files/en-us/web/api/mediastreamtrack/index.md b/files/en-us/web/api/mediastreamtrack/index.md index 7fe56e02505a755..fd28f7c59bfb2f3 100644 --- a/files/en-us/web/api/mediastreamtrack/index.md +++ b/files/en-us/web/api/mediastreamtrack/index.md @@ -7,7 +7,9 @@ browser-compat: api.MediaStreamTrack {{APIRef("Media Capture and Streams")}} -The **`MediaStreamTrack`** interface represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. +The **`MediaStreamTrack`** interface of the {{domxref("Media Capture and Streams API", "", "", "nocode")}} represents a single media track within a stream; typically, these are audio or video tracks, but other track types may exist as well. + +Some user agents subclass this interface to provide more precise information or functionality, such as {{domxref("CanvasCaptureMediaStreamTrack")}}. {{InheritanceDiagram}}