feat: new design progress

This commit is contained in:
2024-05-17 23:17:15 +01:00
parent 1b5fa7a5ca
commit 75c90e9dc4
36 changed files with 675 additions and 375 deletions

View File

@ -133,6 +133,7 @@ export function extractStreamInfo(ev?: NostrEvent) {
matchTag(t, "streaming", v => (ret.stream = v));
}
matchTag(t, "recording", v => (ret.recording = v));
matchTag(t, "url", v => (ret.recording = v));
matchTag(t, "content-warning", v => (ret.contentWarning = v));
matchTag(t, "current_participants", v => (ret.participants = v));
matchTag(t, "goal", v => (ret.goal = v));
@ -147,6 +148,10 @@ export function extractStreamInfo(ev?: NostrEvent) {
ret.gameId = gameId;
ret.gameInfo = gameInfo;
// video patch
if (ev?.kind === 34_235) {
ret.status = StreamState.VOD;
}
return ret;
}