Vinyl
    Preparing search index...

    Class CapabilitiesImpl

    Client support detection.

    Implements

    Index

    Constructors

    Accessors

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

      Returns boolean

    • get eme(): boolean

      Returns true if Encrypted Media Extensions are supported.

      Returns boolean

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

      Returns boolean

    • get mse(): boolean

      Returns true if Media Source Extensions are supported.

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

      Returns boolean

    • get sampleRate(): null | number

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

      Returns null | number

    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