mediasoup-demo iPhone11 safari video sticks on first frame

Hi,
I tested the mediasoup-demo and I noticed that on iPhone in the safari browser the video stream shows the first frame and then it sticks for the entire conversation. Do you know why? There is an incompatibility with iOS?

Thanks

1 Like

This has to do with the way the demo asks for browser permissions and the video element autoplay. A fix would have to be applied to make it work in iOS. No incompatibility just a bug. Be aware the demo is not a production app.

1 Like

Hi Stefano,

I had the same issue, the fix for this is to add a playsinline attribute to the video elements. For the local version that I am running I did that and its working fine.

				<video
					ref='videoElem'
					className={classnames({
						'is-me'         : isMe,
						hidden          : !videoVisible || !videoCanPlay,
						'network-error' : (
							videoVisible && videoMultiLayer && consumerCurrentSpatialLayer === null
						)
					})}
+					playsInline
					autoPlay
					muted

Line 446 PeerView.jsx

1 Like

Thank you for the information!

1 Like