IWTNStreamEventHandler class
Constructors
-
IWTNStreamEventHandler({FutureOr<void> onWTNRemoteVideoStats(String streamId, RemoteVideoStats stats)?, FutureOr<void> onWTNRemoteAudioStats(String streamId, RemoteAudioStats stats)?, FutureOr<void> onWTNVideoSubscribeStateChanged(String streamId, WTNSubscribeState state, WTNSubscribeStateChangeReason reason)?, FutureOr<void> onWTNAudioSubscribeStateChanged(String streamId, WTNSubscribeState state, WTNSubscribeStateChangeReason reason)?, FutureOr<void> onWTNFirstRemoteAudioFrame(String streamId)?, FutureOr<void> onWTNFirstRemoteVideoFrameDecoded(String streamId, VideoFrameInfo info)?, FutureOr<void> onWTNSEIMessageReceived(String streamId, int channelId, Uint8List message)?, FutureOr<void> onWTNDataMessageReceived(String streamId, Uint8List message, DataMessageSourceType sourceType)?})
-
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
onWTNAudioSubscribeStateChanged
↔ FutureOr<void> Function(String streamId, WTNSubscribeState state, WTNSubscribeStateChangeReason reason)?
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onPlayPublicStreamResult 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{@link #IWTNStream#subscribeWTNAudioStream}.
@param streamId ID of the WTN audio stream
@param stateCode Audio stream state code. See WTNSubscribeState{@link #WTNSubscribeState} for specific indications.
@param reason The reason why subscription state changes. See WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}.
@order 2
getter/setter pair
-
onWTNDataMessageReceived
↔ FutureOr<void> Function(String streamId, Uint8List message, DataMessageSourceType sourceType)?
-
@detail callback
@valid since 3.60.
@author hanchenchen
@brief The data information contained in the callback of WTN stream..
After calling subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}, you can listen to this callback and retrieve SEI messages inserted by Open API calls or audio volume.
@param streamId ID of the WTN stream
@param message The received data message's content is as follows:
getter/setter pair
-
onWTNFirstRemoteAudioFrame
↔ FutureOr<void> Function(String streamId)?
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
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{@link #IWTNStream#subscribeWTNAudioStream} for details about subscribing to a WTN audio stream.
@param streamId ID of the WTN stream
@order 3
getter/setter pair
-
onWTNFirstRemoteVideoFrameDecoded
↔ FutureOr<void> Function(String streamId, VideoFrameInfo info)?
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onFirstPublicStreamVideoFrameDecoded. 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{@link #IWTNStream#subscribeWTNVideoStream} for details about subscribing to a WTN video stream.
@param streamId ID of the WTN stream
@param info Information of the video stream. Refer to VideoFrameInfo{@link #VideoFrameInfo} for more details.
@order 4
getter/setter pair
-
onWTNRemoteAudioStats
↔ FutureOr<void> Function(String streamId, RemoteAudioStats stats)?
-
@detail callback
@valid since 3.60.
@author hanchenchen
@brief Remote WTN audio stream ID and statistics.
@param streamId ID of the WTN stream
@param stats Remote WTN audio stream statistics. See RemoteAudioStats{@link #RemoteAudioStats}.
@order 1
getter/setter pair
-
onWTNRemoteVideoStats
↔ FutureOr<void> Function(String streamId, RemoteVideoStats stats)?
-
@detail callback
@valid since 3.60.
@author hanchenchen
@brief Remote WTN video stream ID and statistics.
@param streamId ID of the WTN stream
@param stats Remote WTN video stream statistics. See RemoteVideoStats{@link #RemoteVideoStats}.
@order 0
getter/setter pair
-
onWTNSEIMessageReceived
↔ FutureOr<void> Function(String streamId, int channelId, Uint8List message)?
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onPublicStreamSEIMessageReceived 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 stream.
After calling subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}, 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 received SEI(supplemental enhancement information) message.
The SEI message inserted by calling sendSEIMessage 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.
@order 5
getter/setter pair
-
onWTNVideoSubscribeStateChanged
↔ FutureOr<void> Function(String streamId, WTNSubscribeState state, WTNSubscribeStateChangeReason reason)?
-
@detail callback
@valid since 3.60. Since version 3.60, this callback replaces
onPlayPublicStreamResult 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{@link #IWTNStream#subscribeWTNVideoStream}.
@param streamId ID of the WTN video stream
@param stateCode Video stream state code. See WTNSubscribeState{@link #WTNSubscribeState} for specific indications.
@param reason The reason why subscription state changes. See WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}.
@order 2
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited