setWTNRemoteVideoSink method

FutureOr<int> setWTNRemoteVideoSink(
  1. String streamId,
  2. IVideoSink videoSink,
  3. RemoteVideoSinkConfig config
)

@detail api @valid since 3.60. @author hanchenchen @brief Assign a custom renderer to the WTN stream. See Custom Video Rendering @param streamId ID of the WTN stream @param videoSink Custom renderer. Set to be null when you want to release the renderer. Refer to IVideoSink{@link #IVideoSink} for more details. @param config Remote video frame callback configuration. Refer to RemoteVideoSinkConfig{@link #RemoteVideoSinkConfig} for more details. @return - 0: Success. - <0: Failure. See ReturnStatus{@link #ReturnStatus} for specific reasons. @order 3

Implementation

FutureOr<int> setWTNRemoteVideoSink(String streamId, IVideoSink videoSink,
    RemoteVideoSinkConfig config) async {
  return await nativeCall(
      'setWTNRemoteVideoSink', [streamId, videoSink, config]);
}