Scenario 1. User start recording in an recording app 2. An incoming call. Phone app acquire microphone. 3. Media recorder instance in recording app goes into an unknown state. No ondataavailable callback; requestData out of work. Basically, app has no idea that media stream is broken since HW contention. Expect behaviour: 1. media recorder switch to inactive mode. 2. trigger onerror on callback
Test with B2G 1. recording 2. answer MO call, remote side can't hear the uplink sound, but the recording still works. Telephony channel should be threat at the first priorty.
I think should be hooked in gUM module because gUM would hold the mic audio path.
Set it to be duplicate and let gUM module to handle the problem.