Ignore:
Timestamp:
Aug 21, 2015 6:46:32 AM (6 years ago)
Author:
ming
Message:

Fixed #1880: Incorrect orientation after switching video capture or when using back camera

Included in this fix:

  • Change the spec & doc of pjmedia_orient enumeration
  • Change iOS sample app to rotate all video devices upon orientation change event.
  • Set orientation as well when fast switching cameras (for iOS and Android)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/include/pjmedia/types.h

    r3774 r5166  
    203203 
    204204    /** 
    205      * Natural orientation, e.g: sky upside on landscape view, head upside 
    206      * on human portrait. 
     205     * Natural orientation, i.e. the original orientation video will be 
     206     * displayed/captured without rotation. 
    207207     */ 
    208208    PJMEDIA_ORIENT_NATURAL, 
     
    210210    /** 
    211211     * Specifies that the video/picture needs to be rotated 90 degrees 
    212      * clockwise to be displayed in natural orientation. 
     212     * from its natural orientation in clockwise direction from the user's 
     213     * perspective. 
     214     * Note that for devices with back cameras (which faces away 
     215     * from the user), the video will actually need to be rotated 
     216     * 270 degrees clockwise instead. 
    213217     */ 
    214218    PJMEDIA_ORIENT_ROTATE_90DEG, 
     
    216220    /** 
    217221     * Specifies that the video/picture needs to be rotated 180 degrees 
    218      * clockwise to be displayed in natural orientation. 
     222     * from its natural orientation. 
    219223     */ 
    220224    PJMEDIA_ORIENT_ROTATE_180DEG, 
     
    222226    /** 
    223227     * Specifies that the video/picture needs to be rotated 270 degrees 
    224      * clockwise to be displayed in natural orientation. 
     228     * from its natural orientation in clockwise direction from the user's 
     229     * perspective. 
     230     * Note that for devices with back cameras (which faces away 
     231     * from the user), the video will actually need to be rotated 
     232     * 90 degrees clockwise instead. 
    225233     */ 
    226234    PJMEDIA_ORIENT_ROTATE_270DEG 
Note: See TracChangeset for help on using the changeset viewer.