|
TRRO_FIELD
|
类 | |
| struct | TrroMultiNetworkStats |
| struct | TRRO_TextFormat |
| struct | TRRO_RoiRect |
宏定义 | |
| #define | TRRO_EXPORT __attribute__((visibility("default"))) |
| #define | DEPRECATED __attribute__((deprecated)) |
| #define | TRRO_SUCCED 0x00000001 |
| 十进制【1】 成功 更多... | |
| #define | TRRO_SUCCEED 0x00000001 |
| 十进制【1】 成功 更多... | |
| #define | TRRO_COMMON_ERROR 0x00FFFFFF |
| 十进制【16777215】 失败 更多... | |
| #define | TRRO_CONFIG_ERROR 0x01FFFFFF |
| 十进制【33554431】 配置解析失败 更多... | |
| #define | TRRO_CONFIG_PARSE_FAILED 0x01000002 |
| 十进制【16777218】 配置文件格式异常 更多... | |
| #define | TRRO_CONFIG_ILLEGAL 0x01000003 |
| 十进制【16777219】 参数格式非法,需新增参数检查 更多... | |
| #define | TRRO_CONFIG_UNEXIST 0x01000004 |
| 十进制【16777220】 配置文件不存在 更多... | |
| #define | TRRO_CONFIG_CER_FAILED 0x01000005 |
| 十进制【16777221】 云证书错误 更多... | |
| #define | TRRO_CONFIG_LIC_FAILED 0x01000006 |
| 十进制【16777222】 license证书错误 更多... | |
| #define | TRRO_CONFIG_STREAMS_SIZE_ERROR 0x01000007 |
| 十进制【16777223】 超过最大支持流数目 更多... | |
| #define | TRRO_CONIFG_PORT_RANGE_ILLEGAL 0x01000008 |
| 十进制【16777224】 端口范围配置非法 更多... | |
| #define | TRRO_CONFIG_LOG_PERMISSON_DENIED 0x01000009 |
| 十进制【16777225】 打开log文件权限不足 更多... | |
| #define | TRRO_CONFIG_DEVICE_ID_INVALID 0x0100000A |
| #define | TRRO_CONFIG_DEVICE_NAME_INVALID 0x0100000B |
| #define | TRRO_CONFIG_SDK_MODE_INVALID 0x0100000C |
| #define | TRRO_CONFIG_CLOUD_MODE_INVALID 0x0100000D |
| #define | TRRO_CONFIG_REQUIRED_FIELD_MISSING 0x0100000E |
| #define | TRRO_CONFIG_FIELD_TYPE_ERROR 0x0100000F |
| #define | TRRO_CONFIG_CERTIFICATE_MD5_INVALID 0x01000010 |
| #define | TRRO_INIT_ERROR 0x02FFFFFF |
| 十进制【50331647】 初始化通用失败 更多... | |
| #define | TRRO_INIT_INPUT_ILLEGAL 0x02000002 |
| 十进制【33554434】 初始化参数异常 更多... | |
| #define | TRRO_INIT_PARSE_FAILED 0x02000003 |
| 十进制【33554435】 配置节点解析异常 更多... | |
| #define | TRRO_INIT_CREAT_MEDIAMODE_FAILED 0x02000004 |
| 十进制【33554436】 媒体模块创建失败 更多... | |
| #define | TRRO_INIT_PRM_ERROR 0x02000005 |
| 十进制【33554437】 参数错误 更多... | |
| #define | TRRO_INIT_INVALID_INPUT 0x02000006 |
| 十进制【33554438】 非法输入 更多... | |
| #define | TRRO_INIT_REPEAT 0x02000007 |
| 十进制【33554439】 重复初始化 更多... | |
| #define | TRRO_INIT_LICENSE_CHECK_FAILED 0x02000010 |
| 十进制【33554448】 LICENSE校验失败 更多... | |
| #define | TRRO_INIT_LICENSE_FILE_ERROR 0x02000011 |
| 十进制【33554449】 LICENSE 文件错误 更多... | |
| #define | TRRO_INIT_LICENSE_CHECK_TIME_FAILED 0x02000012 |
| 十进制【33554450】 LICENSE 授权过期 更多... | |
| #define | TRRO_INIT_LICENSE_CHECK_DEVICE_FAILED 0x02000013 |
| 十进制【33554451】 LICENSE 硬件验证失败 更多... | |
| #define | TRRO_INIT_LICENSE_CHECK_STREAM_FAILED 0x02000014 |
| 十进制【33554452】 LICENSE 授权流小于设备流 更多... | |
| #define | TRRO_INIT_LICENSE_CHECK_ID_FAILED 0x02000015 |
| 十进制【33554453】 LICENSE 设备ID验证失败 更多... | |
| #define | TRRO_INIT_PUBLIC_LICENSE_CHECK_TIMEOUT 0x02000100 |
| 十进制【33554688】 LICENSE 公有云license验证超时 更多... | |
| #define | TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_BIND 0x02000101 |
| 十进制【33554689】 LICENSE 公有云设备未绑定license 更多... | |
| #define | TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_ENOUGH 0x02000102 |
| 十进制【33554690】 LICENSE 公有云license数量不足 更多... | |
| #define | TRRO_INIT_PUBLIC_LICENSE_CHECK_OVERTIME 0x02000103 |
| 十进制【33554691】 LICENSE 公有云license已过期 更多... | |
| #define | TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_DURATION 0x02000104 |
| 十进制【33554692】 LICENSE 公有云license剩余时长不足 更多... | |
| #define | TRRO_INIT_CANCEL 0x0200000F |
| 十进制【33554447】 LICENSE 客户主动退出 更多... | |
| #define | TRRO_SIGNAL_ERROR 0x03FFFFFF |
| 十进制【67108863】 信令模块失败 更多... | |
| #define | TRRO_SIGNAL_REGIST_FAILED 0x03000002 |
| 十进制【50331650】 信令注册失败 更多... | |
| #define | TRRO_SIGNAL_STATUS_ABNORMAL 0x03000003 |
| 十进制【50331651】 信令服务器连接异常 更多... | |
| #define | TRRO_SIGNAL_MESSAGE_FAILED 0x03000004 |
| 十进制【50331652】 信令消息处理失败 更多... | |
| #define | TRRO_SIGNAL_CONNECT_OUTTIME 0x03000005 |
| 十进制【50331653】 信令服务器连接超时 更多... | |
| #define | TRRO_SIGNAL_DEVICEID_OR_PASSWORD_INCORRECT 0x03000006 |
| 50331654 信令服务器连接用户名或者密码错误 更多... | |
| #define | TRRO_DEVICE_ALREADY_LOGIN 0x03000007 |
| 50331655 信令服务器连接用户名已经登陆 更多... | |
| #define | TRRO_CAPTURE_ERROR 0x04FFFFFF |
| 十进制【83886079】 采集模块错误 更多... | |
| #define | TRRO_CAPTURE_OPENDEVICE_FAILED 0x04000002 |
| 十进制【67108866】 打开设备失败 更多... | |
| #define | TRRO_CAPTURE_GETSOURCE_FAILED 0x04000003 |
| 十进制【67108867】 获取数据源失败 更多... | |
| #define | TRRO_CAPTURE_UNKNOWN_CAPTURETYPE 0x04000004 |
| 十进制【67108868】 未知采集类型 更多... | |
| #define | TRRO_CONNECT_ERROR 0x05FFFFFF |
| 十进制【100663295】 连接错误 更多... | |
| #define | TRRO_CONNECT_OUTTIME 0x05000002 |
| 十进制【83886082】 超时断连 更多... | |
| #define | TRRO_MESSAGE_ERROR 0x06FFFFFF |
| 十进制【117440511】 消息错误 更多... | |
| #define | TRRO_MESSAGE_CHANNEL 0x06000002 |
| 十进制【100663298】 消息通道异常 更多... | |
| #define | TRRO_MESSAGE_BYTE_EXCEED 0x06000003 |
| 十进制【100663299】 发送字节数超出限制 更多... | |
| #define | TRRO_MESSAGE_RATE_EXCEED 0x06000004 |
| 十进制【100663300】 发送间隔过于密集 更多... | |
| #define | TRRO_MESSAGE_MAX_EXCEED 0x06000005 |
| 十进制【100663301】 1s钟最多发送 10KB数据 inactive 1s钟最多发送 1KB数据 更多... | |
| #define | TRRO_MESSAGE_BLOCK 0x06000006 |
| #define | TRRO_MESSAGE_COMPRESS 0x06000007 |
| #define | TRRO_MESSAGE_PERMISSION 0x06000008 |
| 十进制【100663303】 消息压缩失败 更多... | |
| #define | TRRO_STOR_ERROR 0x07FFFFFF |
| 十进制【134217727】 存储异常 更多... | |
| #define | TRRO_STOR_UNENABLE 0x07000001 |
| 十进制【117440513】 存储未使能 更多... | |
| #define | TRRO_STOR_IDEXIST 0x07000002 |
| 十进制【117440514】 重复开启存储 更多... | |
| #define | TRRO_STOR_ID_ILLEGAL 0x07000003 |
| 十进制【117440515】 非法ID 更多... | |
| #define | TRRO_STOR_PARAM_ILLEGAL 0x07000004 |
| 十进制【117440516】 参数非法 更多... | |
| #define | TRRO_STOR_UNSET_FILENAME 0x07000005 |
| 十进制【117440517】 未设置文件名 更多... | |
| #define | TRRO_START_CAPTURE_IDEXIST 0x07000006 |
| 十进制【117440518】 重复开启采集 更多... | |
| #define | TRRO_EXTERNAL_RESIZE 0x08000001 |
| 十进制【134217729】 外采模式错误 更多... | |
| #define | TRRO_ERROR_CALLBACK_CAMERA 0x09010000 |
| 十进制【151060480】 相机异步回调错误 更多... | |
| #define | TRRO_ERROR_CALLBACK_MIC 0x09020000 |
| 十进制【151126016】 麦克风异步回调错误 更多... | |
| #define | TRRO_ERROR_CALLBACK_BANDWIDTH_LIMIT 0x09030000 |
| 十进制【151191552】 评估网络带宽无法满足最低码率需求 更多... | |
| #define | TRRO_ERROR_CALLBACK_RESERVE_DEGRADE 0x09040000 |
| 十进制【151257088】 网络带宽不足引发reserve带宽降级 更多... | |
| #define | TRRO_UNSUPPORT 0x0F000001 |
| 十进制【251658241】 该调用或者函数功能暂不支持 更多... | |
| #define | TRRO_INPUT_SIZE_ILLEGAL 0x0F000002 |
| 十进制【251658242】 输入大小不匹配 更多... | |
| #define | TRRO_SESSION_INACTIVE 0x0F000003 |
| 十进制【251658243】 会话未激活 更多... | |
| #define | TRRO_PARAM_INVALID 0x00F00000 |
| 十进制【15728640】 输入参数不正确 更多... | |
类型定义 | |||||||||||||||||||||||||
TRRO_OnMultiNetworkStat | |||||||||||||||||||||||||
回调所绑定的每个网卡的内网IP,外网IP, rtt、lost 接收数据和发送数据
| |||||||||||||||||||||||||
| typedef void | TRRO_onMultiNetworkStat(void *context, const TrroMultiNetworkStats stats) | ||||||||||||||||||||||||
TRRO_OnAudioState | |||||||||||||||||||||||||
音频连接状态回调
| |||||||||||||||||||||||||
| typedef void | TRRO_OnAudioState(void *context, int up_or_down, int state) | ||||||||||||||||||||||||
TRRO_OnControlState | |||||||||||||||||||||||||
数据连接状态回调
| |||||||||||||||||||||||||
| typedef void | TRRO_OnControlState(void *context, int state) | ||||||||||||||||||||||||
TRRO_onState | |||||||||||||||||||||||||
视频连接状态回调
| |||||||||||||||||||||||||
| typedef void | TRRO_OnState(void *context, int stream_id, int state) | ||||||||||||||||||||||||
TRRO_OnErrorEvent | |||||||||||||||||||||||||
错误信息回调
| |||||||||||||||||||||||||
| typedef void | TRRO_OnErrorEvent(void *context, int error_code, const char *error_msg) | ||||||||||||||||||||||||
TRRO_onControlData | |||||||||||||||||||||||||
接收远端设备消息回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onControlData(void *context, const char *controller_id, const char *msg, int len, int qos) | ||||||||||||||||||||||||
TRRO_onVideoCaptureData | |||||||||||||||||||||||||
采集视频帧回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onVideoCaptureData(void *context, const char *data, int width, int height, int type, int stream_id) | ||||||||||||||||||||||||
TRRO_OnLogData | |||||||||||||||||||||||||
日志回调
| |||||||||||||||||||||||||
| typedef void | TRRO_OnLogData(void *context, const char *msg, int level) | ||||||||||||||||||||||||
TRRO_onEncodeFrameInfo | |||||||||||||||||||||||||
编码建议信息回调,适用于外部输入编码帧场景
| |||||||||||||||||||||||||
| typedef void | TRRO_onEncodeFrameInfo(void *context, int stream_id, int type, int bitrate) | ||||||||||||||||||||||||
TRRO_onLatencyReport | |||||||||||||||||||||||||
延迟信息回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onLatencyReport(void *context, int stream_id, int vcct) | ||||||||||||||||||||||||
TRRO_onMediaState | |||||||||||||||||||||||||
媒体传输状态回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onMediaState(void *context, int stream_id, int fps, int bps, int rtt, long long lost, long long packets_send, int stun) | ||||||||||||||||||||||||
TRRO_onSignalState | |||||||||||||||||||||||||
信令连接状态回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onSignalState(void *context, SignalState state) | ||||||||||||||||||||||||
TRRO_onOperationPermissionRequest | |||||||||||||||||||||||||
远端设备操控权限申请通知
| |||||||||||||||||||||||||
| typedef void | TRRO_onOperationPermissionRequest(void *context, const char *remote_devid, int permission) | ||||||||||||||||||||||||
TRRO_onVideoCaptureFrame | |||||||||||||||||||||||||
外部调用TRRO_startVideoCapture时的数据回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onVideoCaptureFrame(void *context, unsigned long long capture_id, const char *data, int length, int width, int height, TrroColor color_format) | ||||||||||||||||||||||||
TRRO_onRemoteMixAudioFrame | |||||||||||||||||||||||||
对端多路混音后音频原始数据回调
| |||||||||||||||||||||||||
| typedef void | TRRO_onRemoteMixAudioFrame(void *context, const char *data, int length, int channel, int sample_rate) | ||||||||||||||||||||||||
| typedef void | TRRO_onRemoteEncodedFrameData(void *context, const char *gwid, int stream_id, int conn_fd, const char *data, int len, TrroCodec trro_codec, bool is_key_frame, long long videotime, bool has_user_time, uint64_t user_time) | ||||||||||||||||||||||||
TRRO_onRemoteDeviceState | |||||||||||||||||||||||||
远端用户连接状态回调接口
| |||||||||||||||||||||||||
| typedef void | TRRO_onRemoteDeviceState(void *context, const char *remote_device, int stream_id, int state) | ||||||||||||||||||||||||
TRRO_onActiveState | |||||||||||||||||||||||||
会话活跃状态回调接口
| |||||||||||||||||||||||||
| typedef void | TRRO_onActiveState(void *context, bool is_active) | ||||||||||||||||||||||||
函数 | ||||||||||||||||||||||||||||
getErrorMsg | ||||||||||||||||||||||||||||
根据错误码,返回错误信息。
| ||||||||||||||||||||||||||||
| TRRO_EXPORT const char * | getErrorMsg (int errorCode) | |||||||||||||||||||||||||||
TRRO_initGwJsonWithLicense | ||||||||||||||||||||||||||||
使用字符串和本地license初始化
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_initGwJsonWithLicense (const char *json_str, const char *license_path, int mode=0) | |||||||||||||||||||||||||||
TRRO_initGwJson | ||||||||||||||||||||||||||||
使用字符串初始化
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_initGwJson (const char *json_str, int mode=0) | |||||||||||||||||||||||||||
TRRO_initGwPathWithLicense | ||||||||||||||||||||||||||||
使用配置文件和本地license初始化
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_initGwPathWithLicense (const char *cfg_path, const char *license_path, int mode=0) | |||||||||||||||||||||||||||
TRRO_initGwPath | ||||||||||||||||||||||||||||
使用配置文件初始化
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_initGwPath (const char *cfg_path, int mode=0) | |||||||||||||||||||||||||||
TRRO_start | ||||||||||||||||||||||||||||
启动音视频传输业务, 需要等待初始化成功后调用(同步模式init返回成功 或 异步模式初始化TRRO_onSignalState通知连接Read)
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_start () | |||||||||||||||||||||||||||
TRRO_stop | ||||||||||||||||||||||||||||
销毁SDK,释放sdk资源
| ||||||||||||||||||||||||||||
| TRRO_EXPORT void | TRRO_stop () | |||||||||||||||||||||||||||
TRRO_updatePassword | ||||||||||||||||||||||||||||
更新密码, TRRO_start之后调用有效
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_updatePassword (const char *password, int length) | |||||||||||||||||||||||||||
TRRO_sendControlData | ||||||||||||||||||||||||||||
向远端设备发送数据
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_sendControlData (const char *msg, int len, int qos=0) | |||||||||||||||||||||||||||
TRRO_setChineseFontAndSize(Experimental) | ||||||||||||||||||||||||||||
设置渲染文字格式,需要在调用外部输入图像前前调用,否则不生效
| ||||||||||||||||||||||||||||
| TRRO_EXPORT void | TRRO_setChineseFontAndSize (const char *font_path, float size, const char *input) | |||||||||||||||||||||||||||
TRRO_externalVideoData | ||||||||||||||||||||||||||||
废弃的外部图像输入接口
| ||||||||||||||||||||||||||||
| TRRO_EXPORT DEPRECATED int | TRRO_externalVideoData (int stream_id, const char *data, int width, int height, int type, int dataSize=0, const char *text="", int point_x=0, int point_y=0) | |||||||||||||||||||||||||||
TRRO_externalVideoDataWithText | ||||||||||||||||||||||||||||
外部图像输入接口
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externalVideoDataWithText (int stream_id, const char *data, int width, int height, int type, int dataSize=0, TRRO_TextFormat *text_format=NULL) | |||||||||||||||||||||||||||
TRRO_externalVideoDataWithUserTime | ||||||||||||||||||||||||||||
外部图像输入接口,带用户时间戳
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externalVideoDataWithUserTime (int stream_id, const char *data, int width, int height, int type, long long user_time, int dataSize=0) | |||||||||||||||||||||||||||
TRRO_externalEncodeVideoData | ||||||||||||||||||||||||||||
外部编码流输入,编码流codec需要与配置codec一致
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externalEncodeVideoData (int stream_id, const char *data, int width, int height, int size, FrameType type) | |||||||||||||||||||||||||||
TRRO_externalEncodeVideoDataUserTime | ||||||||||||||||||||||||||||
外部编码流输入,编码流codec需要与配置codec一致
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externalEncodeVideoDataUserTime (int stream_id, const char *data, int width, int height, int size, FrameType type, long long user_time) | |||||||||||||||||||||||||||
TRRO_setOperationPermission | ||||||||||||||||||||||||||||
设置远端设备操控权限,目前同时只能有一个远端设备有master权限,若已有远端设备是master权限,调用该接口设置master权限,会自动取消之前设备的master权限然后设置新设备;
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_setOperationPermission (const char *remote_devid, int permission) | |||||||||||||||||||||||||||
TRRO_registerMultiNetworkStatsCallback | ||||||||||||||||||||||||||||
注册多网网卡状态回调
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerMultiNetworkStatsCallback (void *context, TRRO_onMultiNetworkStat *callback) | |||||||||||||||||||||||||||
TRRO_registerControlDataCallback | ||||||||||||||||||||||||||||
注册远端设备消息回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerControlDataCallback (void *context, TRRO_onControlData *callback) | |||||||||||||||||||||||||||
TRRO_registerVideoCaptureCallback | ||||||||||||||||||||||||||||
注册视频采集数据回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerVideoCaptureCallback (void *context, TRRO_onVideoCaptureData *callback) | |||||||||||||||||||||||||||
TRRO_registerEncodeFrameInfoCallback | ||||||||||||||||||||||||||||
注册编码建议信息回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerEncodeFrameInfoCallback (void *context, TRRO_onEncodeFrameInfo *callback) | |||||||||||||||||||||||||||
TRRO_registerRemoteMixAudioFrameCallback | ||||||||||||||||||||||||||||
注册远端混音音频数据回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerRemoteMixAudioFrameCallback (void *context, TRRO_onRemoteMixAudioFrame *callback) | |||||||||||||||||||||||||||
TRRO_registerRemoteEncodedFrameCallback | ||||||||||||||||||||||||||||
注册远端编码数据回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerRemoteEncodedFrameCallback (void *context, TRRO_onRemoteEncodedFrameData *callback) | |||||||||||||||||||||||||||
TRRO_registerOnState | ||||||||||||||||||||||||||||
注册视频连接状态回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerOnState (void *context, TRRO_OnState *callback) | |||||||||||||||||||||||||||
TRRO_registerOnAudioState | ||||||||||||||||||||||||||||
注册音频连接状态回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerOnAudioState (void *context, TRRO_OnAudioState *callback) | |||||||||||||||||||||||||||
TRRO_registerOnControlState | ||||||||||||||||||||||||||||
注册数据连接状态回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerOnControlState (void *context, TRRO_OnControlState *callback) | |||||||||||||||||||||||||||
TRRO_registerOnErrorEvent | ||||||||||||||||||||||||||||
注册视频连接状态回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerOnErrorEvent (void *context, TRRO_OnErrorEvent *callback) | |||||||||||||||||||||||||||
TRRO_registerLogCallback | ||||||||||||||||||||||||||||
注册日志回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerLogCallback (void *context, TRRO_OnLogData *callback) | |||||||||||||||||||||||||||
TRRO_registerLatencyCallback | ||||||||||||||||||||||||||||
注册时延回调函数
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerLatencyCallback (void *context, TRRO_onLatencyReport *callback) | |||||||||||||||||||||||||||
TRRO_registerMediaState | ||||||||||||||||||||||||||||
注册音频状态回调
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerMediaState (void *context, TRRO_onMediaState *callback) | |||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerAudioMediaState (void *context, TRRO_onMediaState *callback) | |||||||||||||||||||||||||||
TRRO_testNetworkQuality | ||||||||||||||||||||||||||||
评估网络状态 注意:此函数是阻塞函数 如果网络未连接成功超时时间为10s 再加网络探测时间
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_testNetworkQuality (int *stream_ids, int stream_size, int test_time) | |||||||||||||||||||||||||||
TRRO_registerSignalStateCallback | ||||||||||||||||||||||||||||
注册信令服务连接状态回调
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerSignalStateCallback (void *context, TRRO_onSignalState *callback) | |||||||||||||||||||||||||||
TRRO_registerOperationPermissionRequest | ||||||||||||||||||||||||||||
注册远端设备操控权限请求通知回调
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerOperationPermissionRequest (void *context, TRRO_onOperationPermissionRequest *callback) | |||||||||||||||||||||||||||
TRRO_registerRemoteDeviceState | ||||||||||||||||||||||||||||
注册远端用户连接状态回调接口
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerRemoteDeviceState (void *context, TRRO_onRemoteDeviceState *callback) | |||||||||||||||||||||||||||
TRRO_registerActiveState | ||||||||||||||||||||||||||||
注册会话激活状态回调
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_registerActiveState (void *context, TRRO_onActiveState *callback) | |||||||||||||||||||||||||||
TRRO_startRecorder(Experimental) | ||||||||||||||||||||||||||||
启动录制
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_startRecorder (int recorderID, int format, int width, int heigh, int jump, int fps, int bps, const char *filename, const char *config) | |||||||||||||||||||||||||||
TRRO_sendRecordVideoData(Experimental) | ||||||||||||||||||||||||||||
发送录制数据
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_sendRecordVideoData (int recorderID, const char *data, int width, int height, int format) | |||||||||||||||||||||||||||
TRRO_switchRecorderFile(Experimental) | ||||||||||||||||||||||||||||
切换录制文件
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_switchRecorderFile (int recorderID, const char *filename) | |||||||||||||||||||||||||||
Trro_stopRecorder(Experimental) | ||||||||||||||||||||||||||||
停止录制
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_stopRecorder (int recorderID) | |||||||||||||||||||||||||||
Trro_setForcePush(Experimental) | ||||||||||||||||||||||||||||
更改强制推流状态
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_setForcePush (int stream_id, bool force_push) | |||||||||||||||||||||||||||
TRRO_externalVideoDataNv(Experimental) | ||||||||||||||||||||||||||||
外部码流输入-编码流,用于NV jetson平台加速
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externalVideoDataNv (int stream_id, const char *data, int real_width, int real_height, int type) | |||||||||||||||||||||||||||
TRRO_externalVideoDataDmaNative(Experimental) | ||||||||||||||||||||||||||||
nvidia jetson平台特殊输入接口(Experimental)
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externalVideoDataDmaNative (int stream_id, int fd, int real_width, int real_height, int type) | |||||||||||||||||||||||||||
TRRO_externVideoMJPEGDecode(Experimental) | ||||||||||||||||||||||||||||
外部编码流输入MJPEG,使用nvidia jetson平台解码
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externVideoMJPEGDecode (int stream_id, const char *data, int data_size, int width, int height) | |||||||||||||||||||||||||||
TRRO_externAudioData(Experimental) | ||||||||||||||||||||||||||||
外部音频数据输入(pcm数据), 16位音频采样
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externAudioData (const char *data, int data_size, int channel, int sample_rate) | |||||||||||||||||||||||||||
TRRO_externAudioDataUserTime(Experimental) | ||||||||||||||||||||||||||||
外部音频数据输入(pcm数据), 16位音频采样
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_externAudioDataUserTime (const char *data, int data_size, int channel, int sample_rate, unsigned long long user_time) | |||||||||||||||||||||||||||
TRRO_setSessionActiveState(Experimental) | ||||||||||||||||||||||||||||
默认为激活状态,设置后会非激活状态,仅仅保持连接,不发送数据
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_setSessionActiveState (bool is_active) | |||||||||||||||||||||||||||
TRRO_audioMute(Experimental) | ||||||||||||||||||||||||||||
Mute 拉流端的音频 仅Server模式
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_audioMute (const char *userid, bool mute) | |||||||||||||||||||||||||||
TRRO_muteLocalAudio | ||||||||||||||||||||||||||||
Mute 本地音频流
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_muteLocalAudio (bool mute) | |||||||||||||||||||||||||||
TRRO_reinitRtc(Experimental) | ||||||||||||||||||||||||||||
重配置rtc,当前仅支持重置外采
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_reinitRtc (const char *config) | |||||||||||||||||||||||||||
getSdkVersion | ||||||||||||||||||||||||||||
获取sdk版本信息
| ||||||||||||||||||||||||||||
| TRRO_EXPORT const char * | TRRO_getSdkVersion () | |||||||||||||||||||||||||||
TRRO_getDeviceCount(Experimental) | ||||||||||||||||||||||||||||
根据MediaDeviceType 查询音频设备的个数。
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_getDeviceCount (MediaDeviceType type) | |||||||||||||||||||||||||||
TRRO_getDeviceName(Experimental) | ||||||||||||||||||||||||||||
根据MediaDeviceType 和 index查询设备名字。
| ||||||||||||||||||||||||||||
| TRRO_EXPORT const char * | TRRO_getDeviceName (MediaDeviceType type, int index) | |||||||||||||||||||||||||||
TRRO_setCurrentDevice(Experimental) | ||||||||||||||||||||||||||||
根据MediaDeviceType 和 index设备当前采集或者播放设备。
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_setCurrentDevice (MediaDeviceType type, int index) | |||||||||||||||||||||||||||
TRRO_startVideoCapture | ||||||||||||||||||||||||||||
开始摄像头采集
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_startVideoCapture (void *context, const char *url, VideoCaptureProtocol protocol, TrroColor color_format, int width, int height, int fps, TRRO_onVideoCaptureFrame callback, unsigned long long *capture_id) | |||||||||||||||||||||||||||
TRRO_stopVideoCapture | ||||||||||||||||||||||||||||
停止摄像头采集
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_stopVideoCapture (unsigned long long capture_id) | |||||||||||||||||||||||||||
TRRO_SetEncodeConfig | ||||||||||||||||||||||||||||
设置编码器相关配置
| ||||||||||||||||||||||||||||
| TRRO_EXPORT int | TRRO_setEncodeRoi (int stream_id, TRRO_RoiRect *roi_rects, int len) | |||||||||||||||||||||||||||
| #define DEPRECATED __attribute__((deprecated)) |
| #define TRRO_CAPTURE_ERROR 0x04FFFFFF |
十进制【83886079】 采集模块错误
| #define TRRO_CAPTURE_GETSOURCE_FAILED 0x04000003 |
十进制【67108867】 获取数据源失败
| #define TRRO_CAPTURE_OPENDEVICE_FAILED 0x04000002 |
十进制【67108866】 打开设备失败
| #define TRRO_CAPTURE_UNKNOWN_CAPTURETYPE 0x04000004 |
十进制【67108868】 未知采集类型
| #define TRRO_COMMON_ERROR 0x00FFFFFF |
十进制【16777215】 失败
| #define TRRO_CONFIG_CER_FAILED 0x01000005 |
十进制【16777221】 云证书错误
| #define TRRO_CONFIG_CERTIFICATE_MD5_INVALID 0x01000010 |
| #define TRRO_CONFIG_CLOUD_MODE_INVALID 0x0100000D |
| #define TRRO_CONFIG_DEVICE_ID_INVALID 0x0100000A |
| #define TRRO_CONFIG_DEVICE_NAME_INVALID 0x0100000B |
| #define TRRO_CONFIG_ERROR 0x01FFFFFF |
十进制【33554431】 配置解析失败
| #define TRRO_CONFIG_FIELD_TYPE_ERROR 0x0100000F |
| #define TRRO_CONFIG_ILLEGAL 0x01000003 |
十进制【16777219】 参数格式非法,需新增参数检查
| #define TRRO_CONFIG_LIC_FAILED 0x01000006 |
十进制【16777222】 license证书错误
| #define TRRO_CONFIG_LOG_PERMISSON_DENIED 0x01000009 |
十进制【16777225】 打开log文件权限不足
| #define TRRO_CONFIG_PARSE_FAILED 0x01000002 |
十进制【16777218】 配置文件格式异常
| #define TRRO_CONFIG_REQUIRED_FIELD_MISSING 0x0100000E |
| #define TRRO_CONFIG_SDK_MODE_INVALID 0x0100000C |
| #define TRRO_CONFIG_STREAMS_SIZE_ERROR 0x01000007 |
十进制【16777223】 超过最大支持流数目
| #define TRRO_CONFIG_UNEXIST 0x01000004 |
十进制【16777220】 配置文件不存在
| #define TRRO_CONIFG_PORT_RANGE_ILLEGAL 0x01000008 |
十进制【16777224】 端口范围配置非法
| #define TRRO_CONNECT_ERROR 0x05FFFFFF |
十进制【100663295】 连接错误
| #define TRRO_CONNECT_OUTTIME 0x05000002 |
十进制【83886082】 超时断连
| #define TRRO_DEVICE_ALREADY_LOGIN 0x03000007 |
50331655 信令服务器连接用户名已经登陆
| #define TRRO_ERROR_CALLBACK_BANDWIDTH_LIMIT 0x09030000 |
十进制【151191552】 评估网络带宽无法满足最低码率需求
| #define TRRO_ERROR_CALLBACK_CAMERA 0x09010000 |
十进制【151060480】 相机异步回调错误
| #define TRRO_ERROR_CALLBACK_MIC 0x09020000 |
十进制【151126016】 麦克风异步回调错误
| #define TRRO_ERROR_CALLBACK_RESERVE_DEGRADE 0x09040000 |
十进制【151257088】 网络带宽不足引发reserve带宽降级
| #define TRRO_EXPORT __attribute__((visibility("default"))) |
| #define TRRO_EXTERNAL_RESIZE 0x08000001 |
十进制【134217729】 外采模式错误
| #define TRRO_INIT_CANCEL 0x0200000F |
十进制【33554447】 LICENSE 客户主动退出
| #define TRRO_INIT_CREAT_MEDIAMODE_FAILED 0x02000004 |
十进制【33554436】 媒体模块创建失败
| #define TRRO_INIT_ERROR 0x02FFFFFF |
十进制【50331647】 初始化通用失败
| #define TRRO_INIT_INPUT_ILLEGAL 0x02000002 |
十进制【33554434】 初始化参数异常
| #define TRRO_INIT_INVALID_INPUT 0x02000006 |
十进制【33554438】 非法输入
| #define TRRO_INIT_LICENSE_CHECK_DEVICE_FAILED 0x02000013 |
十进制【33554451】 LICENSE 硬件验证失败
| #define TRRO_INIT_LICENSE_CHECK_FAILED 0x02000010 |
十进制【33554448】 LICENSE校验失败
| #define TRRO_INIT_LICENSE_CHECK_ID_FAILED 0x02000015 |
十进制【33554453】 LICENSE 设备ID验证失败
| #define TRRO_INIT_LICENSE_CHECK_STREAM_FAILED 0x02000014 |
十进制【33554452】 LICENSE 授权流小于设备流
| #define TRRO_INIT_LICENSE_CHECK_TIME_FAILED 0x02000012 |
十进制【33554450】 LICENSE 授权过期
| #define TRRO_INIT_LICENSE_FILE_ERROR 0x02000011 |
十进制【33554449】 LICENSE 文件错误
| #define TRRO_INIT_PARSE_FAILED 0x02000003 |
十进制【33554435】 配置节点解析异常
| #define TRRO_INIT_PRM_ERROR 0x02000005 |
十进制【33554437】 参数错误
| #define TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_BIND 0x02000101 |
十进制【33554689】 LICENSE 公有云设备未绑定license
| #define TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_DURATION 0x02000104 |
十进制【33554692】 LICENSE 公有云license剩余时长不足
| #define TRRO_INIT_PUBLIC_LICENSE_CHECK_NOT_ENOUGH 0x02000102 |
十进制【33554690】 LICENSE 公有云license数量不足
| #define TRRO_INIT_PUBLIC_LICENSE_CHECK_OVERTIME 0x02000103 |
十进制【33554691】 LICENSE 公有云license已过期
| #define TRRO_INIT_PUBLIC_LICENSE_CHECK_TIMEOUT 0x02000100 |
十进制【33554688】 LICENSE 公有云license验证超时
| #define TRRO_INIT_REPEAT 0x02000007 |
十进制【33554439】 重复初始化
| #define TRRO_INPUT_SIZE_ILLEGAL 0x0F000002 |
十进制【251658242】 输入大小不匹配
| #define TRRO_MESSAGE_BLOCK 0x06000006 |
| #define TRRO_MESSAGE_BYTE_EXCEED 0x06000003 |
十进制【100663299】 发送字节数超出限制
| #define TRRO_MESSAGE_CHANNEL 0x06000002 |
十进制【100663298】 消息通道异常
| #define TRRO_MESSAGE_COMPRESS 0x06000007 |
| #define TRRO_MESSAGE_ERROR 0x06FFFFFF |
十进制【117440511】 消息错误
| #define TRRO_MESSAGE_MAX_EXCEED 0x06000005 |
十进制【100663301】 1s钟最多发送 10KB数据 inactive 1s钟最多发送 1KB数据
| #define TRRO_MESSAGE_PERMISSION 0x06000008 |
十进制【100663303】 消息压缩失败
十进制【100663304】 没有接受端存在,接受权限问题
| #define TRRO_MESSAGE_RATE_EXCEED 0x06000004 |
十进制【100663300】 发送间隔过于密集
| #define TRRO_PARAM_INVALID 0x00F00000 |
十进制【15728640】 输入参数不正确
| #define TRRO_SESSION_INACTIVE 0x0F000003 |
十进制【251658243】 会话未激活
| #define TRRO_SIGNAL_CONNECT_OUTTIME 0x03000005 |
十进制【50331653】 信令服务器连接超时
| #define TRRO_SIGNAL_DEVICEID_OR_PASSWORD_INCORRECT 0x03000006 |
50331654 信令服务器连接用户名或者密码错误
| #define TRRO_SIGNAL_ERROR 0x03FFFFFF |
十进制【67108863】 信令模块失败
| #define TRRO_SIGNAL_MESSAGE_FAILED 0x03000004 |
十进制【50331652】 信令消息处理失败
| #define TRRO_SIGNAL_REGIST_FAILED 0x03000002 |
十进制【50331650】 信令注册失败
| #define TRRO_SIGNAL_STATUS_ABNORMAL 0x03000003 |
十进制【50331651】 信令服务器连接异常
| #define TRRO_START_CAPTURE_IDEXIST 0x07000006 |
十进制【117440518】 重复开启采集
| #define TRRO_STOR_ERROR 0x07FFFFFF |
十进制【134217727】 存储异常
| #define TRRO_STOR_ID_ILLEGAL 0x07000003 |
十进制【117440515】 非法ID
| #define TRRO_STOR_IDEXIST 0x07000002 |
十进制【117440514】 重复开启存储
| #define TRRO_STOR_PARAM_ILLEGAL 0x07000004 |
十进制【117440516】 参数非法
| #define TRRO_STOR_UNENABLE 0x07000001 |
十进制【117440513】 存储未使能
| #define TRRO_STOR_UNSET_FILENAME 0x07000005 |
十进制【117440517】 未设置文件名
| #define TRRO_SUCCED 0x00000001 |
十进制【1】 成功
| #define TRRO_SUCCEED 0x00000001 |
十进制【1】 成功
| #define TRRO_UNSUPPORT 0x0F000001 |
十进制【251658241】 该调用或者函数功能暂不支持
| typedef void TRRO_onActiveState(void *context, bool is_active) |
| typedef void TRRO_OnAudioState(void *context, int up_or_down, int state) |
| typedef void TRRO_onControlData(void *context, const char *controller_id, const char *msg, int len, int qos) |
| typedef void TRRO_OnControlState(void *context, int state) |
| typedef void TRRO_onEncodeFrameInfo(void *context, int stream_id, int type, int bitrate) |
| typedef void TRRO_OnErrorEvent(void *context, int error_code, const char *error_msg) |
| typedef void TRRO_onLatencyReport(void *context, int stream_id, int vcct) |
| typedef void TRRO_OnLogData(void *context, const char *msg, int level) |
| typedef void TRRO_onMediaState(void *context, int stream_id, int fps, int bps, int rtt, long long lost, long long packets_send, int stun) |
| typedef void TRRO_onMultiNetworkStat(void *context, const TrroMultiNetworkStats stats) |
| typedef void TRRO_onOperationPermissionRequest(void *context, const char *remote_devid, int permission) |
| typedef void TRRO_onRemoteDeviceState(void *context, const char *remote_device, int stream_id, int state) |
| typedef void TRRO_onRemoteEncodedFrameData(void *context, const char *gwid, int stream_id, int conn_fd, const char *data, int len, TrroCodec trro_codec, bool is_key_frame, long long videotime, bool has_user_time, uint64_t user_time) |
| typedef void TRRO_onRemoteMixAudioFrame(void *context, const char *data, int length, int channel, int sample_rate) |
| typedef void TRRO_onSignalState(void *context, SignalState state) |
| typedef void TRRO_OnState(void *context, int stream_id, int state) |
| typedef void TRRO_onVideoCaptureData(void *context, const char *data, int width, int height, int type, int stream_id) |
| typedef void TRRO_onVideoCaptureFrame(void *context, unsigned long long capture_id, const char *data, int length, int width, int height, TrroColor color_format) |
| enum FrameType |
| enum MediaDeviceType |
| enum SignalState |
| enum TrroCodec |
| enum TrroColor |
| enum TrroLogLevel |
| enum TrroPermission |
| enum TrroState |
| enum VideoCaptureProtocol |
| TRRO_EXPORT const char * getErrorMsg | ( | int | errorCode | ) |
| TRRO_EXPORT int TRRO_audioMute | ( | const char * | userid, |
| bool | mute | ||
| ) |
| TRRO_EXPORT int TRRO_externalEncodeVideoData | ( | int | stream_id, |
| const char * | data, | ||
| int | width, | ||
| int | height, | ||
| int | size, | ||
| FrameType | type | ||
| ) |
| TRRO_EXPORT int TRRO_externalEncodeVideoDataUserTime | ( | int | stream_id, |
| const char * | data, | ||
| int | width, | ||
| int | height, | ||
| int | size, | ||
| FrameType | type, | ||
| long long | user_time | ||
| ) |
| TRRO_EXPORT DEPRECATED int TRRO_externalVideoData | ( | int | stream_id, |
| const char * | data, | ||
| int | width, | ||
| int | height, | ||
| int | type, | ||
| int | dataSize = 0, |
||
| const char * | text = "", |
||
| int | point_x = 0, |
||
| int | point_y = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_externalVideoDataDmaNative | ( | int | stream_id, |
| int | fd, | ||
| int | real_width, | ||
| int | real_height, | ||
| int | type | ||
| ) |
| TRRO_EXPORT int TRRO_externalVideoDataNv | ( | int | stream_id, |
| const char * | data, | ||
| int | real_width, | ||
| int | real_height, | ||
| int | type | ||
| ) |
| TRRO_EXPORT int TRRO_externalVideoDataWithText | ( | int | stream_id, |
| const char * | data, | ||
| int | width, | ||
| int | height, | ||
| int | type, | ||
| int | dataSize = 0, |
||
| TRRO_TextFormat * | text_format = NULL |
||
| ) |
| TRRO_EXPORT int TRRO_externalVideoDataWithUserTime | ( | int | stream_id, |
| const char * | data, | ||
| int | width, | ||
| int | height, | ||
| int | type, | ||
| long long | user_time, | ||
| int | dataSize = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_externAudioData | ( | const char * | data, |
| int | data_size, | ||
| int | channel, | ||
| int | sample_rate | ||
| ) |
| TRRO_EXPORT int TRRO_externAudioDataUserTime | ( | const char * | data, |
| int | data_size, | ||
| int | channel, | ||
| int | sample_rate, | ||
| unsigned long long | user_time | ||
| ) |
| TRRO_EXPORT int TRRO_externVideoMJPEGDecode | ( | int | stream_id, |
| const char * | data, | ||
| int | data_size, | ||
| int | width, | ||
| int | height | ||
| ) |
| TRRO_EXPORT int TRRO_getDeviceCount | ( | MediaDeviceType | type | ) |
| TRRO_EXPORT const char* TRRO_getDeviceName | ( | MediaDeviceType | type, |
| int | index | ||
| ) |
| TRRO_EXPORT const char* TRRO_getSdkVersion | ( | ) |
| TRRO_EXPORT int TRRO_initGwJson | ( | const char * | json_str, |
| int | mode = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_initGwJsonWithLicense | ( | const char * | json_str, |
| const char * | license_path, | ||
| int | mode = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_initGwPath | ( | const char * | cfg_path, |
| int | mode = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_initGwPathWithLicense | ( | const char * | cfg_path, |
| const char * | license_path, | ||
| int | mode = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_muteLocalAudio | ( | bool | mute | ) |
| TRRO_EXPORT int TRRO_registerActiveState | ( | void * | context, |
| TRRO_onActiveState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerAudioMediaState | ( | void * | context, |
| TRRO_onMediaState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerControlDataCallback | ( | void * | context, |
| TRRO_onControlData * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerEncodeFrameInfoCallback | ( | void * | context, |
| TRRO_onEncodeFrameInfo * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerLatencyCallback | ( | void * | context, |
| TRRO_onLatencyReport * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerLogCallback | ( | void * | context, |
| TRRO_OnLogData * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerMediaState | ( | void * | context, |
| TRRO_onMediaState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerMultiNetworkStatsCallback | ( | void * | context, |
| TRRO_onMultiNetworkStat * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerOnAudioState | ( | void * | context, |
| TRRO_OnAudioState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerOnControlState | ( | void * | context, |
| TRRO_OnControlState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerOnErrorEvent | ( | void * | context, |
| TRRO_OnErrorEvent * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerOnState | ( | void * | context, |
| TRRO_OnState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerOperationPermissionRequest | ( | void * | context, |
| TRRO_onOperationPermissionRequest * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerRemoteDeviceState | ( | void * | context, |
| TRRO_onRemoteDeviceState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerRemoteEncodedFrameCallback | ( | void * | context, |
| TRRO_onRemoteEncodedFrameData * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerRemoteMixAudioFrameCallback | ( | void * | context, |
| TRRO_onRemoteMixAudioFrame * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerSignalStateCallback | ( | void * | context, |
| TRRO_onSignalState * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_registerVideoCaptureCallback | ( | void * | context, |
| TRRO_onVideoCaptureData * | callback | ||
| ) |
| TRRO_EXPORT int TRRO_reinitRtc | ( | const char * | config | ) |
| TRRO_EXPORT int TRRO_sendControlData | ( | const char * | msg, |
| int | len, | ||
| int | qos = 0 |
||
| ) |
| TRRO_EXPORT int TRRO_sendRecordVideoData | ( | int | recorderID, |
| const char * | data, | ||
| int | width, | ||
| int | height, | ||
| int | format | ||
| ) |
| TRRO_EXPORT void TRRO_setChineseFontAndSize | ( | const char * | font_path, |
| float | size, | ||
| const char * | input | ||
| ) |
| TRRO_EXPORT int TRRO_setCurrentDevice | ( | MediaDeviceType | type, |
| int | index | ||
| ) |
| TRRO_EXPORT int TRRO_setEncodeRoi | ( | int | stream_id, |
| TRRO_RoiRect * | roi_rects, | ||
| int | len | ||
| ) |
| TRRO_EXPORT int TRRO_setForcePush | ( | int | stream_id, |
| bool | force_push | ||
| ) |
| TRRO_EXPORT int TRRO_setOperationPermission | ( | const char * | remote_devid, |
| int | permission | ||
| ) |
| TRRO_EXPORT int TRRO_setSessionActiveState | ( | bool | is_active | ) |
| TRRO_EXPORT int TRRO_start | ( | ) |
| TRRO_EXPORT int TRRO_startRecorder | ( | int | recorderID, |
| int | format, | ||
| int | width, | ||
| int | heigh, | ||
| int | jump, | ||
| int | fps, | ||
| int | bps, | ||
| const char * | filename, | ||
| const char * | config | ||
| ) |
| TRRO_EXPORT int TRRO_startVideoCapture | ( | void * | context, |
| const char * | url, | ||
| VideoCaptureProtocol | protocol, | ||
| TrroColor | color_format, | ||
| int | width, | ||
| int | height, | ||
| int | fps, | ||
| TRRO_onVideoCaptureFrame | callback, | ||
| unsigned long long * | capture_id | ||
| ) |
| TRRO_EXPORT void TRRO_stop | ( | ) |
| TRRO_EXPORT int TRRO_stopRecorder | ( | int | recorderID | ) |
| TRRO_EXPORT int TRRO_stopVideoCapture | ( | unsigned long long | capture_id | ) |
| TRRO_EXPORT int TRRO_switchRecorderFile | ( | int | recorderID, |
| const char * | filename | ||
| ) |
| TRRO_EXPORT int TRRO_testNetworkQuality | ( | int * | stream_ids, |
| int | stream_size, | ||
| int | test_time | ||
| ) |
| TRRO_EXPORT int TRRO_updatePassword | ( | const char * | password, |
| int | length | ||
| ) |
1.8.13