Closed
Bug 1453269
Opened 8 years ago
Closed 8 months ago
Remove screen capture resolution hack from MediaEngineRemoteVideoSource.cpp
Categories
(Core :: WebRTC: Audio/Video, enhancement, P3)
Tracking
()
RESOLVED
FIXED
143 Branch
| Tracking | Status | |
|---|---|---|
| firefox143 | --- | fixed |
People
(Reporter: pehrsons, Assigned: pehrsons)
References
(Blocks 1 open bug)
Details
Attachments
(3 files, 1 obsolete file)
In bug 1211656 we fixed constraints for screen sharing by hacking the desired resolution into a capability (essentially encoding the ideal and max constraint into one variable for each dimension) and handing it to the capture backend.
This hack later resulted in bug 1359662 and bug 1450954.
With bug 1388219 we support downscaling in the child process and would no longer need this hack. It's not optimal for perf to always capture at full resolution and pass such frames over IPC, but if that means we can leave the upstream capture backend unmodified it is still preferred IMO.
We'd need a way to figure out the captured screen's resolution ahead of selecting a capbility to be able to decide on the settings for a capture before resolving any capture requests.
Extra care needs to be taken for window captures where the size of the window may change dynamically while still fulfilling constraints.
[1] https://searchfox.org/mozilla-central/rev/6bfadf95b4a6aaa8bb3b2a166d6c3545983e179a/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp#820-839
[2] https://searchfox.org/mozilla-central/rev/6bfadf95b4a6aaa8bb3b2a166d6c3545983e179a/dom/media/webrtc/MediaEngineRemoteVideoSource.cpp#490-501
| Assignee | ||
Updated•8 years ago
|
Rank: 24
Priority: -- → P3
Updated•8 years ago
|
Blocks: Screensharing
Updated•3 years ago
|
Severity: normal → S3
| Assignee | ||
Updated•1 year ago
|
Attachment #9087825 -
Attachment is obsolete: true
| Assignee | ||
Updated•1 year ago
|
Assignee: nobody → apehrson
| Assignee | ||
Comment 2•10 months ago
|
||
| Assignee | ||
Comment 3•9 months ago
|
||
| Assignee | ||
Comment 4•9 months ago
|
||
Pushed by pehrsons@gmail.com:
https://github.com/mozilla-firefox/firefox/commit/870e5a9de960
https://hg.mozilla.org/integration/autoland/rev/356810980517
Track constraints for desktop frame downscaling. r=jib
https://github.com/mozilla-firefox/firefox/commit/68d3c968259e
https://hg.mozilla.org/integration/autoland/rev/231ed181a011
Update settings based on constraints, not just capability. r=jib
https://github.com/mozilla-firefox/firefox/commit/23078210821f
https://hg.mozilla.org/integration/autoland/rev/239b6758940f
Update settings on reconfigure. r=jib
Pushed by pstanciu@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/7c160ed750a0
https://hg.mozilla.org/integration/autoland/rev/cac7401ab455
Revert "Bug 1453269 - Update settings on reconfigure. r=jib" for causing WPT crashes @ mozilla::CalculateDesiredSize
Backed out for causing WPT crashes @ mozilla::CalculateDesiredSize
Pushed by pehrsons@gmail.com:
https://github.com/mozilla-firefox/firefox/commit/984b4d25da8a
https://hg.mozilla.org/integration/autoland/rev/a644d2fbf7eb
Track constraints for desktop frame downscaling. r=jib
https://github.com/mozilla-firefox/firefox/commit/2c45fab0ab9d
https://hg.mozilla.org/integration/autoland/rev/21f2a0fc8200
Update settings based on constraints, not just capability. r=jib
https://github.com/mozilla-firefox/firefox/commit/207d68677278
https://hg.mozilla.org/integration/autoland/rev/392139ad83bc
Update settings on reconfigure. r=jib
Comment 9•8 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/a644d2fbf7eb
https://hg.mozilla.org/mozilla-central/rev/21f2a0fc8200
https://hg.mozilla.org/mozilla-central/rev/392139ad83bc
Status: NEW → RESOLVED
Closed: 8 months ago
status-firefox143:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
Updated•8 months ago
|
QA Whiteboard: [qa-triage-done-c144/b143]
You need to log in
before you can comment on or make changes to this bug.
Description
•