Open Bug 1423991 Opened 7 years ago Updated 2 years ago

MediaStreamTrack::GetSettings for video return native resolution sometimes

Categories

(Core :: WebRTC: Audio/Video, defect, P2)

58 Branch
defect

Tracking

()

Tracking Status
firefox58 --- unaffected
firefox59 --- affected

People

(Reporter: pehrsons, Unassigned)

References

Details

STR: Open two tabs in the same content process Load https://jsfiddle.net/7udgdbbu/10/ in both Set one to use a lower resolution than the other, make sure that a lower resolution is in effect In the tab with the lower resolution, click the GetSettings button Expected: The logged settings mention the lower resolution Actual: The logged settings mention the higher resolution This is due to how we treat the resolution when downscaling in MediaEngineRemoteVideoSource. This is a fingerprinting surface.
Bug 1299515 will refactor parts of this class. It might even fix this issue. But let's keep this bug in either case, for adding tests.
Rank: 15
Depends on: 1299515
Priority: -- → P2

This is now returning the empty object { } for WebRTC video streams, rather than any width or height at all.

In Nightly from 2021-08-08 I see Object { deviceId: "VTPMsImGZbhMAzwBkC4Bd7fqv3vVoyW244edFc1imAs=", frameRate: 30, groupId: "GN/5/DgBYOEGrH12vBWFGdR0oD7BYKXd2ymJJS21Oa0=", height: 480, width: 640 } when logging the settings to the console.

But if you have a way to reproduce the empty object for getSettings, please file a new bug with those details.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.