foo-webview-sdk
    Preparing search index...

    Function canPlay

    • Experimental

      Query file decoding with the track's actual MIME, codecs and metadata. Missing configuration or unavailable/rejected browser APIs leave the three capabilities 'unknown'. canPlayType is a separate MIME/codec hint. Neither probe guarantees playback, especially for Matroska; handle element errors. Video requires both actual maxima in limits; the track's average frameRate and bitrate are never substituted. Audio uses its declared average bitrate and ignores limits. Omit maxima that are unknown instead of estimating them.

      Parameters

      Returns Promise<MediaCanPlayResult>