Open Bug 1307808 Opened 8 years ago Updated 2 years ago

MediaStreamTrack.getSettings() should return all specced constrainable values, not just the ones we support changing

Categories

(Core :: WebRTC, defect, P3)

50 Branch
defect

Tracking

()

People

(Reporter: sheppy, Unassigned)

References

Details

(Keywords: dev-doc-needed)

By the spec, the settings object returned by MediaStreamTrack.getSettings() should include the entire suite of constrainable properties, not just the ones which were changed or the ones which the user agent actually supports changing. If a setting has a value, it should be included.

For instance, on audio tracks, we currently only return echoCancellation, mozAutoGainControl, and mozNoiseSuppression. This leaves out crucial information such as sampleSize, sampleRate, and volume, all of which an app may need to know.

The spec doesn't actually say we need to do this, and I'm not sure if it's acceptable even to do this, but IMHO it would be incredibly helpful to do this.
deviceId is an important one we left out unfortunately (though that one can be polyfilled).
Rank: 22
Priority: -- → P2
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3

Bug 1537986 fixes a lot of these (including deviceId and groupId), in that we now report the ones we currently know about, whether they're explicitly set through constraints or not. There are some more settings listed in the spec so I'm leaving implementing them to this bug.

See Also: → 1537986
Keywords: dev-doc-needed
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.