DaVikingCode/UnityDetectHeadset

Headphones without microphones (Android)

Opened this issue · 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 !

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)

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!