Bug 197703

Summary: BUG: iOS 12.2: Safari: MediaDevices.getUserMedia: video.srcObject: MediaStream: Front facing camera on iPhone X is slow/laggy/blurred
Product: WebKit Reporter: micsun-al <michael>
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Minor CC: youennf
Priority: P2    
Version: Safari 12   
Hardware: iPhone / iPad   
OS: iOS 12   
Attachments:
Description Flags
iOS Safari 12.2 blurry/laggy webcam video none

Description micsun-al 2019-05-08 12:22:36 PDT
Created attachment 369408 [details]
iOS Safari 12.2 blurry/laggy webcam video

Steps:
On an iPhone X running iOS 12.2, open Safari.

Go to https://webrtc.github.io/samples/src/content/getusermedia/gum/

Click the "Open camera" button.

Click "Allow" on the permission modal dialog.

Source Code:
https://github.com/webrtc/samples/tree/gh-pages/src/content/getusermedia/gum

Result:
The camera frame rate seems to be slow and the camera capture rate seems to be slow causing blurriness in the video and making it a bit harder to get a sharp picture if using this as a preview for a selfie capture (which is what I am doing).

Expected Result:
The frame rate should be at a normal'ish frames per second (I don't know, I guess 30 or above?).

Additional Notes:
Task switching away from Safari and back, makes the video play at a high frame rate again, but the video now has black bars on the sides.

This reproduces on another project I am working on that is using a very similar code path.

Environment:
This reproduced on everyone's phone in the office that is running iOS 12.2.

iPhone X (MQA52LL/A)

iOS/Safari 12.2

Thank you!
Comment 1 youenn fablet 2019-05-08 12:24:41 PDT
Probably a duplicate of bug 196214.
Please reopen otherwise.

*** This bug has been marked as a duplicate of bug 196214 ***