mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-23 17:26:42 +00:00
Fix hls player (#7362)
This commit is contained in:
parent
3277a4e8c3
commit
a7998b30c6
@ -38,7 +38,8 @@ class HaHLSPlayer extends LitElement {
|
||||
@property({ type: Boolean, attribute: "allow-exoplayer" })
|
||||
public allowExoPlayer = false;
|
||||
|
||||
@query("video", true) private _videoEl!: HTMLVideoElement;
|
||||
// don't cache this, as we remove it on disconnects
|
||||
@query("video") private _videoEl!: HTMLVideoElement;
|
||||
|
||||
@internalProperty() private _attached = false;
|
||||
|
||||
@ -155,7 +156,7 @@ class HaHLSPlayer extends LitElement {
|
||||
|
||||
private _resizeExoPlayer = () => {
|
||||
if (!this._videoEl) {
|
||||
return;
|
||||
return;
|
||||
}
|
||||
const rect = this._videoEl.getBoundingClientRect();
|
||||
this.hass!.auth.external!.fireMessage({
|
||||
|
Loading…
x
Reference in New Issue
Block a user