Ignore:
Timestamp:
Jul 3, 2015 6:21:30 AM (9 years ago)
Author:
ming
Message:

Re #1861: Changed pjsua API for setting the orientation using a more generic API, pjsua_vid_dev_set_setting() instead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m

    r5118 r5125  
    182182    UIDeviceOrientation dev_ori = [[UIDevice currentDevice] orientation]; 
    183183     
    184     if (dev_ori == prev_ori && !note) return; 
     184    if (dev_ori == prev_ori) return; 
    185185     
    186186    NSLog(@"Device orientation changed: %d", (prev_ori = dev_ori)); 
     
    193193        } 
    194194         
    195         pjsua_vid_dev_set_orient(PJMEDIA_VID_DEFAULT_CAPTURE_DEV, 
    196                                  pj_ori[dev_ori-1]); 
     195        pjsua_vid_dev_set_setting(PJMEDIA_VID_DEFAULT_CAPTURE_DEV, 
     196                                  PJMEDIA_VID_DEV_CAP_ORIENTATION, 
     197                                  &pj_ori[dev_ori-1], PJ_TRUE); 
    197198    } 
    198199#endif 
     
    273274    last = (wid == PJSUA_INVALID_ID) ? PJSUA_MAX_VID_WINS : wid+1; 
    274275 
    275     [app orientationChanged:NULL]; 
    276      
    277276    for (;i < last; ++i) { 
    278277        pjsua_vid_win_info wi; 
Note: See TracChangeset for help on using the changeset viewer.