feat: n94 poc

This commit is contained in:
2024-11-19 17:14:16 +00:00
parent f9f0cf213d
commit 03a5820140
9 changed files with 243 additions and 28 deletions

View File

@ -1,7 +1,7 @@
import { SHORTS_KIND, VIDEO_KIND } from "@/const";
import { LIVE_STREAM, SHORTS_KIND, VIDEO_KIND } from "@/const";
import { useStreamLink } from "@/hooks/stream-link";
import { getEventFromLocationState } from "@/utils";
import { NostrPrefix, EventKind } from "@snort/system";
import { NostrPrefix } from "@snort/system";
import { useLocation } from "react-router-dom";
import { StreamPage } from "./stream-page";
import { VideoPage } from "./video";
@ -25,7 +25,7 @@ export function LinkHandler() {
<NostrEventElement link={link} />
</div>
);
} else if (link.kind === EventKind.LiveEvent || link.type === NostrPrefix.PublicKey) {
} else if (link.kind === LIVE_STREAM || link.type === NostrPrefix.PublicKey) {
return (
<div className={classNames(layoutContext.showHeader ? "h-[calc(100dvh-44px)]" : "h-[calc(100dvh)]", "w-full")}>
<StreamPage link={link} evPreload={evPreload} />