devopvoid / webrtc-java

WebRTC for desktop platforms running Java
Apache License 2.0
248 stars 60 forks source link

Problems using DeviceChangeListener #59

Closed meeeee12 closed 1 year ago

meeeee12 commented 2 years ago

I can listen for a device being plugged in using DeviceChangeListener and I can tell if it's an audio device by using instanceof if (device instanceof AudioDevice) but how do I determine it it's a render or capture device?

Thanks.

devopvoid commented 1 year ago

As of now, you can't tell if it is a capture or render device. This can be done if you cash or retrieve the devices and compare them.

devopvoid commented 1 year ago

I'm closing this as it is not critical and can be accomplished by cashing the devices.