Documentation
    Preparing search index...

    Function sniffPresentationMediaFormat

    • Recognise a presentation media container from its leading bytes. This is a header check, not a full decode: a host that renders the bytes still relies on the browser's image or video decoder and must not display a blob that fails to decode.

      Parameters

      • bytes: Uint8Array

        Complete blob bytes

      Returns PresentationMediaFormat | undefined

      The recognised format, or undefined for anything else

      sniffPresentationMediaFormat(bytes) === 'image/png';