Implement downloading and correct MediaShow events in carousel.

This commit is contained in:
Dermot Duffy
2021-10-29 16:36:36 -07:00
parent 715810dcc9
commit 66ae262654
13 changed files with 582 additions and 275 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
import { TemplateResult, html } from 'lit';
import { customElement } from 'lit/decorators.js';
import { dispatchMediaLoadEvent } from '../common.js';
import { dispatchMediaShowEvent } from '../common.js';
customElements.whenDefined('ha-camera-stream').then(() => {
// ========================================================================================
@@ -53,7 +53,7 @@ customElements.whenDefined('ha-camera-stream').then(() => {
if (typeof this._elementResized != 'undefined') {
this._elementResized();
}
dispatchMediaLoadEvent(this, e);
dispatchMediaShowEvent(this, e);
}}
.src=${
(typeof this._connected == 'undefined' ||