Video Call
  • iOS
  • Android
  • Web
  • Flutter : Dart
  • React Native
  • Electron
  • Unity3D
  • Cocos Creator
  • Windows
  • macOS
  • Linux
  • Overview
  • Develop your app
    • Quick start
    • Implement a basic video call
    • Enhance basic feature
      • Use Tokens for authentication
      • Config your video based on scenes
      • Check the room connection status
      • Set up common video config
  • Best practices
    • Implement call invitation
    • Implement a live audio room
  • Upgrade using advanced features
    • Advanced features
      • Configure the video
        • Watermark the video/Take snapshots
        • Beautify & Change the voice
        • Configure video codec
        • Configure video codec
      • Improve video quality
        • Configure bandwidth management
        • Test network and devices in advance
        • Visualize the sound level
        • Monitor streaming quality
      • Message signaling
        • Convey extra information using SEI
        • Broadcast real-time messages to a room
      • Play media files
        • Play media files
        • Play sound effects
      • Share the screen
      • Mix the video streams
      • Record video media data
      • Monitoring and channel settings
    • Distincitve features
      • Customize the video and audio
      • Play streams via URL
      • Play a transparent gift special effect
  • Resources & Reference
    • SDK
    • Sample codes
    • API reference
      • Client APIs
      • Server APIs
    • Debugging
      • Error codes
    • FAQs
    • Key concepts
  • Communication capability
  • Documentation
  • Video Call
  • Resources & Reference
  • SDK
  • Upgrade guide
  • Upgrade guide 3.8.1+

Upgrade guide 3.8.1+

Last updated:2023-09-27 14:34

  • If your current SDK version is lower than 3.8.1, when you need to upgrade to any version of 3.8.1 or above. Please make sure to read this document.
  • In addition, it is recommended that you refer to the business-related interfaces changes in the Release notes between the current version and the target version.

In version 3.8.1, deprecated changes were made to the following API interfaces.

onPublisherSendAudioFirstFrame

Abandoned the original onPublisherSendAudioFirstFrame callback interface and replaced it with the onPublisherSendAudioFirstFrame callback of the same name, and added a channel parameter to support callback-related event activities by publsih channel.

  • Before 3.8.1

    static void Function()? onPublisherSendAudioFirstFrame;
  • After 3.8.1 and above

    static void Function(ZegoPublishChannel channel)? onPublisherSendAudioFirstFrame;

Adaptation method

  • Before 3.8.1

    ZegoExpressEngine.onPublisherSendAudioFirstFrame = () {
        // ...
    };
  • After 3.8.1 and above

    ZegoExpressEngine.onPublisherSendAudioFirstFrame = (channel) {
        // ...
    };

setAudioReceiveRange

The original member function setAudioReceiveRange interface of the ZegoRangeAudio class is discarded and replaced with the setAudioReceiveRange interface with the same name, and the parameter ZegoReceiveRangeParam type is extended to support setting the audio receiving range of the range voice.

  • Before 3.8.1

    Future<void> setAudioReceiveRange(double range);
  • After 3.8.1 and above

    Future<int> setAudioReceiveRange(ZegoReceiveRangeParam param);

Adaptation method

  • Before 3.8.1

    rangeAudio.setAudioReceiveRange(1.0);
  • After 3.8.1 and above

    var param = ZegoReceiveRangeParam(0.5, 1.0);
    rangeAudio.setAudioReceiveRange(param);

setStreamVocalRange

The original member function setStreamVocalRange interface of the ZegoRangeAudio class is discarded and replaced with the setStreamVocalRange interface with the same name, and the parameter ZegoVocalRangeParam type is extended to support setting the voice range of a single stream of range voice.

  • Before 3.8.1

    Future<void> setStreamVocalRange(String streamID, double vocalRange);
  • After 3.8.1 and above

    Future<int> setStreamVocalRange(String streamID, ZegoVocalRangeParam param);

Adaptation method

  • Before 3.8.1

    rangeAudio.setStreamVocalRange(streamid, 1.0);
  • After 3.8.1 and above

    var param = ZegoVocalRangeParam(0.5, 1.0);
    rangeAudio.setStreamVocalRange(streamid, param);
Page Directory