1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix current aspect ratio reset

The media element may still have some CSS styles related to aspect
ratio, so we need to reset the current aspect ratio after
destroying the media element.
This commit is contained in:
Dmitry Lyzo 2024-06-17 20:04:39 +03:00
parent 4bb0c67340
commit 98207228d6

View file

@ -862,6 +862,8 @@ export class HtmlVideoPlayer {
videoElement.parentNode.removeChild(videoElement);
}
this._currentAspectRatio = null;
const dlg = this.#videoDialog;
if (dlg) {
this.#videoDialog = null;
@ -1170,7 +1172,6 @@ export class HtmlVideoPlayer {
this.destroyStoredTrackInfo(targetTrackIndex);
this.#currentClock = null;
this._currentAspectRatio = null;
const octopus = this.#currentAssRenderer;
if (octopus) {