diff --git a/src/element/live-chat.tsx b/src/element/live-chat.tsx index 213ca1a..9de8f25 100644 --- a/src/element/live-chat.tsx +++ b/src/element/live-chat.tsx @@ -124,11 +124,8 @@ export function LiveChat({
- {goal ? ( - - ) : ( - login?.pubkey === streamer && - )} + {goal && } + {login?.pubkey === streamer && } )}
diff --git a/src/element/live-video-player.tsx b/src/element/live-video-player.tsx index f499902..cf765ac 100644 --- a/src/element/live-video-player.tsx +++ b/src/element/live-video-player.tsx @@ -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);