IWTNStreamEventHandler class

Inheritance
  • Object
  • NativeClass
  • NativeObserverClass
  • IWTNStreamEventHandler
Implementers

Constructors

IWTNStreamEventHandler([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(String streamId, WTNSubscribeState stateCode, WTNSubscribeStateChangeReason reason) FutureOr<void>
@detail callback @valid since 3.60. 自 3.60 起,该回调替代了 onPlayPublicStreamResult 方法中的 WTN 音频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 @author hanchenchen @brief WTN 音频流订阅状态变化回调
通过 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream} 订阅 WTN 音频流后,可以通过本回调获取订阅结果。 @param streamId WTN 音频流的 ID @param stateCode 音频流状态码,参看 WTNSubscribeState{@link #WTNSubscribeState}。 @param reason 订阅状态发生变化的原因. See WTNSubscribeStateChangeReason{@link #WTNSubscribeStateChangeReason}. @order 2
onWTNDataMessageReceived(String streamId, ByteBuffer message, DataMessageSourceType sourceType) FutureOr<void>
@detail callback @valid since 3.60. @author hanchenchen @brief 回调 WTN 流中包含的数据信息。
通过 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 订阅 WTN 流后,通过监听本回调获取 WTN 流中的数据消息,包括调用 Open API 发送的 SEI 消息和音量回调。 @param streamId WTN 流 ID @param message 收到的数据消息内容,如下:
onWTNFirstRemoteAudioFrame(String streamId) FutureOr<void>
@author hanchenchen @detail callback @valid since 3.60. 自 3.60 起,该回调替代了 onFirstPublicStreamAudioFrame。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 @brief WTN 流的首帧音频解码成功
关于订阅 WTN 音频流,详见 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}。 @param streamId WTN 流 ID @order 3
onWTNFirstRemoteVideoFrameDecoded(String streamId, VideoFrameInfo info) FutureOr<void>
@detail callback @valid since 3.60. 自 3.60 起,该回调替代了 onFirstPublicStreamVideoFrameDecoded。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 @author hanchenchen @brief WTN 流的首帧视频解码成功
关于订阅 WTN 流,详见 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}。 @param streamId WTN 流 ID @param info 视频帧信息。详见 VideoFrameInfo{@link #VideoFrameInfo}。 @order 4
onWTNRemoteAudioStats(String streamId, RemoteAudioStats stats) FutureOr<void>
@detail callback @valid since 3.60. @author hanchenchen @brief 通话中本地设备接收订阅的远端 WTN 音频流的流 ID 以及远端 WTN 音频流统计信息。 @param streamId WTN 流 ID @param stats 远端 WTN 音频流的统计信息,详见 RemoteAudioStats{@link #RemoteAudioStats}。 @order 1
onWTNRemoteVideoStats(String streamId, RemoteVideoStats stats) FutureOr<void>
@detail callback @valid since 3.60. @author hanchenchen @brief 通话中本地设备接收订阅的远端 WTN 视频流的流 ID 以及远端 WTN 视频流统计信息。 @param streamId WTN 流 ID @param stats 远端 WTN 视频流的统计信息,详见 RemoteVideoStats{@link #RemoteVideoStats}。 @order 0
onWTNSEIMessageReceived(String streamId, int channelId, ByteBuffer message) FutureOr<void>
@detail callback @valid since 3.60. 自 3.60 起,该回调替换了 onPublicStreamSEIMessageReceived 来实现下述功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 @author hanchenchen @brief 回调 WTN 流中包含的 SEI 信息。
调用 subscribeWTNAudioStream{@link #IWTNStream#subscribeWTNAudioStream}/subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream}接口拉 WTN 音频流/视频流后,通过此回调收到 WTN 流中的 SEI 消息。 @param streamId WTN 流 ID。 @param channelId SEI 的消息传输通道,取值范围 [0 - 255]。通过此参数,你可以为不同接受方设置不同的 ChannelID,这样不同接收方可以根据回调中的 ChannelID 选择应关注的 SEI 信息。 @param message 收到的 SEI 消息内容。
通过调用客户端 sendSEIMessage 插入的 SEI 信息。
当 WTN 流中的多路视频流均包含有 SEI 信息:SEI 不互相冲突时,将通过多次回调分别发送;SEI 在同一帧有冲突时,则只有一条流中的 SEI 信息被透传并融合到 WTN 流中。 @order 5
onWTNVideoSubscribeStateChanged(String streamId, WTNSubscribeState stateCode, WTNSubscribeStateChangeReason reason) FutureOr<void>
@detail callback @valid since 3.60. 自 3.60 起,该回调替代了 onPlayPublicStreamResult 方法中的 WTN 视频流订阅状态变化通知功能。如果你已升级至 3.60 及以上版本,并且仍在使用该方法,请迁移到此回调。 @author hanchenchen @brief WTN 视频流订阅状态变化回调
通过 subscribeWTNVideoStream{@link #IWTNStream#subscribeWTNVideoStream} 订阅 WTN 视频流后,可以通过本回调获取订阅结果。 @param streamId WTN 视频流的 ID @param stateCode 视频流状态码,参看 WTNSubscribeState{@link #WTNSubscribeState}。 @param reason 订阅状态发生变化的原因,参看 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

Operators

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

Static Properties

codegen_$namespace → dynamic
no setter