[Webkit-unassigned] [Bug 281901] New: Broken stream from navigator.mediaDevices.getUserMedia in PWA when trying to access camera image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 22 03:18:56 PDT 2024


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

            Bug ID: 281901
           Summary: Broken stream from navigator.mediaDevices.getUserMedia
                    in PWA when trying to access camera image
           Product: WebKit
           Version: Safari 18
          Hardware: iPhone / iPad
                OS: All
            Status: NEW
          Severity: Major
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mtarasov777 at gmail.com

When making a request with navigator.mediaDevices.getUserMedia({ video: true }), the stream appears to be functioning but does not display an image. There is no way to track that a broken stream has been returned. Concurrently, an error occurs in Safari: A MediaStreamTrack ended due to a capture failure. It seems to be a hardware issue and there is no possibility to log it from our side.

There are no specific steps to reproduce the issue.
The error occurs only in PWA and not in a specific application but in all PWAs attempting to use camera images.
The error appears randomly and can disappear just as randomly. Most often, it disappears with any OS update but then reoccurs.
The issue is widespread. In our product, it affects more than a thousand users daily.

Detection Method:
We obtain the stream from navigator.mediaDevices.getUserMedia, attempt to render it onto a Canvas, and either get an empty Canvas sized 0 by 0 or a Canvas of the correct size filled with a black color (70% of cases are the first scenario, 30% the second scenario among all errors).

Related bug
https://bugs.webkit.org/show_bug.cgi?id=252465#c32

-- 
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/20241022/ef86ddd6/attachment.htm>


More information about the webkit-unassigned mailing list