cordova-plugin-iosrtc icon indicating copy to clipboard operation
cordova-plugin-iosrtc copied to clipboard

support audio devicechange event

Open jerry2013 opened this issue 4 years ago • 5 comments

using existing audio output notification to emit media devicechange event

jerry2013 avatar Jan 14 '21 17:01 jerry2013

That cool why did you close ?

hthetiot avatar Jan 14 '21 23:01 hthetiot

I found that turning off paired Bluetooth headset does not get the event for audioRouteChangeListener, at least not consistently. I'm not familiar with iOS at all so I don't know how to address the issue, so I'd rather not have this to avoid having people rely on something that's unreliable.

If someone knows how to get the right event in iOS, the rest of the code is solid (I think, as pairing a new Bluetooth works quite well - it might need a timeout before dispatch the event as I don't know if iOS update availableInputs before or after).

jerry2013 avatar Jan 14 '21 23:01 jerry2013

if someone knows how to get the right event in iOS, the rest of the code is solid (I think, as pairing a new Bluetooth works quite well - it might need a timeout before dispatch the event as I don't know if iOS update availableInputs before or after).

Let leave it open then :)

hthetiot avatar Jan 15 '21 00:01 hthetiot

Can you convert to draft @jerry2013 thx

hthetiot avatar Jan 20 '21 11:01 hthetiot

Thank you @jerry2013

hthetiot avatar Jan 21 '21 11:01 hthetiot