Livestream media handler now dynamically resizes UX to aspect ratio on media change.
This commit is contained in:
parent
dd4d789d9f
commit
37e9658d51
|
|
@ -907,6 +907,10 @@ class hlsLiveStreamHandler extends hlsBase{
|
||||||
return;
|
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
|
//Calculate distance to end of stream
|
||||||
const difference = this.video.duration - this.video.currentTime;
|
const difference = this.video.duration - this.video.currentTime;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue