iOS Safari needs playsinline to play WebRTC apparently

This commit is contained in:
John Boiles authored and Gina Häußge committed 2021-09-15 18:28:02 +02:00
1 parent 4e92516d78
commit c5b1a3a3b6
2 files changed
+2 -2

No files matched your search

@@ -456,7 +456,7 @@ $(function () {
}
} else if (streamType == "webrtc") {
webcam_element = $(
'<video id="webcam_webrtc" muted autoplay style="width: 100%"/>'
'<video id="webcam_webrtc" muted autoplay playsinline style="width: 100%"/>'
);
video_element = webcam_element[0];
+1 -1
View File
@@ -1,7 +1,7 @@
{% if enableWebcam %}
<!-- ko if: loginState.hasPermissionKo(access.permissions.WEBCAM) -->
<div id="webcam_webrtc_container" tabindex="0" data-bind="visible: webcamWebRTCEnabled()">
<video id="webcam_webrtc" muted autoplay style="width: 100%"></video>
<video id="webcam_webrtc" muted autoplay playsinline style="width: 100%"></video>
</div>
<div id="webcam_hls_container" tabindex="0" data-bind="visible: webcamHlsEnabled()">
<video id="webcam_hls" muted autoplay style="width: 100%"></video>