WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 247310
In M1 Ventura safari 16.1, when the constraints passed in by getDisplayMedia contain the 'ideal' parameter, screen sharing will fail.
https://bugs.webkit.org/show_bug.cgi?id=247310
Summary
In M1 Ventura safari 16.1, when the constraints passed in by getDisplayMedia ...
Yuwei Zhang
Reported
2022-11-01 01:08:22 PDT
In M1 Ventura safari 16.1, when the constraints passed in by getDisplayMedia contain the 'ideal' parameter, screen sharing will fail. Tested devices and browsers: Bug is reproducible with Safari on: - M1 Pro (MacOS Ventura) safari 16.1 (18614.2.9.1.12) --------------------------------------------------------------- Use case: Failed:
https://zhangyuwei-1254112368.cos.ap-guangzhou.myqcloud.com/safari/gdm-ideal-failed.html
constraints: { video: { width: { ideal: 1920, max: 1920 }, audio: { ideal: 1080, max: 1080 } } } Success:
https://zhangyuwei-1254112368.cos.ap-guangzhou.myqcloud.com/safari/gdm-success.html
constraints: { video: { width: { max: 1920 }, audio: { max: 1080 } } }
Attachments
Share screenshot
(1.46 MB, image/png)
2022-11-03 03:14 PDT
,
ivan.zahrodskyi
no flags
Details
application window share screenshot
(96.27 KB, image/png)
2022-11-03 03:27 PDT
,
ivan.zahrodskyi
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-11-01 12:51:28 PDT
<
rdar://problem/101819966
>
ivan.zahrodskyi
Comment 2
2022-11-03 03:14:37 PDT
Created
attachment 463382
[details]
Share screenshot We also faced this issue some additions: - there no possibility to get resolution another than 1920x1080 1280x720 doesn't work navigator.mediaDevices( { video: { width: 1280, audio: 720 } } ); - if I call navigator.mediaDevices({video: true}) and select macbook screen video has black lines on the sides (this is because video resolution is 1920x1080 but macboocs screen has another resolution and another aspect ratio) tested with macbook pro 16 2019 (Intel) MacOS Ventura
ivan.zahrodskyi
Comment 3
2022-11-03 03:27:16 PDT
Created
attachment 463383
[details]
application window share screenshot if I call navigator.mediaDevices.getDisplayMedia({video: true}); and select some small application window (like calculator) video will have 1920x1080 resolution (see screenshot)
youenn fablet
Comment 4
2022-11-03 08:50:08 PDT
I can reproduce, it seems our call to createBufferPool fails with kCVReturnInvalidPixelBufferAttributes.
youenn fablet
Comment 5
2022-11-07 00:09:59 PST
Pull request:
https://github.com/WebKit/WebKit/pull/6199
youenn fablet
Comment 6
2022-11-07 00:10:38 PST
(In reply to youenn fablet from
comment #5
)
> Pull request:
https://github.com/WebKit/WebKit/pull/6199
This PR only fixes window capture.
EWS
Comment 7
2022-11-08 12:29:33 PST
Committed
256458@main
(882a38ecdaf1): <
https://commits.webkit.org/256458@main
> Reviewed commits have been landed. Closing PR #6199 and removing active labels.
youenn fablet
Comment 8
2022-11-15 01:23:33 PST
***
Bug 247883
has been marked as a duplicate of this bug. ***
youenn fablet
Comment 9
2022-12-09 02:44:14 PST
***
Bug 248964
has been marked as a duplicate of this bug. ***
Brian Liu
Comment 10
2023-01-09 20:42:34 PST
See the solution
https://stackoverflow.com/a/75065525/4796724
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug