Livestream media handler now dynamically resizes UX to aspect ratio on media change.

This commit is contained in:
rainbow napkin 2025-11-10 21:38:36 -05:00
parent dd4d789d9f
commit 37e9658d51

View file

@ -907,6 +907,10 @@ class hlsLiveStreamHandler extends hlsBase{
return;
}
//Resize chat box to video aspect, since this is the only event thats reliably called on ratio change
//Re-enforcing UX rules a little more often shouldnt cause too many issues anywho.
this.client.chatBox.resizeAspect();
//Calculate distance to end of stream
const difference = this.video.duration - this.video.currentTime;