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/include/pjsua2/media.hpp

    r5123 r5138  
    16741674    const VideoDevInfoVector &enumDev() throw(Error); 
    16751675 
     1676    /** 
     1677     * Check whether the video capture device is currently active, i.e. if 
     1678     * a video preview has been started or there is a video call using 
     1679     * the device.     
     1680     * 
     1681     * @param dev_id    The video device id 
     1682     *  
     1683     * @return          True if it's active. 
     1684     */ 
     1685    bool isCaptureActive(int dev_id) const; 
     1686 
     1687    /** 
     1688     * This will configure video orientation of the video capture device. 
     1689     * If the device is currently active (i.e. if there is a video call 
     1690     * using the device or a video preview has been started), the method 
     1691     * will forward the setting to the video device instance to be applied 
     1692     * immediately, if it supports it. 
     1693     * 
     1694     * The setting will be saved for future opening of the video device, 
     1695     * if the "keep" argument is set to true. If the video device is 
     1696     * currently inactive, and the "keep" argument is false, this method 
     1697     * will throw Error. 
     1698     * 
     1699     * @param dev_id    The video device id 
     1700     * @param orient    The video orientation. 
     1701     * @param keep      Specify whether the setting is to be kept for 
     1702     *                  future use. 
     1703     * 
     1704     */ 
     1705    void setCaptureOrient(pjmedia_vid_dev_index dev_id, 
     1706                          pjmedia_orient orient, 
     1707                          bool keep=true) throw(Error); 
     1708 
    16761709private: 
    16771710    VideoDevInfoVector videoDevList; 
Note: See TracChangeset for help on using the changeset viewer.