IMP(低代码音视频工厂)SDK v1.5.0
IMP SDK API Reference Manual for Windows Platforms
alibaba::meta::LiveEventListener Class Referenceabstract

直播事件监听 More...

#include <live_event_listener.h>

Public Member Functions

virtual void OnLiveCreated (const LiveCommonEventModel &event)=0
 直播创建 More...
 
virtual void OnLiveStarted (const LiveCommonEventModel &event)=0
 直播开始事件 More...
 
virtual void OnLiveStopped (const LiveCommonEventModel &event)=0
 直播结束 More...
 
virtual void OnPlayerVideoFirstFrameRender ()=0
 首帧渲染回调
 
virtual void OnPlayerEvent (int32_t event)=0
 播放事件回调,事件枚举参考AVPDef.h More...
 
virtual void OnPlayerError (int32_t error_code, const std::string &error_message)=0
 播放报错回调,错误枚举参考AVPErrorCode.h More...
 

Detailed Description

直播事件监听

Member Function Documentation

◆ OnLiveCreated()

virtual void alibaba::meta::LiveEventListener::OnLiveCreated ( const LiveCommonEventModel event)
pure virtual

直播创建

Parameters
event参考LiveCommonEventModel

◆ OnLiveStarted()

virtual void alibaba::meta::LiveEventListener::OnLiveStarted ( const LiveCommonEventModel event)
pure virtual

直播开始事件

Parameters
event参考LiveCommonEventModel

◆ OnLiveStopped()

virtual void alibaba::meta::LiveEventListener::OnLiveStopped ( const LiveCommonEventModel event)
pure virtual

直播结束

Parameters
event参考LiveCommonEventModel

◆ OnPlayerError()

virtual void alibaba::meta::LiveEventListener::OnPlayerError ( int32_t  error_code,
const std::string &  error_message 
)
pure virtual

播放报错回调,错误枚举参考AVPErrorCode.h

Parameters
error_code错误码 AVPErrorCode
error_message错误信息

◆ OnPlayerEvent()

virtual void alibaba::meta::LiveEventListener::OnPlayerEvent ( int32_t  event)
pure virtual

播放事件回调,事件枚举参考AVPDef.h

Parameters
event播放事件 AVPEventType

The documentation for this class was generated from the following file: