setWTNRemoteVideoCanvas method
@detail api
@valid since 3.60. Since version 3.60, this interface replaces setPublicStreamVideoCanvas:withCanvas: for the following function. If you have upgraded to version 3.60 or above and are still using this method, please migrate to this interface.
@author hanchenchen
@brief Assign a internal render view to the WTN stream
@param streamId ID of the WTN stream
@param canvas Internal render view. Set to be a blank view if you want to unbind. Refer to ByteRTCVideoCanvas{@link #ByteRTCVideoCanvas} for more details.
@return
- 0: Success
- !0: Failure
@order 2
Implementation
FutureOr<int> setWTNRemoteVideoCanvas(
NSString streamId, ByteRTCVideoCanvas canvas) async {
return await nativeCall(
'setWTNRemoteVideoCanvas:withCanvas:', [streamId, canvas]);
}