IWTNStreamEventHandler class
- Inheritance
-
- Object
- NativeClass
- NativeObserverClass
- IWTNStreamEventHandler
- Implementers
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(String streamId, WTNSubscribeState stateCode, WTNSubscribeStateChangeReason reason)
→ FutureOr<void>
-
@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
-
onWTNDataMessageReceived(String streamId, ByteBuffer message, DataMessageSourceType sourceType)
→ FutureOr<void>
-
@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:
-
onWTNFirstRemoteAudioFrame(String streamId)
→ FutureOr<void>
-
@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
-
onWTNFirstRemoteVideoFrameDecoded(String streamId, VideoFrameInfo info)
→ FutureOr<void>
-
@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
-
onWTNRemoteAudioStats(String streamId, RemoteAudioStats stats)
→ 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 stats Remote WTN audio stream statistics. See RemoteAudioStats{@link #RemoteAudioStats}.
@order 1
-
onWTNRemoteVideoStats(String streamId, RemoteVideoStats stats)
→ 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 stats Remote WTN video stream statistics. See RemoteVideoStats{@link #RemoteVideoStats}.
@order 0
-
onWTNSEIMessageReceived(String streamId, int channelId, ByteBuffer message)
→ FutureOr<void>
-
@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
-
onWTNVideoSubscribeStateChanged(String streamId, WTNSubscribeState stateCode, WTNSubscribeStateChangeReason reason)
→ FutureOr<void>
-
@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
-
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