@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    A single media source.

    Supply either a url (for network resources) or a blob (for in-memory binary data). When both are provided, blob takes precedence.

    // From URL
    const urlSource: MediaSource = {
    url: 'https://example.com/video.mp4',
    type: 'video/mp4',
    };

    // From Blob
    const blobSource: MediaSource = {
    blob: myVideoBlob,
    type: 'video/webm',
    };
    interface MediaSource {
        blob?: Blob;
        type?: string;
        url?: string;
    }
    Index

    Properties

    Properties

    blob?: Blob

    In-memory binary data (e.g. from a fetch response or file input).

    type?: string

    MIME type of the source (e.g. 'video/mp4', 'audio/ogg').

    When omitted the browser will attempt to determine the type from the resource headers or file extension.

    url?: string

    Network URL of the media resource.