[Webkit-unassigned] [Bug 255441] New: getDisplayMedia fails to capture stream with various video constraints

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Apr 13 23:59:29 PDT 2023


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

            Bug ID: 255441
           Summary: getDisplayMedia fails to capture stream with various
                    video constraints
           Product: WebKit
           Version: Safari 16
          Hardware: All
                OS: macOS 13
            Status: NEW
          Severity: Critical
          Priority: P2
         Component: Web Audio
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sknth.n at protonmail.com
                CC: cdumez at apple.com

Created attachment 465910

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

Console log from safari containing the failure

We're observing this issue on the current setups:
MacOS: 13.2.1 Ventura
Safari 16.3, 16.4
It is reproducible every time.

Safari has been given Screen Recording permissions in the System settings.

When we try to share the screen, it fails with this error in the console:
"A MediaStreamTrack ended due to a capture failure"

I tried experimenting with the video constraints while calling getDisplayMedia(). When sending a basic object in as video constraints like below, the screen sharing works perfectly fine.
{
    aspectRatio: 1.777,
    frameRate: 10,
}


However, if we send in video constraints like these, we observe the problem.
{
    "cursor": "always",
    "aspectRatio": 1.77,
    "frameRate": 10,
    "height": 1080,
    "width": 1920
}

{
    cursor: "always",
    frameRate: 10,
    height: 1080,
    idealHeight: 1080,
    idealWidth: 1920,
    maxHeight: 1080,
    maxWidth: 1920,
    width: 1920
}

-- 
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/20230414/e1d2ee6f/attachment.htm>


More information about the webkit-unassigned mailing list