Opened 9 years ago

Closed 9 years ago

#1861 closed enhancement (fixed)

Support for video capture orientation

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


Currently there is no mechanism to notify other party about new video orientation, so in this ticket, we implement a feature which allows the video sender to transmit video with the "proper" orientation at all time, i.e: head upside whatever the device orientation is. When a device orientation changes, the application can tell the library and the library will rotate the video, resize it accordingly, and insert blank/black in left+right sides. The receiver/decoder side will then receive the video in the correct orientation, nothing to do on the decoder side.

The feature is available on iOS and Android only.

Change History (5)

comment:1 Changed 9 years ago by ming

In 5118:

Re #1861: Initial implementation of video orientation support

  • Utility to resize and rotate video frame
  • Support for iOS + sample
  • pjsua API to set video device's orientation

comment:2 Changed 9 years ago by ming

  • Summary changed from Support for video orientation to Support for video capture orientation

comment:3 Changed 9 years ago by ming

In 5125:

Re #1861: Changed pjsua API for setting the orientation using a more generic API, pjsua_vid_dev_set_setting() instead

comment:4 Changed 9 years ago by nanang

In 5128:

Re #1861: Fixed compile error of 'undeclared identifier PJMEDIA_VID_DEV_MAX_DEVS' when video is disabled.

comment:5 Changed 9 years ago by ming

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

In 5138:

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

Note: See TracTickets for help on using tickets.