Rename autoplay_clip to auto_play (to match auto_unmute).

This commit is contained in:
Dermot Duffy
2022-02-01 21:01:54 -08:00
parent f7a897edf9
commit 24d4d10a43
7 changed files with 19 additions and 18 deletions
+2 -2
View File
@@ -270,7 +270,7 @@ export class FrigateCardViewerCarousel extends FrigateCardMediaCarousel {
* Play the media on the selected slide.
*/
protected _autoPlayHandler(): void {
if (this.viewerConfig?.autoplay_clip) {
if (this.viewerConfig?.auto_play) {
super._autoPlayHandler();
}
}
@@ -330,7 +330,7 @@ export class FrigateCardViewerCarousel extends FrigateCardMediaCarousel {
? [
AutoMediaPlugin({
playerSelector: 'frigate-card-ha-hls-player',
autoPlayWhenVisible: !!this.viewerConfig?.autoplay_clip,
autoPlayWhenVisible: !!this.viewerConfig?.auto_play,
autoUnmuteWhenVisible: !!this.viewerConfig?.auto_unmute,
}),
]