setAppOrientation method

Future<void> setAppOrientation(
  1. DeviceOrientation orientation,
  2. {ZegoPublishChannel? channel}
)

Sets the video orientation (for the specified channel).

Available since: 1.1.0 Description: Set the video orientation. Use cases: When users use mobile devices to conduct live broadcasts or video calls, they can set different video directions according to the scene. When to call: After createEngine. Restrictions: Currently only supports iOS and Android platforms. Note: This function is only available in ZegoExpressVideo SDK!

  • orientation Video orientation.
  • channel Publish stream channel.

Implementation

Future<void> setAppOrientation(DeviceOrientation orientation,
    {ZegoPublishChannel? channel}) async {
  return await ZegoExpressImpl.instance
      .setAppOrientation(orientation, channel: channel);
}