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)

60 Branch
enhancement

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
Rank: 24
Priority: -- → P3
See Also: → 1454625
Severity: normal → S3
Attachment #9087825 - Attachment is obsolete: true
Assignee: nobody → apehrson
Blocks: 1973985
Depends on: 1973981
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
Status: NEW → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → 143 Branch
QA Whiteboard: [qa-triage-done-c144/b143]
Blocks: 1453259
Regressions: 1986052
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: