Changeset 271487 in webkit
- Timestamp:
- Jan 14, 2021, 9:17:47 AM (6 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r271481 r271487 1 2021-01-14 Youenn Fablet <youenn@apple.com> 2 3 Use AVAudioSessionModeDefault in AVAudioSessionCaptureDeviceManager::createAudioSession 4 https://bugs.webkit.org/show_bug.cgi?id=220618 5 <rdar://problem/73185920> 6 7 Reviewed by Eric Carlson. 8 9 Manually tested. 10 11 * platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm: 12 (WebCore::AVAudioSessionCaptureDeviceManager::createAudioSession): 13 AVAudioSessionModeDefault is less disruptive than video chat mode. 14 In particular, if the page is playing audio, the potential audio level bump when activating 15 this session will be largely less noticeable. 16 1 17 2021-01-14 Zalan Bujtas <zalan@apple.com> 2 18 -
trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm
r271471 r271487 108 108 NSError *error = nil; 109 109 auto options = AVAudioSessionCategoryOptionAllowBluetooth | AVAudioSessionCategoryOptionMixWithOthers; 110 [m_audioSession setCategory:AVAudioSessionCategoryPlayAndRecord mode:AVAudioSessionModeVideoChat options:options error:&error]; 111 if (error) 112 RELEASE_LOG_ERROR(WebRTC, "Failed to set audio session category with error: %@.", error.localizedDescription); 110 [m_audioSession setCategory:AVAudioSessionCategoryPlayAndRecord mode:AVAudioSessionModeDefault options:options error:&error]; 111 RELEASE_LOG_ERROR_IF(error, WebRTC, "Failed to set audio session category with error: %@.", error.localizedDescription); 113 112 } 114 113
Note:
See TracChangeset
for help on using the changeset viewer.