Documentation
    Preparing search index...

    Function parsePresentationMedia

    • Parse screenshot and preview tags with NIP-92 key value fields and apply the NIP-5D ignore rules: exactly one x field is required, unknown or malformed optional fields are dropped, screenshot order is preserved, and more than one preview tag ignores the preview entirely.

      Parameters

      • tags: readonly (readonly string[])[]

        Manifest event tags

      Returns PresentationMediaResult

      Usable media declarations; nothing here has been fetched or verified

      const { screenshots, preview } = parsePresentationMedia(event.tags);