setAudioRecoveryPolicy method
Configures the automatic audio-stream error recovery loop (retry attempts, backoff, and stall detection).
Applies to audio navigators created after this call. Existing sessions keep the policy captured at construction time. Unconfigured, navigators use AudioRecoveryPolicy's defaults.
Implementation
@override
Future<void> setAudioRecoveryPolicy(AudioRecoveryPolicy policy) async {
await methodChannel.invokeMethod<void>('setAudioRecoveryPolicy', policy.toJson());
}