Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(safari): set playsInline attribute to true on the video element The playsInline attribute needs to be set to true for video to be rendered on Safari on iOS

Jaya Allamsettyb7eda8df7a86
diff --git a/modules/UI/videolayout/SmallVideo.js b/modules/UI/videolayout/SmallVideo.js
index 6fa117656e..fe5e5c6211 100644
--- a/modules/UI/videolayout/SmallVideo.js
+++ b/modules/UI/videolayout/SmallVideo.js
@@ -189,6 +189,7 @@ export default class SmallVideo {
if (isVideo) {
element.setAttribute('muted', 'true');
+ element.setAttribute('playsInline', 'true'); /* for Safari on iOS to work */
} else if (config.startSilent) {
element.muted = true;
}
diff --git a/react/features/large-video/components/LargeVideo.web.js b/react/features/large-video/components/LargeVideo.web.js
index ecb3047f07..9a9669e4e2 100644
--- a/react/features/large-video/components/LargeVideo.web.js
+++ b/react/features/large-video/components/LargeVideo.web.js
@@ -63,7 +63,8 @@ class LargeVideo extends Component<Props> {
<video
autoPlay = { !this.props._noAutoPlayVideo }
id = 'largeVideo'
- muted = { true } />
+ muted = { true }
+ playsInline = { true } /* for Safari on iOS to work */ />
</div>
</div>
{ interfaceConfig.DISABLE_TRANSCRIPTION_SUBTITLES