UnityDetectHeadset icon indicating copy to clipboard operation
UnityDetectHeadset copied to clipboard

Headphones without microphones (Android)

Open fcvalise opened this issue 5 years ago • 2 comments

Thank you for this pluggin, it saves me lot of time :)

I noticed that nothing is detected if I plug headphones without microphone,. Does that makes any sense to you ?

Thanks again for your work !

fcvalise avatar Mar 11 '20 16:03 fcvalise

add TYPE_WIRED_HEADPHONES to the android plugin:

if(audioDeviceInfos[i].getType() == AudioDeviceInfo.TYPE_BLUETOOTH_SCO || audioDeviceInfos[i].getType() == AudioDeviceInfo.TYPE_WIRED_HEADSET || audioDeviceInfos[i].getType() == AudioDeviceInfo.TYPE_WIRED_HEADPHONES)

SniperED007 avatar Apr 30 '20 12:04 SniperED007

Thank you very much for the plugin and this addition was golden for headphones without mic :D

From my testing this is working for Sony inline mic headphones but unfortunately not for Apple in line mic headphones:

image (5)

Do you know if there is another device type for these kind of headphones? Thank you!

juanma-ivre avatar Jan 11 '22 08:01 juanma-ivre