| 271 | === Setting video capture orientation === |
| 272 | |
| 273 | On mobile platforms, in order to send video in the proper orientation (i.e. head always up regardless of the device orientation), application needs to do the following: |
| 274 | |
| 275 | 1. Setup the device to get orientation change notification. |
| 276 | 2. Inside the callback, call PJSUA API {{{pjsua_vid_dev_set_orient()}}} to set the video device to the correct orientation. |
| 277 | |
| 278 | For sample usage, please refer to [https://trac.pjsip.org/repos/changeset/5118#file4 ipjsua sample app] for iOS. Ticket #1861 explains this feature in detail. |
| 279 | |