Live event page

This commit is contained in:
2023-06-18 14:14:34 +01:00
parent adaa8a71e7
commit 769e093663
11 changed files with 168 additions and 18 deletions

View File

@ -174,7 +174,7 @@ export function MediaElement(props: MediaElementProps) {
return <audio key={props.url} src={url} controls onError={() => probeFor402()} />;
} else if (props.mime.startsWith("video/")) {
if (props.url.endsWith(".m3u8")) {
return <LiveVideoPlayer src={props.url} />;
return <LiveVideoPlayer stream={props.url} />;
}
return <video key={props.url} src={url} controls onError={() => probeFor402()} />;
} else {