Ticket #1880 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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) (diff)

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

comment:1 Changed 2 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 2 years ago by ming

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

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.