ios_IWTNStreamEventHandler class

Inheritance

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