[Webkit-unassigned] [Bug 207191] New: Align getDisplayMedia() with spec

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Feb 4 02:02:44 PST 2020


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

            Bug ID: 207191
           Summary: Align getDisplayMedia() with spec
           Product: WebKit
           Version: Safari 13
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Media
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: alex at bakoush.in

Currently, calling navigator.mediaDevices.getDisplayMedia() with no parameters throws a TypeError.

But according to the spec, the first and only parameter is optional.
See: https://www.w3.org/TR/screen-capture/#mediadevices-additions

Also, according to the spec, the first parameter type is DisplayMediaStreamConstraints, which defaults to:
{
  video = true;
  audio = false;
}
See: https://www.w3.org/TR/screen-capture/#dom-displaymediastreamconstraints

Expected behavior:
Calling getDisplayMedia() with no parameters will not throw an error, but will use the defaults of DisplayMediaStreamConstraints.

-- 
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/20200204/3a872714/attachment.htm>


More information about the webkit-unassigned mailing list