[Webkit-unassigned] [Bug 255770] New: getUserMedia occasionally doesn't work in SFSafariViewController x iPhone

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 21 01:22:24 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=255770

            Bug ID: 255770
           Summary: getUserMedia occasionally doesn't work in
                    SFSafariViewController x iPhone
           Product: WebKit
           Version: Other
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kenken19920616 at gmail.com
                CC: youennf at gmail.com

Created attachment 466027

  --> https://bugs.webkit.org/attachment.cgi?id=466027&action=review

Reproduction Bug

## Component
Web RTC

## Platform and OS
We found this issue with the devices and OS version below.

### devices 
iPhone SE / iPhone 8 / iPhone 12 mini / iPhone 14 / iPhone 14 Pro / iPhone 14 Pro Max, etc...
### OS Version
iOS 15.6 / 15.7.3 / 15.7.4 / 16.2 / 16.3.1. / 16.4, etc...

## Priority
Default

## Severity
normal

## URL
- Reprodction Site: https://webrtc-test-loading-reproduction.netlify.app/
- Reproduction Code: https://github.com/kei-creative-life/webrtc-test

## Summary
Occasionally, the camera in iPhone doesn't work in SFSafariViewController, which means getUserMedia doesn't work.
But it works all fine in Safari.
We found that we can reproduct this bug in most kinds of iPhone series like iPhone 14, iPhone 14 Pro, etc.

## Description
You can reproduct the issue with the following steps.

When the camera in the reproduction site worked, logs which is video events log showed up below.
[log]
video loadstart → video progress → video suspend → video durationchange → video resize
→ video loadedmetadata → video loadeddata → video canplay → video canplaythrough → video play
→ video playing

On the other hand, when camera doesn't work, video events log finished with "video suspend" event.
[log]
video loadstart → video progress → video suspend

### Via Slack App
1. You click and open the reproduction website URL (https://webrtc-test-loading-reproduction.netlify.app/) via Slack App with any iPhone.
2. You push "open camera" on the site.
3. You can sometimes see the video button on the upper right is disabled, and the screen still gets black.

### Via Shortcuts App
1. You click and open the reproduction site (https://webrtc-test-loading-reproduction.netlify.app/) via Shortcuts App with any iPhone.
2. You push "open camera" on the site.
3. You can sometimes see the video button on the upper right is disabled, and the screen still gets black.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230421/a5d7d871/attachment.htm>


More information about the webkit-unassigned mailing list