On-premise Recording SDK v3.0.6 API Reference for Linux (C++)
|
Classes |
|
class | IEngine |
class | IEngineConfig |
struct | UserInfo |
struct | AudioVolumeInfo |
struct | RemoteVideoStats |
struct | RemoteAudioStats |
struct | RecordingStats |
class | AudioPcmFrame |
class | AudioAacFrame |
struct | AudioFrame |
class | VideoYuvFrame |
struct | VideoH264Frame |
struct | VideoH265Frame |
struct | VideoJpgFrame |
struct | VideoJpgFile |
struct | VideoFrame |
struct | LiteraWatermarkConfig |
struct | TimestampWatermarkConfig |
struct | ImageWatermarkConfig |
struct | WatermarkConfig |
struct | VideoMixingLayout |
struct | UserJoinInfos |
Typedefs |
|
typedef unsigned char | uchar_t |
typedef unsigned int | uint_t |
typedef unsigned int | uid_t |
typedef uint64_t | u64_t |
typedef struct agora::linuxsdk::VideoMixingLayout | VideoMixingLayout |
typedef struct agora::linuxsdk::UserJoinInfos | UserJoinInfos |
typedef unsigned char agora::linuxsdk::uchar_t |
typedef unsigned int agora::linuxsdk::uint_t |
typedef unsigned int agora::linuxsdk::uid_t |
typedef uint64_t agora::linuxsdk::u64_t |
The layout setting of the videos in composite recording mode.
typedef struct agora::linuxsdk::UserJoinInfos agora::linuxsdk::UserJoinInfos |
User information.
Error codes.
State codes.
Enumerator | |
---|---|
STAT_OK | 0: Everything is normal. |
STAT_ERR_FROM_ENGINE |
1: Errors from the Agora Native SDK. See more Error Codes. |
STAT_ERR_ARS_JOIN_CHANNEL | 2: Failure to join the channel. |
STAT_ERR_CREATE_PROCESS | 3: Failure to create a process. |
STAT_ERR_MIXED_INVALID_VIDEO_PARAM |
4: Invalid parameters of the video profile of the mixed video. See
Video Profile Table
to set the |
STAT_ERR_NULL_POINTER | 5: Null pointer. |
STAT_ERR_PROXY_SERVER_INVALID_PARAM | 6: Invalid parameters of the proxy server. |
STAT_POLL_ERR | 0x8: Error in polling. |
STAT_POLL_HANG_UP | 0x10: Polling hangs up. |
STAT_POLL_NVAL | 0x20: Invalid polling request. |
The reasons why the recording server leaves the channel. You can perform a bitwise AND
operation on the code and each enum value, and those with non-zero results are the
reason for the exit. For example, if you perform a bit-by-bit AND operation on code 6
(binary 110) and each enum value, only LEAVE_CODE_SIG
(binary 10) and
LEAVE_CODE_NO_USERS
(binary 100) get a non-zero result. The reasons for
exiting, in this case, include a timeout and a signal triggering the exit.
Enumerator | |
---|---|
LEAVE_CODE_INIT | 0: The initialization fails. |
LEAVE_CODE_SIG |
2 (binary 10): The AgoraCoreService process receives the SIGINT signal. |
LEAVE_CODE_NO_USERS |
4 (binary 100): The recording server automatically leaves the channel and stops recording because the channel has no user. |
LEAVE_CODE_TIMER_CATCH | 8 (binary 1000): Ignore it. |
LEAVE_CODE_CLIENT_LEAVE |
16 (binary 10000): The recording server calls the leaveChannel method to leave the channel. |
Warning codes.
Channel types.
The reasons why the user leaves the channel or goes offline.
Enumerator | |
---|---|
USER_OFFLINE_QUIT | 0: The user has quit the call. |
USER_OFFLINE_DROPPED |
1: The SDK timed out and the user dropped offline because it has not received any data packet for a period of time. If a user quits the call and the message is not passed to the SDK (due to an unreliable channel), the SDK assumes the user has dropped offline. |
USER_OFFLINE_BECOME_AUDIENCE |
2: The client role has changed from the host to the audience. The option is only valid when you set the channel profile as live broadcast when calling joinChannel. |
Video decoding format.
Enumerator | |
---|---|
VIDEO_FORMAT_DEFAULT_TYPE |
0: Default video format. Depending on your codec, the recording service generates either MP4 or WebM files. |
VIDEO_FORMAT_H264_FRAME_TYPE |
DEPRECATED 1: Video frame in H.264 format. |
VIDEO_FORMAT_ENCODED_FRAME_TYPE |
1: Video frame in H.264 or H.265 format. You receive video frames from the videoFrameReceived callback. |
VIDEO_FORMAT_YUV_FRAME_TYPE |
2: Video frame in YUV format. You receive video frames from the videoFrameReceived callback. |
VIDEO_FORMAT_JPG_FRAME_TYPE |
3: Video frame in JPG format. You receive video frames from the videoFrameReceived callback. |
VIDEO_FORMAT_JPG_FILE_TYPE | 4: JPG file format. |
VIDEO_FORMAT_JPG_VIDEO_FILE_TYPE |
5: JPG file format and MP4 or WebM video.
|
Audio decoding format.
Enumerator | |
---|---|
AUDIO_FORMAT_DEFAULT_TYPE | 0: Default audio file format (ACC). |
AUDIO_FORMAT_AAC_FRAME_TYPE |
1: Audio frame in AAC format. You receive audio frames from the audioFrameReceived callback. |
AUDIO_FORMAT_PCM_FRAME_TYPE |
2: Audio frame in PCM format. You receive audio frames from the audioFrameReceived callback. |
AUDIO_FORMAT_MIXED_PCM_FRAME_TYPE |
3: Audio-mixing frame in PCM format. You receive audio frames from the audioFrameReceived callback. |
Whether to record automatically or manually.
Enumerator | |
---|---|
AUTOMATICALLY_MODE | 0: (Default) Automatically. |
MANUALLY_MODE |
1: Manually. To start and stop recording, call startService and stopService respectively. |
Audio profile. Sets the sampling rate, bitrate, encode mode, and the number of channels.
Mix audio and video in real time. See Supported Players.
Connection states.
Enumerator | |
---|---|
CONNECTION_STATE_DISCONNECTED |
1: The SDK is disconnected from Agora's edge server.
|
CONNECTION_STATE_CONNECTING |
2: The SDK is connecting to Agora's edge server.
|
CONNECTION_STATE_CONNECTED |
3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel. If the connection to the channel is lost because, for example, if the network is down or switched, the SDK automatically tries to reconnect and triggers:
|
CONNECTION_STATE_RECONNECTING |
4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues.
|
CONNECTION_STATE_FAILED |
5: The SDK fails to connect to Agora's edge server or join the channel. If the SDK is banned from joining the channel by Agora's edge server (through the RESTful API), the SDK triggers the onConnectionStateChanged callback and switches to the CONNECTION_STATE_FAILED state. You must call the leaveChannel method to leave this state, and call the joinChannel method again to rejoin the channel. |
Reasons for a connection state change.