Play recording

This commit is contained in:
Kieran 2023-07-31 12:10:14 +01:00
parent 3e2336129c
commit 42fc0ca877
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -112,7 +112,8 @@ export function StreamPage() {
const title = findTag(ev, "title");
const summary = findTag(ev, "summary");
const image = findTag(ev, "image");
const stream = findTag(ev, "streaming");
const status = findTag(ev, "status");
const stream = status === StreamState.Live ? findTag(ev, "streaming") : findTag(ev, "recording");
const contentWarning = findTag(ev, "content-warning");
const tags = ev?.tags.filter((a) => a[0] === "t").map((a) => a[1]) ?? [];