Enable smooth panning between past/live.

This commit is contained in:
Dermot Duffy
2023-04-09 19:23:34 -07:00
parent b3bb56298a
commit e1d74dc35a
26 changed files with 474 additions and 339 deletions
+4 -7
View File
@@ -51,15 +51,15 @@ customElements.whenDefined('ha-camera-stream').then(() => {
return this._player?.play();
}
public pause(): void {
public async pause(): Promise<void> {
this._player?.pause();
}
public mute(): void {
public async mute(): Promise<void> {
this._player?.mute();
}
public unmute(): void {
public async unmute(): Promise<void> {
this._player?.unmute();
}
@@ -67,10 +67,7 @@ customElements.whenDefined('ha-camera-stream').then(() => {
return this._player?.isMuted() ?? true;
}
/**
* Seek the video (unsupported).
*/
public seek(seconds: number): void {
public async seek(seconds: number): Promise<void> {
this._player?.seek(seconds);
}