The captured video in the portrait mode (video cropping is not needed): If the captured video is in landscape mode, the video encoder crops it to fit the output. In the Fixed_PORTRAIT mode, the video capturer sends out the video in the portrait orientation relative to the status bar. The captured video in the portrait mode (video cropping is needed): The captured video in the landscape mode (video cropping is not needed): The following figures show the video orientations at the video capturer and the player when a rear camera is used as the video capturer. This mode applies to situations where the receiving end cannot process the rotational information. If the captured video is in portrait mode, the video encoder crops it to fit the output. In the Fixed_LANDSCAPE mode, the video capturer sends the video in the landscape orientation relative to the status bar. ![]() Therefore, the relative position of the video and the phone tilt remains the same for the video capturer and the player. The status bar of the app remains horizontal, regardless of the orientation of the screen (for example in Facetime). UI unlock with the app enabling the screen auto-rotation Therefore, the relative position of the video and the screen remains the same for the video capturer and the player. The relative position of the status bar remains the same as the screen and not according to the phone tilt (for example in WeChat). UI lock (or UI unlock with the app disabling the screen auto-rotation) On macOS, the status bar of the app remains horizontal, regardless of the orientation of the screen. The orientationMode parameter provides three modes, ADAPTIVE, FIXED_LANDSCAPE, and FIXED_PORTRAIT for different user needs. ![]() macOS: Start a Video Call or Start Interactive Video Streaming.iOS: Start a Video Call or Start Interactive Video Streaming. ![]() For details, see the following documents: Implementationīefore setting the video orientation mode, ensure that you have implemented basic real-time communication functions in your project. You can use this parameter to set the video orientation mode according to your scenario to get the video you want. To avoid issues such as video scaling and scropping caused by video rotation, the Agora SDK provides a orientationMode parameter in the setVideoEncoderConfiguration method.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |