Git Product home page Git Product logo

Comments (10)

devopvoid avatar devopvoid commented on August 24, 2024 1

I'm on it. Will test the mac version this week and comment on this issue.

from webrtc-java.

devopvoid avatar devopvoid commented on August 24, 2024

I started to create wiki pages for this library. There is a wiki page for media devices. Right now, the Java API does not have methods implemented to retrieve the default device of the OS. BUT, the native code does have an implementation which works at least for Windows and macOS, Linux not tested with default devices.

Will add these methods to the Java implementation.

from webrtc-java.

Stasyanych avatar Stasyanych commented on August 24, 2024

Thanks a lot for the quick response.

from webrtc-java.

polyn0m avatar polyn0m commented on August 24, 2024

@devopvoid 0.6 resolve this?

from webrtc-java.

devopvoid avatar devopvoid commented on August 24, 2024

The version 0.6.0 should resolve this issue.

MediaDevices.getDefaultAudioRenderDevice(); (e.g. speaker)
MediaDevices.getDefaultAudioCaptureDevice(); (e.g. microphone)

Please let me know if this works for you.

from webrtc-java.

Stasyanych avatar Stasyanych commented on August 24, 2024

It works for me. I'm tested this on Win10.
But on MacOS getDeafultAudioRenderDevice() return empty device name if used embedded speaker.

from webrtc-java.

Stasyanych avatar Stasyanych commented on August 24, 2024

Hello, dear friend!
Thanks again for the great work done.
I continue to investigate the WebRTC library in more detail and found the following problems with getting a list of devices.
Problems concern macOS:

  1. The "deviceConnected" and "deviceDisconnected" method of the DeviceChange Listener interface returns an empty name if it has Cyrillic characters. The problem is clearly in the encoding
  2. The AudioDeviceModule method.getPlayoutDevices() returns the device names correctly, but the descriptor values are missing.
  3. The number of devices that mediaDevices and AudioDeviceModule returns is different.
    This leads to the fact that it is not always possible to correctly install the connected device in the DeviceChangeListener event
    I attach a screenshot that shows everything described above.

diff_devices

from webrtc-java.

polyn0m avatar polyn0m commented on August 24, 2024

Hello @devopvoid

This issue fix in next version?

from webrtc-java.

devopvoid avatar devopvoid commented on August 24, 2024

The latest snapshot now works with Cyrillic and other characters.

from webrtc-java.

Stasyanych avatar Stasyanych commented on August 24, 2024

Thanks for the fix for the Cyrillic problem. Please tell me, has anything been done with the fact that all capture devices and playout devices guid returned as null when received through AudioDeviceModule? This behavior is only on MacOS. On win10 everything is fine. In our correspondence above I attached a screenshot where you can see it.
Thank you in advance for the answer!

from webrtc-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.