Mute player by default

This commit is contained in:
Nicolas Mowen 2023-09-16 15:32:30 -06:00 committed by GitHub
parent 00fa1c64d2
commit c19be25cdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,7 @@ class VideoRTC extends HTMLElement {
this.video.controls = true; this.video.controls = true;
this.video.playsInline = true; this.video.playsInline = true;
this.video.preload = 'auto'; this.video.preload = 'auto';
this.video.muted = true;
this.video.style.display = 'block'; // fix bottom margin 4px this.video.style.display = 'block'; // fix bottom margin 4px
this.video.style.width = '100%'; this.video.style.width = '100%';