ByteRTCWTNStreamDelegate class

Inheritance
  • Object
  • NativeClass
  • NativeObserverClass
  • ByteRTCWTNStreamDelegate
Implementers

Constructors

ByteRTCWTNStreamDelegate([NativeClassOptions? options])

Properties

$instance ↔ dynamic
getter/setter pairinherited
$resource → NativeResource
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
ready Future<void>
Whether the instance is initialized
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() → void
inherited
emit(String name, List args) → dynamic
inherited
nativeCall<T>(String method, [List? args, NativeMethodMeta? meta]) Future<T>
Call instance method
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onWTNAudioSubscribeStateChanged$state$reason(NSString streamId, ByteRTCWTNSubscribeState state, ByteRTCWTNSubscribeStateChangeReason reason) FutureOr<void>
@detail callback @valid since 3.60. Since version 3.60, this callback replaces rtcEngine:onPlayPublicStreamResult:errorCode: for reporting the subscription status changes of WTN audio streams. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this callback. @author hanchenchen @brief Callback for the change of WTN audio stream's subscription status
You will be informed of the result of subscribing to the WTN audio stream by this callback after calling subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe}. @param streamId ID of the WTN audio stream @param state Audio stream state code. See ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}. @param reason The reason why subscription state changes. See ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}. @order 2
onWTNDataMessageReceived$andMessage$andSourceType(NSString streamId, NSData message, ByteRTCDataMessageSourceType sourceType) FutureOr<void>
@detail callback @valid since 3.60. @author hanchenchen @brief Callback on receiving the data message carried by the WTN video stream.
After subscribing to the WTN stream via subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe} / subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe}, you can obtain data messages from the WTN stream through this callback, including SEI messages and volume callbacks sent by calling the Open API. @param streamId ID of the WTN stream @param message The data messages carried by the WTN video stream.
onWTNFirstRemoteAudioFrame(NSString streamId) FutureOr<void>
@detail callback @valid since 3.60. Since version 3.60, this callback replaces rtcEngine:onFirstPublicStreamAudioFrame:. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this callback. @author hanchenchen @brief Callback of successfully decoding of the first audio frame of the WTN stream
Refer to subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe} for details about subscribing to a WTN audio stream. @param streamId ID of the WTN stream @order 3
onWTNFirstRemoteVideoFrameDecoded$withFrameInfo(NSString streamId, ByteRTCVideoFrameInfo frameInfo) FutureOr<void>
@detail callback @valid since 3.60. Since version 3.60, this callback replaces onWTNFirstRemoteVideoFrameDecoded:withFrameInfo:. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this callback. @author hanchenchen @brief Callback of successfully decoding of the first video frame of the WTN stream
Refer to subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe} for details about subscribing to a WTN stream. @param streamId ID of the WTN stream @param frameInfo Information of the video stream. Refer to ByteRTCVideoFrameInfo{@link #ByteRTCVideoFrameInfo} for more details. @order 4
onWTNRemoteAudioStats$audioStats(NSString streamId, ByteRTCRemoteAudioStats audioStats) FutureOr<void>
@detail callback @valid since 3.60. @author hanchenchen @brief Remote WTN audio stream ID and statistics.
@param streamId ID of the WTN stream @param audioStats Remote audio stream statistic. See ByteRTCRemoteAudioStats{@link #ByteRTCRemoteAudioStats}. @order 1
onWTNRemoteVideoStats$videoStats(NSString streamId, ByteRTCRemoteVideoStats videoStats) FutureOr<void>
@detail callback @valid since 3.60. @author hanchenchen @brief Remote WTN video stream ID and statistics.
@param streamId ID of the WTN stream @param videoStats Remote WTN video stream statistics. See ByteRTCRemoteVideoStats{@link #ByteRTCRemoteVideoStats}. @order 0
onWTNSEIMessageReceived$andChannelId$andMessage(NSString streamId, int channelId, NSData message) FutureOr<void>
@detail callback @valid since 3.60. Since version 3.60, this callback replaces rtcEngine:onPublicStreamSEIMessageReceived:andMessage:andSourceType: for the following function. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this callback. @author hanchenchen @brief Callback on receiving the SEI message carried by the WTN video stream.
After subscribeWTNAudioStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNAudioStream:subscribe}/subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe}, you will receive this callback if the WTN stream has an SEI message. @param streamId The ID of the WTN stream. @param channelId SEI message channel ID. The value range is 0 - 255. With this parameter, you can set different ChannelIDs for different recipients. In this way, different recipients can choose the SEI information based on the ChannelID received in the callback. @param message The SEI(supplemental enhancement information) message carried by the WTN video stream.
The SEI you can get via this callback is inserted by calling sendPublicStreamSEIMessage in the SDK. You receive SEI from all the video streams if the SEI messages do not have conflicts. However, if the SEI messages from different video streams have conflicts, you will receive only one of them. @note You can get the custom information inserted by calling the Open API via the callback onWTNDataMessageReceived:andMessage:andSourceType:{@link #ByteRTCWTNStreamDelegate#onWTNDataMessageReceived:andMessage:andSourceType}. @order 5
onWTNVideoSubscribeStateChanged$state$reason(NSString streamId, ByteRTCWTNSubscribeState state, ByteRTCWTNSubscribeStateChangeReason reason) FutureOr<void>
@detail callback @valid since 3.60. Since version 3.60, this callback replaces rtcEngine:onPlayPublicStreamResult:errorCode: for reporting the subscription status changes of WTN video streams. If you have upgraded to version 3.60 or later and are still using this method, please migrate to this callback. @author hanchenchen @brief Callback for the change of WTN video stream's subscription status
You will be informed of the result of subscribing to the WTN video stream by this callback after calling subscribeWTNVideoStream:subscribe:{@link #ByteRTCWTNStream#subscribeWTNVideoStream:subscribe}. @param streamId ID of the WTN video stream @param state video stream state code. See ByteRTCWTNSubscribeState{@link #ByteRTCWTNSubscribeState} for specific indications. @param reason The reason why subscription state changes. See ByteRTCWTNSubscribeStateChangeReason{@link #ByteRTCWTNSubscribeStateChangeReason}. @order 2
registerEvent(String name, dynamic method) → void
inherited
sendInstanceGet<T>(String property) Future<T>
Get instance property
inherited
sendInstancePropertiesGet(dynamic nativeClass) Future<Map<String, dynamic>>
Get instance properties
inherited
sendInstanceSet(String property, dynamic value) Future<void>
Set instance property
inherited
toString() String
A string representation of this object.
inherited
updateInstance(dynamic instance) → void
inherited
updateResource(NativeResource resource) → void
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited