Vinyl
    Preparing search index...

    Interface Capabilities

    Detected capabilities of the device.

    interface Capabilities {
        dash: boolean;
        eme: boolean;
        hls: boolean;
        mse: boolean;
        sampleRate: null | number;
        canPlayType(type: string): CanPlayTypeResult;
        canPlayTypeMse(type: string): boolean;
        supportsKeySystem(keySystem: DrmKeySystem): Promise<DrmKeySystemSupport>;
    }

    Implemented by

    Index

    Properties

    dash: boolean

    Returns true if native Dynamic Adaptive Streaming is supported.

    (Legacy Edge 12-18 and XBox One) Note that this is not the same as supporting a dash track.

    eme: boolean

    Returns true if Encrypted Media Extensions are supported.

    hls: boolean

    Returns true if native HTTP Live Streaming is supported.

    iOS 7.0+, Safari 8.0+ Note that this does not do FairPlay detection.

    mse: boolean

    Returns true if Media Source Extensions are supported.

    Note that this does not test DRM or any DRM key systems.

    sampleRate: null | number

    Returns the sample rate, in samples per second, that this platform supports. Returns null if the sample rate cannot be determined.

    Methods

    • Returns a string that specifies whether the client can play a given media resource type for progressive content.

      Parameters

      • type: string

        A string specifying the MIME type of the media and (optionally) a codecs parameter containing a comma-separated list of the supported codecs.

      Returns CanPlayTypeResult

    • Returns a boolean that specifies whether the client can play a given media resource type for streaming content with media source extensions.

      Parameters

      • type: string

        A string specifying the MIME type of the media and (optionally) a codecs parameter containing a comma-separated list of the supported codecs.

      Returns boolean