Open Bug 1294316 Opened 8 years ago Updated 2 years ago

Allow firing devicechange just once when inserting a camera with mic.

Categories

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

defect

Tracking

()

People

(Reporter: mchiang, Unassigned)

Details

https://github.com/w3c/mediacapture-main/pull/376

The User Agent MAY fire just a single event when several devices are added at the same time, e.g. a camera with a microphone.
There are some limitation on OSX to support this.
When I plug in my Logitec webcam, AVfoundation only fire two plugin events without more detail.
It doesn't indicate the two events are from the same hardware or not.
It means I can't distinguish the case user plug in a webcam with cam & mic from the case user plug in 2 USB cameras in the same time.
Currently the only solution comes to my mind is to use a timer, to filter out the 2nd events which arrives after the 1st one within X ms. But there will be some overkill. It is also a problem about the magic number we set to X.
Rank: 25
Priority: -- → P2
Mass change P2->P3 to align with new Mozilla triage process.
Priority: P2 → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.