setWTNRemoteVideoSink method
- NSString streamId,
- id<
ByteRTCVideoSinkDelegate> videoSink, - ByteRTCRemoteVideoSinkConfig config
@detail api
@valid since 3.60. Since version 3.60, this interface replaces setPublicStreamVideoSink:withSink:withPixelFormat: 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 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 ByteRTCVideoSinkDelegate{@link #ByteRTCVideoSinkDelegate} for more details.
@param config Remote video frame callback configuration. Refer to ByteRTCRemoteVideoSinkConfig{@link #ByteRTCRemoteVideoSinkConfig} for more details.
@return
- 0: Success
- !0: Failure. See ByteRTCReturnStatus{@link #ByteRTCReturnStatus} for specific reasons.
@order 3
Implementation
FutureOr<int> setWTNRemoteVideoSink(
NSString streamId,
id<ByteRTCVideoSinkDelegate> videoSink,
ByteRTCRemoteVideoSinkConfig config) async {
return await nativeCall('setWTNRemoteVideoSink:withSink:withConfig:',
[streamId, videoSink, config]);
}