JRTCSDK-Android v2401.0
视频客服 API 文档
|
Public 成员函数 | |
void | connect (String otherHost, int otherPort) |
void | close () |
boolean | send (String content) |
String | getHost () |
int | getPort () |
String | getOtherHost () |
int | getOtherPort () |
int | getState () |
p2p 消息会话
void close | ( | ) |
关闭连接
void connect | ( | String | otherHost, |
int | otherPort | ||
) |
连接
otherHost | 对端地址 |
otherPort | 对端端口 |
String getHost | ( | ) |
获得本端 IP 地址
String getOtherHost | ( | ) |
获得远端 IP 地址
int getOtherPort | ( | ) |
获得远端端口
int getPort | ( | ) |
获得本端端口
int getState | ( | ) |
获得 P2P 会话状态
boolean send | ( | String | content | ) |
发送消息
content | 消息内容 |