Changeset 5463


Ignore:
Timestamp:
Oct 18, 2016 12:38:18 AM (8 years ago)
Author:
ming
Message:

Fixed #1941: Disable the setup of audio session in coreaudio_dev. This will allow application to have better control towards its audio session management, which will help to ensure a smoother integration with CallKit? features.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia-audiodev/coreaudio_dev.m

    r5171 r5463  
    5353    /* Starting iOS SDK 7, Audio Session API is deprecated. */ 
    5454    #define USE_AUDIO_SESSION_API 0 
     55 
     56    /* For better integration with CallKit features (available starting 
     57     * in iOS 10), let the application setup and manage its own 
     58     * audio session. 
     59     */ 
     60    #define SETUP_AV_AUDIO_SESSION  0 
    5561#endif 
    5662 
     
    336342#endif 
    337343 
     344#if SETUP_AV_AUDIO_SESSION 
    338345    /* Initialize audio session category and mode */ 
    339346    { 
     
    361368        } 
    362369    } 
     370#endif 
    363371 
    364372    cf_instance = cf; 
     
    20812089    pj_mutex_unlock(stream->cf->mutex); 
    20822090 
    2083 #if !COREAUDIO_MAC 
     2091#if !COREAUDIO_MAC && SETUP_AV_AUDIO_SESSION 
    20842092    if (should_deactivate) { 
    20852093        if ([stream->sess  
Note: See TracChangeset for help on using the changeset viewer.