logo
On this page

Upgrade Guide for Version 3.0.0 and Above


Warning
  • If your current SDK version is lower than 3.0.0 and you need to upgrade to any SDK version 3.0.0 or above, please be sure to read this article.
  • In addition, it is recommended that you check the interfaces related to your business by referring to the change descriptions between the two version intervals in Release Notes based on the current version number and upgrade target version number.

This article will introduce the instructions and precautions when upgrading the Express SDK to version 3.0.0 and above.

Deprecation Notice

  1. Deprecate the three scenarios General, Communication, and Live in the ZegoScenario scenario enumeration. Please refer to the Scenario-based Audio and Video Configuration documentation for adaptation.

  2. Starting from version 3.0.0, Express iOS SDK no longer supports bitcode. For details, please refer to the description about deprecating bitcode in Xcode 14 Release Notes.

Note

Adaptation method: Open the configuration page of the Xcode project, find the "Enable Bitcode" option in the "Build Settings" page of the App Target, and set it to "No".

Deletion Notice

The following interfaces that were deprecated in previous versions have been deleted.

Method NameDescription
SetDebugVerboseSet debug verbose switch and language. This function was deprecated in version 2.3.0. Please use EnableDebugAssistant to implement the original functionality.
LoginMultiRoomLogin to multiple rooms. This method was deprecated after version 2.9.0. If you need to implement multi-room functionality, please call the SetRoomMode function to set multi-room mode before engine initialization, then use LoginRoom to login to multiple rooms. If calling LoginRoom to login to multiple rooms, please ensure that the same user information is passed in.
SetPlayStreamVideoLayerSet the selection of playing stream video layer. This function was deprecated after version 2.3.0. Please use SetPlayStreamVideoType instead.
EnableAudioDataCallbackEnable callback to receive additional audio data. This function was deprecated after version 2.7.0. Please use StartAudioDataObserver and StopAudioDataObserver instead.
SetBuiltInSpeakerOnWhether to use built-in speaker to play sound. This function was deprecated after version 2.3.0. Please use SetAudioRouteToSpeaker instead.
OnDeviceErrorDevice exception notification. This function was deprecated in version 2.15.0 and above. Please use OnLocalDeviceExceptionOccurred instead.

Change Example Code

You can refer to the following example code for interface changes.

SetDebugVerbose

LoginMultiRoom

SetPlayStreamVideoLayer

EnableAudioDataCallback

SetBuiltInSpeakerOn

OnDeviceError

Previous

Release Notes

Next

Common Error Codes

On this page

Back to top