| DisplayCaptureRequest | A request of getDisplayMedia(), given to MediaCaptureBackend.SelectDisplaySurface. |
| DisplayCaptureSelection | The display surface chosen for getDisplayMedia() (see MediaCaptureBackend.SelectDisplaySurface). |
| MediaAudioDecoder | An audio decoder created by MediaCodecBackend.CreateAudioDecoder. |
| MediaAudioEncoder | An audio encoder created by MediaCodecBackend.CreateAudioEncoder. |
| MediaBackend | The media pipeline plugged into the browsing contexts (BrowsingContextOptions.MediaBackend): it tells which media types can be played, reads the media resources fetched by the audio and video elements (their duration, their dimensions, their tracks) and plays them. The library never decodes audio or video by itself: it implements the processing model of the media elements (the resource selection, the fetch of the resource, the ready states, the events, the promises of play(), seeking, looping...) on top of the MediaPlayer the backend creates for each media resource. |
| MediaCaptureBackend | The capture devices plugged into the browsing contexts (BrowsingContextOptions.MediaCapture): the cameras and the microphones of navigator.mediaDevices.getUserMedia() and enumerateDevices(), and the screen of getDisplayMedia(). The backend lists the devices and their capabilities, and produces the video frames and the audio samples of the devices it starts. The library implements Media Capture and Streams on top of it (https://w3c.github.io/mediacapture-main/): the permissions, the device identifiers, the constraint processing, the tracks and the streams. |
| MediaCaptureDevice | A capture device of a MediaCaptureBackend: a camera, a microphone, an audio output or a display surface. |
| MediaCaptureRequest | A request to start a capture device, given to MediaCaptureBackend.StartCapture. |
| MediaCaptureSource | The media produced by a capture device started by MediaCaptureBackend.StartCapture: the video frames of a camera or a screen, or the audio samples of a microphone. The library pulls the media when a sink needs it (a video element paints a frame, ImageCapture.grabFrame(), a Web Audio graph renders a quantum...). |
| MediaCaptureVideoMode | A native video mode of a camera or a screen: its size and its frame rate. |
| MediaCodecBackend | The audio and video codecs plugged into the browsing contexts (BrowsingContextOptions.MediaCodecs): the implementations of the decoders and the encoders of WebCodecs (https://w3c.github.io/webcodecs/), also used by MediaRecorder. The backend tells which configurations it supports and creates the codec implementations; the library implements the codec processing model on top of them (the states, the control message queue, the queue sizes and the dequeue events, flush(), reset(), close(), the output and error callbacks, the validation and the cloning of the configurations, the decoder configuration of the encoded chunks). |
| MediaCodecImplementation | The base class of the codec implementations of a MediaCodecBackend. An operation that throws closes the codec: a DomException is given to the error callback as is, another exception as an EncodingError. |
| MediaCodecString | A codec string of the WebCodecs codec registry (https://w3c.github.io/webcodecs/codec_registry.html), parsed by MediaCodecString.TryParse: the codec and, for the video codecs, the profile, the level and the bit depth. The strings are case-sensitive and must be exact: an ambiguous string (e.g. vp9), a string with spaces, or a string whose profile or level is not defined (e.g. vp09.99.99.08) is rejected. A MediaCodecBackend can use it to answer the support of the configurations. |
| MediaEncodedAudio | A chunk produced by a MediaAudioEncoder. |
| MediaEncodedVideo | A chunk produced by a MediaVideoEncoder. |
| MediaEncryptionInitData | Initialization Data found in the media data (https://w3c.github.io/encrypted-media/#initialization-data), reported by the backend. |
| MediaInitializationSegment | An initialization segment of a SourceBuffer (https://w3c.github.io/media-source/#init-segment): the tracks of the next media segments. |
| MediaPlayer | The player of a media resource of a media element, created by MediaBackend.CreatePlayer: it gives the metadata of the resource (the duration, the dimensions, the tracks, the buffered and seekable ranges), holds the current playback position and gives the video frame to paint. The media element implements the rest: the ready states and the network states, the events, the promises of play(), loop, ended, played... |
| MediaResource | A media resource fetched by a media element, given to MediaBackend.CreatePlayer. |
| MediaSampleEncryption | How a coded frame of a media segment is encrypted (MediaCodedFrame.Encryption): the key that decrypts it, the initialization vector, and the ranges of the frame that are encrypted. The library decrypts the frame with the keys of the MediaKeys of the media element (Encrypted Media Extensions, https://w3c.github.io/encrypted-media/), and the playback waits for the key when no session has it. |
| MediaSegmentParseResult | The result of MediaSegmentParser.Parse. |
| MediaSegmentParser | The byte stream parser of a SourceBuffer of the Media Source Extensions (https://w3c.github.io/media-source/#byte-stream-formats), created by MediaBackend.CreateSegmentParser for the MIME type of addSourceBuffer() or changeType(): it splits the bytes appended by appendBuffer() into initialization segments (the tracks) and media segments (the coded frames: their timestamps, their durations and whether they are random access points). The library implements the rest of the specification on top of it: the segment parser loop, the coded frame processing algorithm (timestampOffset, mode, the append window), the track buffers and their buffered ranges, the removals, the duration, the ready states of the media element... |
| MediaSegmentTrack | A track of an initialization segment (MediaInitializationSegment). |
| MediaTextTrackCue | A cue of a text track of a media resource, exposed as a VTTCue. |
| MediaTextTrackInfo | A text track of a media resource (https://html.spec.whatwg.org/multipage/media.html#media-resource-specific-text-track), reported by a MediaPlayer, with its cues. |
| MediaTrackInfo | An audio or video track of a media resource (https://html.spec.whatwg.org/multipage/media.html#media-resources-with-multiple-media-tracks), reported by a MediaPlayer. |
| MediaVideoDecoder | A video decoder created by MediaCodecBackend.CreateVideoDecoder. |
| MediaVideoEncoder | A video encoder created by MediaCodecBackend.CreateVideoEncoder. |
| MediaVideoFrame | A frame of a video, painted in the box of the video element by the rendering backend of the browsing context and drawn by drawImage(): pixels in the RGBA format (4 bytes per pixel, not premultiplied, sRGB), from the top-left pixel, row by row. |