Browse Source

Tweaks

customisations
alemart 7 months ago
parent
commit
5168a57c0b
1 changed files with 8 additions and 1 deletions
  1. 8
    1
      src/sources/camera-source.ts

+ 8
- 1
src/sources/camera-source.ts View File

135
                         ));
135
                         ));
136
                     });
136
                     });
137
                 };
137
                 };
138
+
139
+                video.setAttribute('muted', '');
140
+                video.muted = true; // browser quirks?
141
+
138
                 video.setAttribute('playsinline', '');
142
                 video.setAttribute('playsinline', '');
143
+                video.playsInline = true;
144
+
139
                 video.setAttribute('autoplay', '');
145
                 video.setAttribute('autoplay', '');
140
-                video.setAttribute('muted', '');
146
+                video.autoplay = true;
147
+
141
                 video.srcObject = stream;
148
                 video.srcObject = stream;
142
             }).catch(error => {
149
             }).catch(error => {
143
                 reject(new AccessDeniedError(
150
                 reject(new AccessDeniedError(

Loading…
Cancel
Save