feat: add support for addressable videos
This commit is contained in:
parent
cde0b49e2e
commit
65d44394a6
4 changed files with 30 additions and 8 deletions
|
|
@ -20,7 +20,15 @@ const KIND_FILTER_OPTIONS = [
|
|||
{ kindGroup: [ExtendedKind.POLL], label: 'Polls' },
|
||||
{ kindGroup: [ExtendedKind.VOICE, ExtendedKind.VOICE_COMMENT], label: 'Voice Posts' },
|
||||
{ kindGroup: [ExtendedKind.PICTURE], label: 'Photo Posts' },
|
||||
{ kindGroup: [ExtendedKind.VIDEO, ExtendedKind.SHORT_VIDEO], label: 'Video Posts' }
|
||||
{
|
||||
kindGroup: [
|
||||
ExtendedKind.VIDEO,
|
||||
ExtendedKind.SHORT_VIDEO,
|
||||
ExtendedKind.ADDRESSABLE_NORMAL_VIDEO,
|
||||
ExtendedKind.ADDRESSABLE_SHORT_VIDEO
|
||||
],
|
||||
label: 'Video Posts'
|
||||
}
|
||||
]
|
||||
const ALL_KINDS = KIND_FILTER_OPTIONS.flatMap(({ kindGroup }) => kindGroup)
|
||||
|
||||
|
|
|
|||
|
|
@ -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} />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue