Use setupIOSAudioManagement instead.
The room parameter is ignored — audio session is now managed
via audio engine events, not room track counts.
The onConfigureNativeAudio callback is also deprecated and unsafe: it
runs under a bounded native wait on the audio worker thread. Prefer the
default native path, or pass an IOSAudioSessionPolicy to
setupIOSAudioManagement.
Note: the trackState passed to onConfigureNativeAudio is now
derived from the audio engine's playout/recording state, not from
publication counts. Edge cases can differ. For example, a
published-but-muted local audio track that previously yielded
localOnly may now appear as remoteOnly or none.
Deprecated
Use setupIOSAudioManagement instead. The
roomparameter is ignored — audio session is now managed via audio engine events, not room track counts.The
onConfigureNativeAudiocallback is also deprecated and unsafe: it runs under a bounded native wait on the audio worker thread. Prefer the default native path, or pass anIOSAudioSessionPolicytosetupIOSAudioManagement.Note: the
trackStatepassed toonConfigureNativeAudiois now derived from the audio engine's playout/recording state, not from publication counts. Edge cases can differ. For example, a published-but-muted local audio track that previously yieldedlocalOnlymay now appear asremoteOnlyornone.