Closed Bug 1168788 Opened 9 years ago Closed 9 years ago

Check for devices should check for audio or video not just audio

Categories

(Hello (Loop) :: Client, defect, P2)

defect
Points:
2

Tracking

(firefox41 fixed)

RESOLVED FIXED
mozilla41
Iteration:
41.2 - Jun 8
Tracking Status
firefox41 --- fixed

People

(Reporter: standard8, Assigned: standard8)

References

Details

Attachments

(1 file)

In discussing bug 1166824 with Sevaan, we agreed that the user should only be prompted to install a device when they have neither audio nor video devices installed. If they have either then they should be allowed to make a call (e.g. if they're on a landline phone, they might want to hook up video for screen sharing, and not need audio).

I want to park the work on bug 1166824 for a few days, but getting this corrected seems to be the right thing to do before we ship the more restrictive version of the standalone.
This implements the required changes.
Attachment #8611153 - Flags: review?(mdeboer)
Comment on attachment 8611153 [details] [diff] [review]
Check for devices should check for audio or video not just audio.

Review of attachment 8611153 [details] [diff] [review]:
-----------------------------------------------------------------

Ship it! Err, tag it!

::: browser/components/loop/content/shared/js/utils.js
@@ +328,5 @@
>      // by Google Chrome.
>      } else if ("MediaStreamTrack" in rootObject) {
>        rootObject.MediaStreamTrack.getSources(function(result) {
>          function checkForInput(device) {
> +          return device.kind === "audio" || device.kind == "video";

nit: s/==/===/
Attachment #8611153 - Flags: review?(mdeboer) → review+
https://hg.mozilla.org/mozilla-central/rev/276bef475492
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla41
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: