Don't use autoplay logic for snapshots.

This commit is contained in:
Dermot Duffy
2022-01-22 19:38:57 -08:00
parent 34448549b6
commit 20ea8054a7
3 changed files with 28 additions and 9 deletions
+1 -1
View File
@@ -682,7 +682,7 @@ export class FrigateCardLiveWebRTC extends LitElement {
* Play the video.
*/
public play(): void {
this._getPlayer()?.play().catch((_) => {
this._getPlayer()?.play().catch(() => {
// WebRTC appears to generate additional spurious load events, which may
// result in loads after a play() call, which causes the browser to spam
// the logs unless the promise rejection is handled here.