| Summary: | Apple Silicon: Black screen share on remote side of peerconnection | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Venkatesh Devale <devalevenkatesh> | ||||
| Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED DUPLICATE | ||||||
| Severity: | Normal | CC: | chris.cooksey, daginge, eric.carlson, jer.noble, webkit-bug-importer, youennf | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | Mac (Apple Silicon) | ||||||
| OS: | macOS 11 | ||||||
| Attachments: |
|
||||||
|
Description
Venkatesh Devale
2022-02-18 16:12:03 PST
This appears to reproduce on M1 on macOS 12.2.1, with both shipping Safari and Safari Technology Preview. This only happens if the video format is H.264. If the format is VP8, it works. Is it working if getDisplayMedia resolution is lowered? This might be related to https://bugs.webkit.org/show_bug.cgi?id=229071. So we do not have any resolution in constraints while calling `getDisplayMedia`. Here are the constraints:
{audio: false, video: {frameRate: {max: 15}}}
Could you please help me understand which resolution you are talking here?
(In reply to Venkatesh Devale from comment #5) > So we do not have any resolution in constraints while calling > `getDisplayMedia`. Here are the constraints: > > {audio: false, video: {frameRate: {max: 15}}} > > Could you please help me understand which resolution you are talking here? The resolution of the display MediaStreamTrack. If you do something like {audio: false, video: {width: {max:1280}, frameRate: {max: 15}}}, would it work? SO I tested with above suggested constraints and it is working for me from Safari to other browser. I have not updated the Safari or macOS yet as well.
```
{audio: false, video: {frameRate: {max: 15}, width: {max: 1280}}}
```
Thanks for providing the constraints. Well, couple of questions:
1. Do you know if this is a problem only on specific Safari versions on M1 especially or is there a fixed Safari version landed? Checking as we have to handle this behavior for all those version it seems.
2. Is 1280 a value to be used generally or depends on the size of screen? (I tested on a wide 2k monitor and it works fine with above constraints. ) I do not have a M1 macbook rather a Mac Mini which needs external display.
> 1. Do you know if this is a problem only on specific Safari versions on M1 > especially or is there a fixed Safari version landed? Checking as we have to > handle this behavior for all those version it seems. I would think latest MacOS betas contain the fix. Please have a try. > 2. Is 1280 a value to be used generally or depends on the size of screen? (I > tested on a wide 2k monitor and it works fine with above constraints. ) I do > not have a M1 macbook rather a Mac Mini which needs external display. The issue is that the M1 encoder is more strict about the H264 selected profile and how much pixels it can supports. 720p should be fine. *** This bug has been marked as a duplicate of bug 233036 *** |