提交工单
咨询集成、功能及报价等问题
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.
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.
publisher->setMediaDataPublisherEventHandler(shared_from_this());
publisher->setEventHandler(shared_from_this());