Rename autoplay_clip to auto_play (to match auto_unmute).

This commit is contained in:
Dermot Duffy committed 2022-02-01 21:01:54 -08:00
1 parent f7a897edf9
commit 24d4d10a43
7 files changed
+19 -18

No files matched your search

+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,
}),
]