20 lines
1.1 KiB
C++
20 lines
1.1 KiB
C++
#ifndef I_LIVE_MANAGER_H
|
|
#define I_LIVE_MANAGER_H
|
|
#include "VReturnCode.h"
|
|
#include <memory>
|
|
class ILiveManager
|
|
{
|
|
public:
|
|
ILiveManager() = default;
|
|
virtual ~ILiveManager() = default;
|
|
static std::shared_ptr<ILiveManager> &GetInstance(std::shared_ptr<ILiveManager> *impl = nullptr);
|
|
virtual RETURN_CODE Init(void) { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual RETURN_CODE UnInit(void) { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual bool LiveEnable(void) { return false; }
|
|
virtual RETURN_CODE StartLiveService(void) { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual RETURN_CODE StartLiveMedia(void) { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual RETURN_CODE StopLiveMedia(void) { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
virtual RETURN_CODE KeepAlive(void) { return VReturnCode::NewCode(VReturnCodeDefine::NOT_OK_VIRTUAL_FUNCTION); }
|
|
};
|
|
bool CreateLiveManager(void);
|
|
#endif // !I_LIVE_MANAGER_H
|