onWTNFirstRemoteAudioFrame method
@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
Implementation
FutureOr<void> onWTNFirstRemoteAudioFrame(dynamic streamId) async {
if ($instance == null || $instance is! IWTNStreamEventHandler) {
return;
}
return ($instance as IWTNStreamEventHandler)
.onWTNFirstRemoteAudioFrame
?.call(streamId.toString());
}