iOS 13 beta Safari Webcam doesn't work in Portrait orientation. It works in Landscape.
Also, It completely works on iOS 12
Here's the code
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Display Webcam Stream</title>
</head>
<body>
<div id="container">
<video autoplay="true" id="videoElement" muted playsinline>
</video>
</div>
<script>
var video = document.querySelector("#videoElement");
if (navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia({ video: true })
.then(function (stream) {
video.srcObject = stream;
})
.catch(function (err0r) {
console.log("Something went wrong!");
});
}
</script>
</body>
</html>
Am I missing something here?