mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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 = () => {
|
private _resizeExoPlayer = () => {
|
||||||
|
if (!this._videoEl) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const rect = this._videoEl.getBoundingClientRect();
|
const rect = this._videoEl.getBoundingClientRect();
|
||||||
this.hass!.auth.external!.fireMessage({
|
this.hass!.auth.external!.fireMessage({
|
||||||
type: "exoplayer/resize",
|
type: "exoplayer/resize",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user