Documentation
ExpressAudioSDK Voice Call
Documentation
Demo APP
SDK Center
API Center
FAQ
Code Market
Console
Sign Up
Log In
中文站 English
  • Documentation
  • Voice 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
  • Free trial
  • 提交工单
    咨询集成、功能及报价等问题
    电话咨询
    400 1006 604
    Get Consulting
    Scan Wechat QR code