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

Fixed #1861: Add support for video capture orientation on Android

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua2/media.cpp

    r5123 r5138  
    13071307} 
    13081308 
     1309bool VidDevManager::isCaptureActive(int dev_id) const 
     1310{ 
     1311#if PJSUA_HAS_VIDEO 
     1312    return (pjsua_vid_dev_is_active(dev_id) == PJ_TRUE? true: false); 
     1313#else 
     1314    PJ_UNUSED_ARG(dev_id); 
     1315     
     1316    return false; 
     1317#endif 
     1318} 
     1319     
     1320void VidDevManager::setCaptureOrient(pjmedia_vid_dev_index dev_id, 
     1321                                     pjmedia_orient orient, 
     1322                                     bool keep) throw(Error) 
     1323{ 
     1324#if PJSUA_HAS_VIDEO 
     1325    PJSUA2_CHECK_EXPR(pjsua_vid_dev_set_setting(dev_id, 
     1326                          PJMEDIA_VID_DEV_CAP_ORIENTATION, &orient, keep)); 
     1327#endif 
     1328} 
     1329 
     1330 
    13091331VidDevManager::VidDevManager() 
    13101332{ 
Note: See TracChangeset for help on using the changeset viewer.