Appearance
NostrLivestream Component
Displays metadata and renders the actual video of a NIP-53 livestream.
Usage
html
<nostr-livestream ref="naddr..." />
Attributes
ref
: Livestream reference (naddr format)template
: ID of template element to use for custom rendering
Styling Parts
error
: Error message containerheader
: Stream header sectionimage
: Stream thumbnailtitle
: Stream titlestatus
: Stream statustime
: Stream time informationsummary
: Stream descriptionstats
: Statistics sectioncurrent
: Current viewers sectioncurrent-value
: Current viewer counttotal
: Total viewers sectiontotal-value
: Total viewer countvideo
: Video playerparticipants
: Participants sectionparticipants-title
: Participants section titleparticipants-list
: List of participantsparticipant-entry
: Individual participant entryparticipant-pubkey
: Participant's pubkeyparticipant-role
: Participant's role
External Templates
Supports external templates through the template
attribute:
html
<template id="livestream-template">
<div>
<slot name="header">
<header part="header">
<!-- Custom header structure -->
</header>
</slot>
<!-- Other custom template parts -->
</div>
</template>
<nostr-livestream template="livestream-template" ref="naddr..." />