RTCConfiguration *configuration = [[RTCConfiguration alloc] init];
[RTCAudioSessionConfiguration webRTCConfiguration].categoryOptions = AVAudioSessionCategoryOptionAllowBluetooth|AVAudioSessionCategoryOptionAllowBluetoothA2DP|AVAudioSessionCategoryOptionDuckOthers;
這樣設(shè)置webrtc解決了我的問題