Commit 5cc4eb46 by Christoph

Ensure proper playback on iPhone Safari. This browser will automatically play…

Ensure proper playback on iPhone Safari. This browser will automatically play videos in fullscreen if "playsinline" is not set even if the video is never added to the DOM
parent 5deb72bf
......@@ -531,7 +531,10 @@ export class BrowserMediaStream {
videoElement.width = 320;
videoElement.height = 240;
videoElement.controls = true;
//TODO: update typescript
videoElement.setAttribute("playsinline", "");
videoElement.id = "awrtc_mediastream_video_" + this.mInstanceId;
//videoElement.muted = true;
if (BrowserMediaStream.DEBUG_SHOW_ELEMENTS)
document.body.appendChild(videoElement);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment