logo
On this page

Upgrade Guide for Version 3.0.0 and Above

2023-09-25

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 refer to the change notes between the two versions in the Release Notes based on your current version number and target upgrade version number, and check the interfaces related to your business.

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

Deprecation Notes

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

  2. Starting from version 3.0.0, Express iOS SDK no longer supports bitcode. For details, please refer to the instructions about deprecating bitcode in the 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".

  3. Deprecated the configuration item "audio_device_mode" of ZegoEngineConfig > advancedConfig. Please use the setAudioDeviceMode interface instead.

Removal Notes

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

Method NameDescription
setDebugVerboseSets the debug verbose switch and language. This function was deprecated in version 2.3.0. Please use enableDebugAssistant to implement the original functionality.
loginMultiRoomLogs in 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 the multi-room mode before initializing the engine, and then use loginRoom to log in to multiple rooms. If you call the loginRoom function to log in to multiple rooms, please ensure that the same user information is passed in.
setPlayStreamVideoLayerSets the selection of playing stream video layers. This function was deprecated after version 2.3.0. Please use setPlayStreamVideoType instead.
enableAudioDataCallbackEnables callback for additionally receiving audio data. This function was deprecated after version 2.7.0. Please use startAudioDataObserver and stopAudioDataObserver instead.
setReverbParamSets the specific parameters of reverb. This function was deprecated after version 1.18.0. Please use setReverbPreset or setReverbAdvancedParam instead.
setBuiltInSpeakerOnWhether to use the built-in speaker to play sound. This function was deprecated after version 2.3.0. Please use setAudioRouteToSpeaker instead.
onRoomStreamUpdateNotification of increase or decrease of streams published by other users in the same Room. This callback function has been deprecated since 1.18.0. Please use the onRoomStreamUpdate function with the [extendedData] parameter.
onDeviceErrorDevice exception notification. This function was deprecated in version 2.15.0 and 3.0.0 and above. Please use onLocalDeviceExceptionOccurred instead.
onNetworkQualityReports the network quality of streams in the Room. This callback function was deprecated in version 2.10.0 and 3.0.0 and above. Please use the onNetworkQuality function with the ZegoStreamQualityLevel enumeration parameter.
onProcessCapturedAudioDataCustom audio processing callback for locally captured PCM audio frames. This callback function was deprecated in version 2.13.0 and 3.0.0 and above. Please use the onProcessCapturedAudioData function with the [timestamp] parameter.
onProcessRemoteAudioDataCustom audio processing callback for remotely played stream PCM audio frames. This callback function was deprecated in version 2.13.0 and 3.0.0 and above. Please use the onProcessRemoteAudioData function with the [timestamp] parameter.
onProcessPlaybackAudioDataCustom audio processing callback for SDK playing PCM audio frames. This callback function was deprecated in version 2.13.0 and 3.0.0 and above. Please use the onProcessPlaybackAudioData function with the [timestamp] parameter.

Change Example Code

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

setAudioDeviceMode

setDebugVerbose

loginMultiRoom

setPlayStreamVideoLayer

enableAudioDataCallback

setReverbParam

setBuiltInSpeakerOn

onRoomStreamUpdate

onDeviceError

onNetworkQuality

onProcessCapturedAudioData / onProcessRemoteAudioData / onProcessPlaybackAudioData

Previous

Upgrade Guide for 2.20.0 and above

Next

Common Error Codes