mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 02:36:37 +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" })
|
@property({ type: Boolean, attribute: "allow-exoplayer" })
|
||||||
public allowExoPlayer = false;
|
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;
|
@internalProperty() private _attached = false;
|
||||||
|
|
||||||
@ -155,7 +156,7 @@ class HaHLSPlayer extends LitElement {
|
|||||||
|
|
||||||
private _resizeExoPlayer = () => {
|
private _resizeExoPlayer = () => {
|
||||||
if (!this._videoEl) {
|
if (!this._videoEl) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const rect = this._videoEl.getBoundingClientRect();
|
const rect = this._videoEl.getBoundingClientRect();
|
||||||
this.hass!.auth.external!.fireMessage({
|
this.hass!.auth.external!.fireMessage({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user