Closed Bug 819916 Opened 12 years ago Closed 12 years ago

Selecting "Share Microphone" or "Share Camera" picks the last item in the list rather than the first

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: standard8, Assigned: standard8)

Details

(Whiteboard: [getUserMedia][blocking-gum-][qa-])

Attachments

(1 file)

STR:

1) Go to a web page that uses webrtc and make a call.
2) When the share camera dialog comes up, drop down the list, note the order and but don't select anything from the drop-down.
3) Hit the share camera button.
4) Do the same with the Share Microphone button on the next dialog.

Actual Results:

- The last device in the list is selected each time.

Expected Results:

- Select the first device listed.

In the case of the microphone list, the first device is also listed as default.
This changes the for loops that find the devices when there's nothing specified so that they exit as soon as they've found a device - hence picking the first item in the list.
Attachment #690389 - Flags: review?(rjesup)
Attachment #690389 - Flags: review?(rjesup) → review+
It was selecting the last available device instead of the first
Summary: Selecting "Share Microphone" or "Share Camera" doesn't pick the default device in in the list. → Selecting "Share Microphone" or "Share Camera" picks the last item in the list rather than the first
https://hg.mozilla.org/mozilla-central/rev/8c98a08e6c44
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Keywords: verifyme
Whiteboard: [getUserMedia][blocking-gum-]
Keywords: verifyme
Whiteboard: [getUserMedia][blocking-gum-] → [getUserMedia][blocking-gum-][qa-]
Flags: in-testsuite-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: