- Timestamp:
- Jul 3, 2015 6:21:30 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/ios/ipjsua/ipjsuaAppDelegate.m
r5118 r5125 182 182 UIDeviceOrientation dev_ori = [[UIDevice currentDevice] orientation]; 183 183 184 if (dev_ori == prev_ori && !note) return;184 if (dev_ori == prev_ori) return; 185 185 186 186 NSLog(@"Device orientation changed: %d", (prev_ori = dev_ori)); … … 193 193 } 194 194 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); 197 198 } 198 199 #endif … … 273 274 last = (wid == PJSUA_INVALID_ID) ? PJSUA_MAX_VID_WINS : wid+1; 274 275 275 [app orientationChanged:NULL];276 277 276 for (;i < last; ++i) { 278 277 pjsua_vid_win_info wi;
Note: See TracChangeset
for help on using the changeset viewer.