Open Bug 1436424 Opened 7 years ago Updated 5 months ago

Remove {fake: true} constraint

Categories

(Core :: WebRTC: Audio/Video, task, P3)

61 Branch
task

Tracking

()

Tracking Status
firefox60 --- affected

People

(Reporter: jib, Unassigned)

References

Details

(Keywords: dev-doc-needed, site-compat)

We currently expose fake internal camera and microphone output devices we use internally for testing to the web platform using a `fake` constraint in gUM: navigator.mediaDevices.getUserMedia({video: true, audio: true, fake: true}); This is non-standard functionality we should remove. The functionality will remain accessible using the "media.navigator.streams.fake;true" pref [1] for use in our tests and in things like web-platform-tests. To do this, we need to also update various internal tests that still use {fake: true} and sometimes {fake:false} to twiddle the pref instead. The web platform functionality lost is an audio track emitting a 1 kHz sine wave, and a video track emitting a 640x480 solid surface of slowly changing color, with some timestamp info encoded in the corner. This is trivial to replicate in JS these days with web audio and captureStream [2]. [1] https://searchfox.org/mozilla-central/rev/84cea84b12145d752e50ddca6be5462c38510e35/dom/media/MediaManager.cpp#2678-2679 [2] See https://blog.mozilla.org/webrtc/warm-up-with-replacetrack/ for a starting point.
See Also: → 1436523
Version: 60 Branch → 61 Branch
See Also: → 1534495
Type: enhancement → task
Keywords: site-compat
Severity: normal → S3
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.