Post

Replies

Boosts

Views

Activity

Reply to Does getUserMedia works on iOS?
Is there any update on getUserMedia / Stream navigator.mediaDevices.getUserMedia( { audio: false, video: {facingMode: { exact: "environment" }, width: 420, height: 1000 } }) .then(function(stream) { 	var video = document.querySelector('video'); 	// Older browsers may not have srcObject 	if ("srcObject" in video) { 		video.srcObject = stream; 	} else { 		// Avoid using this in new browsers 		video.src = window.URL.createObjectURL(stream); 	} }) .catch(function(err) { 	console.log(err.name + ": " + err.message); }); It doesn't wor on IPhone only
Dec ’20