Upgrade Guide for Version 3.8.1 and Above
- If your current SDK is lower than version 3.8.1 and you need to upgrade to any SDK version 3.8.1 or above, please be sure to read this document.
- In addition, it is recommended that you refer to the change notes between the two versions in the Release Notes based on the current version number and upgrade target version number, and check your business-related interfaces.
In version 3.8.1, the following API interfaces were deprecated.
onPublisherSendAudioFirstFrame
Deprecated the original onPublisherSendAudioFirstFrame callback interface and replaced it with the same-named onPublisherSendAudioFirstFrame callback, adding a channel parameter to support callback of related event activities by publishing stream channel.
-
From original
static void Function()? onPublisherSendAudioFirstFrame; -
Changed to
static void Function(ZegoPublishChannel channel)? onPublisherSendAudioFirstFrame;
Adaptation Method
setAudioReceiveRange
Deprecated the original member function setAudioReceiveRange interface of the ZegoRangeAudio class and replaced it with the same-named setAudioReceiveRange interface, extending the parameter ZegoReceiveRangeParam type to support setting the audio reception range for range audio.
-
From original
Future<void> setAudioReceiveRange(double range); -
Changed to
Future<int> setAudioReceiveRange(ZegoReceiveRangeParam param);
Adaptation Method
setStreamVocalRange
Deprecated the original member function setStreamVocalRange interface of the ZegoRangeAudio class and replaced it with the same-named setStreamVocalRange interface, extending the parameter ZegoVocalRangeParam type to support setting the vocal range of a single stream for range audio.
-
From original
Future<void> setStreamVocalRange(String streamID, double vocalRange); -
Changed to
Future<int> setStreamVocalRange(String streamID, ZegoVocalRangeParam param);
Adaptation Method
