[Webkit-unassigned] [Bug 252465] New: In PWA, HTML Video Element may be unable to play stream from 'getUserMedia()'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Feb 17 00:51:55 PST 2023


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

            Bug ID: 252465
           Summary: In PWA, HTML Video Element may be unable to play
                    stream from 'getUserMedia()'
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Major
          Priority: P2
         Component: WebRTC
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: 877211593 at qq.com
                CC: youennf at gmail.com

I get the media stream by 'getUserMedia()' and make it the source of HTML Video Element. Then I play the video after video is loaded.

It works all fine in Safari.

But the problem is that when it runs in PWA, it somestimes doesn't work. HTML Video Element is unable to play the stream, although the stream is active.

It reproducts after closing the PWA, reopen it right away, and repeat the operation above for several times(maybe 10+ times). 'vide.play()' is always in 'pending'. Also, when it reproducted, I find the icon which indicates the camera is in use will appear but disappear soon. If I close the PWA at this time, wait for 5s or so, and then reopen the PWA,it backs to normal. 

Reproduct both in iPhone 12 mini IOS 16.3 and iPad Pro Generation 3 IOS 15.7.2.

Test code:https://github.com/Cube-J/pwa_camera_test/blob/main/helloworld-pwa.html
Run: https://cube-j.github.io/pwa_camera_test/helloworld-pwa.html

-- 
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/20230217/5b9c90ad/attachment.htm>


More information about the webkit-unassigned mailing list