Need to mute video to autoplay on Android.

This commit is contained in:
Dermot Duffy
2021-08-14 09:27:19 -07:00
parent 139baf4b28
commit 3c795ff75e
+1 -2
View File
@@ -1,6 +1,5 @@
// TODO Feature: Make editor work. // TODO Feature: Make editor work.
// TODO Feature: Add title to clips / snapshots playing/viewing // TODO Feature: Add title to clips / snapshots playing/viewing
// TODO Bug: Clips do not auto-play on Android.
// TODO Bug: Sometimes webrtc component shows up as not found in browser (maybe after fresh build?) // TODO Bug: Sometimes webrtc component shows up as not found in browser (maybe after fresh build?)
// TODO Last step: Add documentation & screenshots. // TODO Last step: Add documentation & screenshots.
@@ -570,7 +569,7 @@ export class FrigateCard extends LitElement {
const url = `${this.config.frigate_url}/clips/` + const url = `${this.config.frigate_url}/clips/` +
`${event.camera}-${event.id}.mp4`; `${event.camera}-${event.id}.mp4`;
return html` return html`
<video class="frigate-card-viewer" autoplay controls> <video class="frigate-card-viewer" autoplay muted controls>
<source src="${url}" type="video/mp4"> <source src="${url}" type="video/mp4">
</video>` </video>`
} }