Changes between Version 75 and Version 76 of Getting-Started/iPhone


Ignore:
Timestamp:
Jul 3, 2015 10:47:08 AM (9 years ago)
Author:
ming
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Getting-Started/iPhone

    v75 v76  
    128128 
    1291291. Setup the device to get orientation change notification (by calling the API {{{UIDevice.beginGeneratingDeviceOrientationNotifications}}} and add a callback to receive {{{UIDeviceOrientationDidChangeNotification}}}). 
    130 2. Inside the callback, call PJSUA API {{{pjsua_vid_dev_set_setting()}}} to set the video device to the correct orientation. 
     1302. Inside the callback, call PJSUA API 
     131 {{{ 
     132pjsua_vid_dev_set_setting(dev_id, PJMEDIA_VID_DEV_CAP_ORIENTATION, &new_orientation, PJ_TRUE) 
     133 }}} 
     134 to set the video device to the correct orientation. 
    131135 
    132136For sample usage, please refer to [https://trac.pjsip.org/repos/browser/pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m ipjsua sample app]. Ticket #1861 explains this feature in detail.