feat: add support for addressable videos

This commit is contained in:
codytseng 2025-11-17 21:28:37 +08:00
parent cde0b49e2e
commit 65d44394a6
4 changed files with 30 additions and 8 deletions

View file

@ -97,7 +97,12 @@ export default function Note({
content = <AudioPlayer className="mt-2" src={event.content} />
} else if (event.kind === ExtendedKind.PICTURE) {
content = <PictureNote className="mt-2" event={event} />
} else if (event.kind === ExtendedKind.VIDEO || event.kind === ExtendedKind.SHORT_VIDEO) {
} else if (
event.kind === ExtendedKind.VIDEO ||
event.kind === ExtendedKind.SHORT_VIDEO ||
event.kind === ExtendedKind.ADDRESSABLE_NORMAL_VIDEO ||
event.kind === ExtendedKind.ADDRESSABLE_SHORT_VIDEO
) {
content = <VideoNote className="mt-2" event={event} />
} else if (event.kind === ExtendedKind.RELAY_REVIEW) {
content = <RelayReview className="mt-2" event={event} />