14 #define ZEGO_API __declspec(dllexport)
16 #define ZEGO_API __declspec(dllimport)
19 #define ZEGO_API __attribute__((visibility("default")))
24 #define ZEGO_MAX_COMMON_LEN (512)
25 #define ZEGO_MAX_USERID_LEN (64)
26 #define ZEGO_MAX_USERNAME_LEN (256)
317 unsigned long long referenceTime,
318 unsigned int referenceTimeScale) = 0;
344 virtual void OnLoginRoom(
int errorCode,
const char *pszRoomID) = 0;
362 virtual void OnDisconnect(
int errorCode,
const char *pszRoomID) = 0;
387 virtual void OnPlayQualityUpdate(
const char* pszStreamID,
int quality,
double videoFPS,
double videoKBPS) {};
402 virtual void OnPlayQualityUpdate(
const char* pszStreamID,
int quality,
double videoFPS,
double videoKBPS,
double audioKBPS) {};
466 virtual void OnSeek(
const char* pszStreamID,
long long offset,
int whence) {};
550 virtual void OnRecvMediaSideInfo(
const char * pszStreamID,
const unsigned char *buf,
int dataLen) = 0;
606 ZEGO_API bool InitSDK(
unsigned int uiAppID,
unsigned char* pBufAppSignature,
int nSignatureSize);
ZegoVideoStreamLayerType streamLayerType
Definition: LiveRoom.h:104
virtual void OnRecordFilePath(const char *pszStreamID, const char *filePath, MuxerStreamType muxerType, unsigned int startTimeStamp, unsigned int stopTimeStamp)
Definition: LiveRoom.h:510
bool videoAudioSeperateFile
Definition: LiveRoom.h:239
Definition: LiveRoom.h:89
int nOutputFps
Definition: LiveRoom.h:227
Definition: LiveRoom.h:54
Definition: LiveRoom.h:93
int channels
Definition: LiveRoom.h:210
Definition: LiveRoom.h:282
Definition: LiveRoom.h:272
#define ZEGO_MAX_USERNAME_LEN
Definition: LiveRoom.h:26
const char * info
Definition: LiveRoom.h:114
Definition: LiveRoom.h:273
ZEGO_API void EnableSingleAndMixRecordMode(bool enable)
Definition: LiveRoom.h:277
Definition: LiveRoom.h:308
Definition: LiveRoom.h:288
bool videoAndAudioSeperate
Definition: LiveRoom.h:102
virtual void OnExternalMediaDataSource(const char *pszStreamID, IExternalMediaDataSource *source)
Definition: LiveRoom.h:526
RecordEndReason
Definition: LiveRoom.h:270
int externalVideoBitrate
Definition: LiveRoom.h:106
Definition: LiveRoom.h:220
int nFragmentSeconds
Definition: LiveRoom.h:226
unsigned long uStreamCreateTime
Definition: LiveRoom.h:48
ZEGO_API bool LoginRoom(const char *pszRoomID)
virtual void OnStreamRecordBegin(const char *pszStreamID, const char *pszPathAndName)=0
int right
Definition: LiveRoom.h:132
ZegoFillMode fillMode
Definition: LiveRoom.h:138
ZEGO_API bool LogoutRoom()
virtual void OnStreamUpdate(ZegoStreamUpdateType type, ZegoStreamInfo *pStreamInfo, unsigned int streamCount, const char *pszRoomID)=0
Definition: LiveRoom.h:274
int nOutputHeight
Definition: LiveRoom.h:230
int samples
Definition: LiveRoom.h:208
Definition: LiveRoom.h:168
int nOutputBackgroundColor
Definition: LiveRoom.h:236
ZegoImageWaterMarkConfig * pImageWaterMark
Definition: LiveRoom.h:242
const char * pOutputBackgroundImage
Definition: LiveRoom.h:237
ZEGO_API bool UpdateInputStreamConfig(ZegoStreamConfig *pInputStream, int nInputStreamCount)
unsigned char * buffer
Definition: LiveRoom.h:216
int left
Definition: LiveRoom.h:130
int nHeight
Definition: LiveRoom.h:188
char szExtraInfo[ZEGO_MAX_COMMON_LEN]
Definition: LiveRoom.h:47
int nInputStreamCount
Definition: LiveRoom.h:234
ZegoMixStreamRecordConfig()
Definition: LiveRoom.h:246
char szUserId[ZEGO_MAX_USERID_LEN]
Definition: LiveRoom.h:44
ZEGO_API bool GetRecordStatus(const char *streamID, ZegoRecordStatus &status)
ZegoImageWaterMarkFillMode fillMode
Definition: LiveRoom.h:189
int nWidth
Definition: LiveRoom.h:187
Definition: LiveRoom.h:69
unsigned int recordDuration
Definition: LiveRoom.h:96
RecordEvent
Definition: LiveRoom.h:292
ZegoImageWaterMarkFillMode
Definition: LiveRoom.h:175
virtual void OnStreamRecordEnd(const char *pszStreamID, const char *pszPathAndName, RecordEndReason reason)=0
virtual void OnDisconnect(int errorCode, const char *pszRoomID)=0
ZEGO_API void SetMuxerCacheSize(int size)
ZEGO_API bool StopRecordSingleStream(const char *pszStreamID)
Definition: LiveRoom.h:77
ZegoStreamConfig()
Definition: LiveRoom.h:142
Definition: LiveRoom.h:286
ZEGO_API void UploadLog()
int nOutputWidth
Definition: LiveRoom.h:229
virtual void OnInitSDK(int errorCode)
Definition: LiveRoom.h:336
Definition: LiveRoom.h:83
Definition: LiveRoom.h:275
Definition: LiveRoom.h:294
int bufLen
Definition: LiveRoom.h:214
virtual void OnStreamRecordData(const char *pszStreamID, const char *data, int len)
Definition: LiveRoom.h:456
MuxerStreamType nMuxerStreamType
Definition: LiveRoom.h:225
Definition: LiveRoom.h:61
Definition: LiveRoom.h:302
int nHeight
Definition: LiveRoom.h:118
#define ZEGO_MAX_COMMON_LEN
Definition: LiveRoom.h:24
Definition: LiveRoom.h:283
virtual void OnStreamRecordEvent(const char *pszStreamID, RecordEvent event)
Definition: LiveRoom.h:446
Definition: LiveRoom.h:328
char szStreamID[ZEGO_MAX_COMMON_LEN]
Definition: LiveRoom.h:126
Definition: LiveRoom.h:287
ZegoFillMode
Definition: LiveRoom.h:80
ZEGO_API bool SetLogDirAndSize(const char *pszLogDir, unsigned long long lLogFileSize=5 *1024 *1024)
ZegoFrameFillMode frameFillMode
Definition: LiveRoom.h:139
int frameFillColor
Definition: LiveRoom.h:140
ZegoTimestampConfig * pTimestampConfig
Definition: LiveRoom.h:238
double timeStamp
Definition: LiveRoom.h:212
int height
Definition: LiveRoom.h:172
bool isExternalVideoDataSource
Definition: LiveRoom.h:137
Definition: LiveRoom.h:303
Definition: LiveRoom.h:112
Definition: LiveRoom.h:164
int nOutputAudioBitrate
Definition: LiveRoom.h:231
Definition: LiveRoom.h:192
ZEGO_API bool StopRecordMixStream()
ZegoStreamUpdateType
Definition: LiveRoom.h:52
Definition: LiveRoom.h:305
ZEGO_API bool SetCallback(ICallback *pCB)
ZegoStreamConfig * pInputStream
Definition: LiveRoom.h:233
ZegoStreamInfo()
Definition: LiveRoom.h:35
char filePath[ZEGO_MAX_COMMON_LEN]
Definition: LiveRoom.h:95
virtual ~ICallback()
Definition: LiveRoom.h:537
ZEGO_API void SetUseTestEnv(bool bTestEnv)
virtual void OnLogoutRoom(int errorCode, const char *pszRoomID)
Definition: LiveRoom.h:352
#define ZEGO_MAX_USERID_LEN
Definition: LiveRoom.h:25
const char * imagePath
Definition: LiveRoom.h:184
Definition: LiveRoom.h:100
Definition: LiveRoom.h:178
virtual void OnSeek(const char *pszStreamID, long long offset, int whence)
Definition: LiveRoom.h:466
ZEGO_API unsigned int GetRecordLastMediaSideTime(const char *streamID)
ZEGO_API void SetMuxerOutType(MuxerOutType type)
Definition: LiveRoom.h:90
int yPosition
Definition: LiveRoom.h:186
virtual void OnPlayQualityUpdate(const char *pszStreamID, int quality, double videoFPS, double videoKBPS, double audioKBPS)
Definition: LiveRoom.h:402
ZEGO_API int GetMaxRecordCount()
char szPathAndName[ZEGO_MAX_COMMON_LEN]
Definition: LiveRoom.h:222
Definition: LiveRoom.h:75
virtual void OnMixStreamRecordUpdate(const char **ppszStreamID, int nStreamCount)=0
ZEGO_API bool SetFontFile(const char *pszPathAndName)
struct ZEGO::LIVEROOM::ZegoStreamConfig::@0 layout
virtual void OnPlayQualityUpdate(const char *pszStreamID, int quality, double videoFPS, double videoKBPS)
Definition: LiveRoom.h:387
int bottom
Definition: LiveRoom.h:131
ZEGO_API bool StartRecordSingleStream(const char *pszStreamID, const char *pszPathAndName, MuxerStreamType nMuxerStreamType=MuxerStreamTypeBoth, int nFragmentSeconds=2, ZegoRecordSingleStreamConfig *config=nullptr)
ZegoTimestampPosition position
Definition: LiveRoom.h:170
int xPosition
Definition: LiveRoom.h:185
virtual void OnStreamRecordRemoteMicOperation(const char *pszStreamID, int operation, int reason)
Definition: LiveRoom.h:438
virtual void OnStreamRecordVideoSizeChanged(const char *pszStreamID, int width, int height)
Definition: LiveRoom.h:429
Definition: LiveRoom.h:276
Definition: LiveRoom.h:278
int xPosition
Definition: LiveRoom.h:115
Definition: LiveRoom.h:63
ZEGO_API bool InitSDK(unsigned int uiAppID, unsigned char *pBufAppSignature, int nSignatureSize)
virtual void OnLoginRoom(int errorCode, const char *pszRoomID)=0
ZegoVideoStreamLayerType
Definition: LiveRoom.h:73
Definition: LiveRoom.h:55
Definition: LiveRoom.h:161
int nOutputBitrate
Definition: LiveRoom.h:228
char szStreamId[ZEGO_MAX_COMMON_LEN]
Definition: LiveRoom.h:46
bool isExternalVideoDataSource
Definition: LiveRoom.h:105
Definition: LiveRoom.h:182
ZEGO_API const char * GetSDKVersion()
ZEGO_API bool PauseRecordMixStream()
Definition: LiveRoom.h:62
VideoPixelFormat
Definition: LiveRoom.h:298
virtual int OnIncomingVideoData(const unsigned char *pData[4], int dataLen[4], int width, int height, int strides[4], VideoPixelFormat format, unsigned long long referenceTime, unsigned int referenceTimeScale)=0
int yPosition
Definition: LiveRoom.h:116
int configLen
Definition: LiveRoom.h:213
virtual void OnVideoDataCallback(const unsigned char **pData, int *dataLen, const char *pszStreamID, int width, int height, int strides[4], VideoPixelFormat pixel_format)
Definition: LiveRoom.h:480
int width
Definition: LiveRoom.h:171
Definition: LiveRoom.h:304
Definition: LiveRoom.h:279
bool bRecordSoundLevel
Definition: LiveRoom.h:244
int fontColor
Definition: LiveRoom.h:119
virtual void OnStreamSnapshotFilePath(int nErrorCode, const char *pszStreamID, const char *pszFilePath)
Definition: LiveRoom.h:535
AudioFrame()
Definition: LiveRoom.h:194
bool bGenerateMp3
Definition: LiveRoom.h:224
ZEGO_API bool UnInitSDK()
ZEGO_API bool StartRecordMixStream(ZegoMixStreamRecordConfig *pConfig)
ZegoWaterMarkConfig waterMark
Definition: LiveRoom.h:136
Definition: LiveRoom.h:88
int backgroundColor
Definition: LiveRoom.h:120
int bytesPerSample
Definition: LiveRoom.h:209
ZEGO_API void EnableExternalAudioData(bool bEnable, int sampleRate, int channels)
Definition: LiveRoom.h:162
const char * pBackgroundImagePath
Definition: LiveRoom.h:141
Definition: LiveRoom.h:124
MuxerOutType
Definition: LiveRoom.h:67
int frameType
Definition: LiveRoom.h:207
virtual void OnExternalVideoDataSource(const char *pszStreamID, IExternalVideoDataSource *source)
Definition: LiveRoom.h:518
int nWidth
Definition: LiveRoom.h:117
Definition: LiveRoom.h:281
Definition: LiveRoom.h:295
char szUserName[ZEGO_MAX_USERNAME_LEN]
Definition: LiveRoom.h:45
Definition: LiveRoom.h:163
ZEGO_API bool SetUser(const char *pszUserID, const char *pszUserName)
Definition: LiveRoom.h:280
ZEGO_API bool UpdateImageWaterMarkConfig(ZegoImageWaterMarkConfig *pConfig)
ZegoTimestampPosition
Definition: LiveRoom.h:159
int top
Definition: LiveRoom.h:129
ZEGO_API void EnableExternalRender(bool bEnable)
int layer
Definition: LiveRoom.h:134
Definition: LiveRoom.h:76
Definition: LiveRoom.h:70
unsigned int fileSize
Definition: LiveRoom.h:97
ZEGO_API bool SetMediaSideCallback(IMediaSideCallback *pCB)
Definition: LiveRoom.h:33
ZEGO_API bool ResumeRecordMixStream()
ZegoVideoStreamLayerType streamLayerType
Definition: LiveRoom.h:240
Definition: LiveRoom.h:285
#define ZEGO_API
Definition: LiveRoom.h:16
virtual void OnAudioDataCallback(const char *pszStreamID, const AudioFrame &frame)
Definition: LiveRoom.h:488
Definition: LiveRoom.h:301
ZEGO_API void SetCustomToken(const char *thirdPartyToken)
ZegoFrameFillMode
Definition: LiveRoom.h:86
int sampleRate
Definition: LiveRoom.h:211
ZEGO_API bool TakeStreamSnapshot(const char *pszStreamID, const char *pszPathAndName)
Definition: LiveRoom.h:300
MuxerStreamType
Definition: LiveRoom.h:59
Definition: LiveRoom.h:177
ZEGO_API void SetConfig(const char *config)
Definition: LiveRoom.h:82