int(* TGCMDHANDLER)(p2phandle_t handle, int cmd, const void *data, int len)
命令回调类型
RTMSGCALLBACK msg_cb
本回调用于接收对端的音视频之外的数据.
void * pUser
用于向回调中传入用户自己的额外数据
void TgVdpStop()
停止VDP服务, 释放资源 会调用 TciStop()/TciCleanup()
int TgVdpAccept(struct InCallInfo *)
被叫接听, 等同于 TciAcceptInCall().
int TgVdpReject(struct InCallInfo *)
被叫拒接, 等同于 TciRejectInCall().
void TgVdpSetCmdHandler(TGCMDHANDLER func)
设置p2p命令处理回调, 代替 TciSetCmdHandler().
int TgVdpHangup()
结束呼叫或通话.
int(* TGVDPCALLBACK)(int status, struct CalleeEx *pCallee)
呼叫/通话状态回调.
int TgVdpInit(const char *cfg_path, struct TciCB *cbs)
VDP 初始化.
int TgVdpStart(int isBound, const char *uuid)
开启VDP 服务.
void(* RTMSGCALLBACK)(const RTMSG_t *msg, int len, struct CalleeEx *callee)
被叫端传过来的命令数据.
int TgVdpCallEx(struct CalleeEx *callees, int size, int timeout, TGVDPCALLBACK cb)
呼叫.