diff --git a/webrtc/examples/BUILD.gn b/webrtc/examples/BUILD.gn index e6138f10e6..de0e8c158c 100644 --- a/webrtc/examples/BUILD.gn +++ b/webrtc/examples/BUILD.gn @@ -271,10 +271,6 @@ if (is_ios || (is_mac && target_cpu != "x86")) { ":AppRTCMobile_ios_frameworks", ":apprtc_common", ":apprtc_signaling", - - # TODO(kthelgason): Remove this dep when audio_device has been - # moved to sdk. - "//webrtc/modules/audio_device:audio_device", ] } diff --git a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m index c57dace7a7..174514ff18 100644 --- a/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m +++ b/webrtc/examples/objc/AppRTCMobile/ios/ARDMainViewController.m @@ -235,9 +235,9 @@ static NSString *const loopbackLaunchProcessArgument = @"loopback"; } - (void)restartAudioPlayerIfNeeded { + [self configureAudioSession]; if (_mainView.isAudioLoopPlaying && !self.presentedViewController) { RTCLog(@"Starting audio loop due to WebRTC end."); - [self configureAudioSession]; [_audioPlayer play]; } }