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:
parent
4bb0c67340
commit
98207228d6
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue