mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-20 15:56:35 +00:00
Check if video el still exists before exoplayer resize in ha-hls-player (#7317)
Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
parent
ddcf89e6a2
commit
0df9080bbb
@ -154,6 +154,9 @@ class HaHLSPlayer extends LitElement {
|
||||
}
|
||||
|
||||
private _resizeExoPlayer = () => {
|
||||
if (!this._videoEl) {
|
||||
return;
|
||||
}
|
||||
const rect = this._videoEl.getBoundingClientRect();
|
||||
this.hass!.auth.external!.fireMessage({
|
||||
type: "exoplayer/resize",
|
||||
|
Loading…
x
Reference in New Issue
Block a user