-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Get audio sources list and change localstream audio #395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can use: after you authorize the user to access media. Look for device of kind == 'audiooutput' After you can specify the deviceid is in the constraint. Sorry I'm on my mobile, but I hope it give you enough direction If you are using the web implementation, it will only work if you are using the master branch. See bug #367 |
Hello, Another point, you said I have to specify the device id in the constraint, does it mean that I can't change audio source during the call ? Thanks, |
I have the same problem, I can't see the audio outputs or disable the ear speaker |
Hello, The result is the same on Android and iOS, and the result is the same if the bluetooth headset is connected or not : ANDROID (All permissions (AUDIO, BLUETOOTH, ...) are present in AndroidManifest.xml) : Do I forgot something to have all audio devices listed ? |
And to access the two native speakers of the devices? How do I do? I have a problem that I can't disable the ear speaker and use only the main one. |
Hello gbmiranda, Maybe I misunderstand your question, you just want to enable or disable the speaker. |
You can look at the latest commit on the master. For the web implementation, is a little bit easier, since we can provide a different constraints. Look at the code on switchCamera(). We can probably do the same thing for changeAudioOutput. |
Related to #375 for the web implementation |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Is still feature (list all audio sources) still not working on mobile? @wer-mathurin do you still have the link to the commit you referred to above?
Thank you |
The helper class is: Make sure you have accept the permission request for accessing camera and microphone before enumerating devices. |
Thank you. Sorry I just got a chance to revisit this again. I was hoping to see how you enumerate camera devices so that I could adapt the implementation for audio outputs. However, I couldn't find it in helper.dart; I probably misinterpreted your comment. Would you be able to help point me in the right direction? |
Have you try/look at something like audio_session plugin. I am not sure that this functionality must be implemented within |
Thank you! I will check it out. I don't think the webrtc constraint is a must. |
I was able to the the audio input device IDs. However, webrtc's getUserMedia() does not seem to respect the device ID specified in the constraints. Does FlutterWebRTC support selecting audio input by device IDs? |
Hello,
Is it possible to list all audio sources : headphones, speaker, bluetooth, ... available on the device ?
An how can I change from one to another during a call ?
Thank you,
Luc
The text was updated successfully, but these errors were encountered: