⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271487 in webkit


Ignore:
Timestamp:
Jan 14, 2021, 9:17:47 AM (6 years ago)
Author:
youenn@apple.com
Message:

Use AVAudioSessionModeDefault in AVAudioSessionCaptureDeviceManager::createAudioSession
https://bugs.webkit.org/show_bug.cgi?id=220618
<rdar://problem/73185920>

Reviewed by Eric Carlson.

Manually tested.

  • platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm:

(WebCore::AVAudioSessionCaptureDeviceManager::createAudioSession):
AVAudioSessionModeDefault is less disruptive than video chat mode.
In particular, if the page is playing audio, the potential audio level bump when activating
this session will be largely less noticeable.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r271481 r271487  
     12021-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
    1172021-01-14  Zalan Bujtas  <zalan@apple.com>
    218
  • trunk/Source/WebCore/platform/mediastream/ios/AVAudioSessionCaptureDeviceManager.mm

    r271471 r271487  
    108108    NSError *error = nil;
    109109    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);
    113112}
    114113
Note: See TracChangeset for help on using the changeset viewer.