We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e381f29 commit 8e14337Copy full SHA for 8e14337
2 files changed
.changeset/chilly-llamas-grow.md
@@ -0,0 +1,5 @@
1
+---
2
+'livekit-client': patch
3
4
+
5
+Add video autoplay attributes to PublishVideoCheck
src/connectionHelper/checks/publishVideo.ts
@@ -46,6 +46,11 @@ export class PublishVideoCheck extends Checker {
46
const video = document.createElement('video');
47
video.srcObject = stream;
48
video.muted = true;
49
+ video.autoplay = true;
50
+ video.playsInline = true;
51
+ // For iOS Safari
52
+ video.setAttribute('playsinline', 'true');
53
+ document.body.appendChild(video);
54
55
await new Promise<void>((resolve) => {
56
video.onplay = () => {
0 commit comments