Video Call
  • iOS
  • Android
  • Web
  • Flutter
  • React Native
  • Electron
  • Unity3D
  • Cocos Creator
  • Windows
  • macOS : C++
  • Linux
  • Overview
  • Develop your app
    • Implement a basic video call
    • Enhance basic feature
      • Use Tokens for authentication
      • Config your video based on scenes
      • Set up common video config
      • Set up common audio config
  • Best practices
    • Implement a video call for multiple users
  • Upgrade using advanced features
    • Advanced features
      • Configure the video
        • Watermark the video/Take snapshots
        • Improve your appearance in the video
        • Configure video codec
        • Output the video in H.265
      • Improve video quality
        • Test network and devices in advance
        • Visualize the sound level
        • Monitor streaming quality
      • Play media files
        • Play media files
      • Encrypt the video streams
    • Distincitve features
      • Join multiple rooms
      • Customize the video and audio
      • Set the voice hearing range
  • Upgrade using Add-on
  • Resources & Reference
    • SDK
    • Sample codes
    • API reference
      • Client APIs
      • Server APIs
    • Debugging
      • Error codes
      • Logging/Version number
    • FAQs
    • Key concepts
  • Documentation
  • Video Call
  • Resources & Reference
  • SDK
  • Upgrade guide
  • Upgrade guide 3.8.0+

Upgrade guide 3.8.0+

Last updated:2023-09-27 14:34

  • If your current SDK version is lower than 3.8.0, when you need to upgrade to any version of 3.8.0 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.0, the naming of an API interface of the media publisher IZegoMediaDataPublisher class is changed: the original member function setMediaDataPublisherEventHandler is renamed to setEventHandler.

Compile error

After successfully upgrading from a version earlier than 3.8.0, compilation errors may be reported and adaptation is required.

error: no member named 'setMediaDataPublisherEventHandler' in 'ZEGO::EXPRESS::IZegoMediaDataPublisher'
    publisher->setMediaDataPublisherEventHandler(shared_from_this());
    ~~~~~~~~~  ^
1 error generated.

Adaptation method

Before 3.8.0

publisher->setMediaDataPublisherEventHandler(shared_from_this());

After 3.8.0 and above

publisher->setEventHandler(shared_from_this());
Page Directory