- Timestamp:
- Aug 21, 2015 6:46:32 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
r5125 r5166 181 181 static UIDeviceOrientation prev_ori = 0; 182 182 UIDeviceOrientation dev_ori = [[UIDevice currentDevice] orientation]; 183 int i; 183 184 184 185 if (dev_ori == prev_ori) return; … … 193 194 } 194 195 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); 196 /* Here we set the orientation for all video devices. 197 * This may return failure for renderer devices or for 198 * capture devices which do not support orientation setting, 199 * we can simply ignore them. 200 */ 201 for (i = pjsua_vid_dev_count()-1; i >= 0; i--) { 202 pjsua_vid_dev_set_setting(i, PJMEDIA_VID_DEV_CAP_ORIENTATION, 203 &pj_ori[dev_ori-1], PJ_TRUE); 204 } 198 205 } 199 206 #endif
Note: See TracChangeset
for help on using the changeset viewer.