Closed Bug 915007 Opened 11 years ago Closed 11 years ago

[B2G] The audio device name is an empty string

Categories

(Core :: WebRTC, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: schien, Assigned: schien)

References

Details

We need a readable microphone name while displaying device selection prompt dialog on FirefoxOS, but AudioDeviceAndroidOpenSLES simply set the device name as an empty string.

Source code is at http://dxr.mozilla.org/mozilla-central/source/media/webrtc/trunk/webrtc/modules/audio_device/audio_device_opensles.cc#l617
blocking-b2g: --- → koi?
I did some experiment on FirefoxOS. The audio frame will be capture from line-in microphone while connecting a headset and will be instantly change to built-in microphone when headset is removed. So, there is only single audio device be available on FirefoxOS. I guess there is no need to provide a readable name for audio device.
Status: NEW → RESOLVED
blocking-b2g: koi? → ---
Closed: 11 years ago
Resolution: --- → WONTFIX
(In reply to Shih-Chiang Chien [:schien] from comment #1)
> I did some experiment on FirefoxOS. The audio frame will be capture from
> line-in microphone while connecting a headset and will be instantly change
> to built-in microphone when headset is removed. So, there is only single
> audio device be available on FirefoxOS. I guess there is no need to provide
> a readable name for audio device.

Are you sure? What happens in the case where I request gUM audio with the internal microphone and a bluetooth headset with a microphone?
And does this apply to all FirefoxOS devices, or just to a particular one?
Flags: needinfo?(schien)
This will work for all devices because the device name "front"/"back" is given by GonkCameraManager, see http://dxr.mozilla.org/mozilla-central/source/dom/camera/GonkCameraManager.cpp#l54
Flags: needinfo?(schien)
Sorry I mixed up with other bug. Just forget about what says in comment 4.
You need to log in before you can comment on or make changes to this bug.