Fullscreen improvements (esp. portrait media)

This commit is contained in:
Dermot Duffy
2021-09-26 14:05:06 -07:00
parent 2ab4e064f4
commit 7c0e0133ee
6 changed files with 63 additions and 21 deletions
+4 -2
View File
@@ -31,8 +31,10 @@ customElements.whenDefined("ha-hls-player").then(() => {
.muted=${this.muted}
?playsinline=${this.playsInline}
?controls=${this.controls}
@loadedmetadata=${(e) => dispatchMediaLoadEvent(this, e)}
@loadeddata=${this._elementResized}
@loadeddata=${(e) => {
this._elementResized();
dispatchMediaLoadEvent(this, e);
}}
@pause=${() => dispatchPauseEvent(this)}
@play=${() => dispatchPlayEvent(this)}
></video>