| 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. |
| 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. |
| 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. |
| 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. |