Always allow creating new stream goals

This commit is contained in:
Kieran 2023-07-13 12:01:18 +01:00
parent f5f2df5eba
commit 21c8d5c158
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 6 additions and 6 deletions

View File

@ -124,11 +124,8 @@ export function LiveChat({
<div className="top-zappers-container">
<TopZappers zaps={zaps} />
</div>
{goal ? (
<Goal link={link} ev={goal} zaps={goalZaps} />
) : (
login?.pubkey === streamer && <NewGoalDialog link={link} />
)}
{goal && <Goal link={link} ev={goal} zaps={goalZaps} /> }
{login?.pubkey === streamer && <NewGoalDialog link={link} />}
</div>
)}
<div className="messages">

View File

@ -8,7 +8,7 @@ export enum VideoStatus {
}
export interface VideoPlayerProps {
stream?: string, status?: string, poster?: string
stream?: string, status?: string, poster?: string
}
export function LiveVideoPlayer(
@ -41,6 +41,9 @@ export function LiveVideoPlayer(
hls.on(Hls.Events.MANIFEST_PARSED, () => {
setStatus(VideoStatus.Online);
});
hls.on(Hls.Events.LEVEL_SWITCHING, (e, l) => {
console.debug("HLS Level Switch", l);
});
return () => hls.destroy();
} catch (e) {
console.error(e);