|
Agora Java API Reference for Android
|
This class provides methods for configuring video rendering of the player. More...
Public Member Functions | |
| long | getNativeHandle () |
| void | setVideoRenderMode (Constants.VideoRenderMode mode) throws RteException |
| Constants.VideoRenderMode | getVideoRenderMode () throws RteException |
| Gets the currently set mirror mode. More... | |
| void | setVideoMirrorMode (Constants.VideoMirrorMode mode) throws RteException |
| Sets the video mirror mode. More... | |
| Constants.VideoMirrorMode | getVideoMirrorMode () throws RteException |
| void | setCropArea (Rect rect) throws RteException |
| Rect | getCropArea () throws RteException |
Protected Member Functions | |
| void | finalize () |
This class provides methods for configuring video rendering of the player.
| void io.agora.rte.CanvasConfig.setVideoRenderMode | ( | Constants.VideoRenderMode | mode | ) | throws RteException |
Set the video render mode.
| mode | The render mode to set. Refer to Constants.VideoRenderMode type, default is Constants.VideoRenderMode.HIDDEN. |
| RteException | RteException.errorCode() may return the following ErrorCode:
|
| Constants.VideoRenderMode io.agora.rte.CanvasConfig.getVideoRenderMode | ( | ) | throws RteException |
Gets the currently set mirror mode.
Call timing: You need to call this method after getConfigs(CanvasConfig config).
VideoMirrorMode for details. | RteException | If the method call fails, the SDK throws an RteException with the corresponding error information. You need to catch and handle the exception. |
| void io.agora.rte.CanvasConfig.setVideoMirrorMode | ( | Constants.VideoMirrorMode | mode | ) | throws RteException |
Sets the video mirror mode.
Call timing: You must call this method before setConfigs(CanvasConfig config).
| mode | The mirror mode. See VideoMirrorMode for details. The default value is AUTO, which lets the SDK determine the mirror mode. By default, the mirror mode for remote users is disabled. |
| RteException | If the method call fails, the SDK throws an RteException with the corresponding error information. You need to catch and handle the exception. |
| Constants.VideoMirrorMode io.agora.rte.CanvasConfig.getVideoMirrorMode | ( | ) | throws RteException |
1.8.18