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

NEW
Unassigned

Status

()

Core
WebRTC: Audio/Video
P3
normal
Rank:
25
2 years ago
4 months ago

People

(Reporter: mchiang, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
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.
(Reporter)

Comment 1

2 years ago
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
You need to log in before you can comment on or make changes to this bug.