Pause clips on moving off a slide in the viewer.

This commit is contained in:
Dermot Duffy
2022-01-20 20:42:57 -08:00
parent cbe9ee621a
commit 77a8127848
3 changed files with 67 additions and 22 deletions
+8 -3
View File
@@ -29,9 +29,14 @@ customElements.whenDefined('ha-hls-player').then(() => {
* Play the video.
*/
public play(): void {
if (this._videoRef.value) {
this._videoRef.value.play();
}
this._videoRef.value?.play();
}
/**
* Pause the video.
*/
public pause(): void {
this._videoRef.value?.pause();
}
// =====================================================================================