| 115 | === Video capture orientation support === |
| 116 | |
| 117 | To send video in the proper orientation (i.e. head always up regardless of the device orientation), application needs to do the following: |
| 118 | |
| 119 | 1. Setup the application to get orientation change notification (by adding {{{android:configChanges="orientation|keyboardHidden|screenSize"}}} in the application manifest file and override the callback {{{onConfigurationChanged()}}}). |
| 120 | 2. Inside the callback, call PJSUA2 API {{{VidDevManager.setCaptureOrient()}}} to set the video device to the correct orientation. |
| 121 | |
| 122 | For sample usage, please refer to pjsua2 sample app. Ticket #1861 explains this feature in detail. |