chore: Update translations

This commit is contained in:
Kieran 2024-01-15 12:52:56 +00:00
parent 88e2250c33
commit a3ab088a82
2 changed files with 21 additions and 25 deletions

View File

@ -135,7 +135,7 @@ const router = createBrowserRouter([
await System.Init();
return null;
},
}
},
]);
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLDivElement);
root.render(

View File

@ -7,31 +7,27 @@ import { NostrLink } from "@snort/system";
import { Suspense } from "react";
export function EmbededPage() {
const link = useStreamLink();
if (link) {
return <EmbededPagePlayer link={link} />;
}
const link = useStreamLink();
if (link) {
return <EmbededPagePlayer link={link} />;
}
}
function EmbededPagePlayer({ link }: { link: NostrLink }) {
const ev = useCurrentStreamFeed(link, true);
const {
title,
image,
status,
stream,
recording,
} = extractStreamInfo(ev);
console.debug(ev);
return <div className="w-[100vw] h-[100vh]">
<Suspense>
<LiveVideoPlayer
title={title}
stream={status === StreamState.Live ? stream : recording}
poster={image}
status={status}
className="h-[100vh]"
/>
</Suspense>
const ev = useCurrentStreamFeed(link, true);
const { title, image, status, stream, recording } = extractStreamInfo(ev);
console.debug(ev);
return (
<div className="w-[100vw] h-[100vh]">
<Suspense>
<LiveVideoPlayer
title={title}
stream={status === StreamState.Live ? stream : recording}
poster={image}
status={status}
className="h-[100vh]"
/>
</Suspense>
</div>
}
);
}