Opened 9 years ago

Closed 9 years ago

#1880 closed defect (fixed)

Incorrect orientation after switching video capture or when using back camera

Reported by: nanang Owned by: ming
Priority: normal Milestone: release-2.5
Component: pjmedia-videodev Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description (last modified by ming)

For devices with back cameras (which face away from the user), the direction of the rotation will differ from the user's perspective (for example, a 90 degree clockwise rotation of the back camera will be perceived by the user as a 270 degree clockwise rotation). So we need to make sure that the spec and behaviour are consistent.

Also, when fast switching video capture (normally done between front and back cameras), make sure that the correct orientation is set. Thanks to Mayur Joshi for the report on the second problem.

Change History (2)

comment:1 Changed 9 years ago by ming

  • Description modified (diff)
  • Summary changed from Distorted video after switching to back camera during a call to Incorrect orientation after switching video capture or when using back camera

comment:2 Changed 9 years ago by ming

  • Resolution set to fixed
  • Status changed from new to closed

In 5166:

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)
Note: See TracTickets for help on using tickets.