Changes between Version 75 and Version 76 of Getting-Started/iPhone
- Timestamp:
- Jul 3, 2015 10:47:08 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Getting-Started/iPhone
v75 v76 128 128 129 129 1. 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. 130 2. Inside the callback, call PJSUA API 131 {{{ 132 pjsua_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. 131 135 132 136 For 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.