setWTNRemoteVideoCanvas method

FutureOr<int> setWTNRemoteVideoCanvas(
  1. String streamId,
  2. VideoCanvas canvas
)

@author hanchenchen @detail api @valid since 3.60. Since version 3.60, this interface replaces setPublicStreamVideoCanvas 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. @brief Assign a internal render view to the WTN stream @param streamId ID of the WTN stream @param canvas Internal render view. If you want to unbind the video, set videoCanvas to null. Refer to VideoCanvas{@link #VideoCanvas} for more details. @return - 0: Success - !0: Failure @order 2

Implementation

FutureOr<int> setWTNRemoteVideoCanvas(
    String streamId, VideoCanvas canvas) async {
  return await nativeCall('setWTNRemoteVideoCanvas', [streamId, canvas]);
}