setRemoteVideoCanvas method
@detail api
@hiddensdk(audiosdk)
@author sunhang.io
@brief Sets the view to be used for remote video rendering and the rendering mode.
To unbind the canvas, set videoCanvas to Null.
@param streamId Stream ID, used to specify the video stream for which the view and rendering mode need to be set.
@param videoCanvas View information and rendering mode. See VideoCanvas{@link #VideoCanvas}. Starting from version 3.56, you can set the rotation angle of the remote video rendering using renderRotation.
@return
- 0: Success.
- < 0 : Fail. See ReturnStatus{@link #ReturnStatus} for more details
@note When the local user leaves the room, the setting will be invalid. The remote user leaving the room does not affect the setting.
Implementation
FutureOr<int> setRemoteVideoCanvas(
String streamId, VideoCanvas videoCanvas) async {
return await nativeCall('setRemoteVideoCanvas', [streamId, videoCanvas]);
}