Always allow creating new stream goals
This commit is contained in:
@ -124,11 +124,8 @@ export function LiveChat({
|
|||||||
<div className="top-zappers-container">
|
<div className="top-zappers-container">
|
||||||
<TopZappers zaps={zaps} />
|
<TopZappers zaps={zaps} />
|
||||||
</div>
|
</div>
|
||||||
{goal ? (
|
{goal && <Goal link={link} ev={goal} zaps={goalZaps} /> }
|
||||||
<Goal link={link} ev={goal} zaps={goalZaps} />
|
{login?.pubkey === streamer && <NewGoalDialog link={link} />}
|
||||||
) : (
|
|
||||||
login?.pubkey === streamer && <NewGoalDialog link={link} />
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="messages">
|
<div className="messages">
|
||||||
|
@ -8,7 +8,7 @@ export enum VideoStatus {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface VideoPlayerProps {
|
export interface VideoPlayerProps {
|
||||||
stream?: string, status?: string, poster?: string
|
stream?: string, status?: string, poster?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export function LiveVideoPlayer(
|
export function LiveVideoPlayer(
|
||||||
@ -41,6 +41,9 @@ export function LiveVideoPlayer(
|
|||||||
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
hls.on(Hls.Events.MANIFEST_PARSED, () => {
|
||||||
setStatus(VideoStatus.Online);
|
setStatus(VideoStatus.Online);
|
||||||
});
|
});
|
||||||
|
hls.on(Hls.Events.LEVEL_SWITCHING, (e, l) => {
|
||||||
|
console.debug("HLS Level Switch", l);
|
||||||
|
});
|
||||||
return () => hls.destroy();
|
return () => hls.destroy();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
Reference in New Issue
Block a user