差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 | 后一修订版 两侧同时换到之后的修订记录 | ||
rtc:conference:android [2020/07/30 08:40] allenlee [主播申请管理员] |
rtc:conference:android [2020/07/30 08:43] allenlee [成员流的状态回调 有无音视频数据] |
||
---|---|---|---|
行 787: | 行 787: | ||
public void enableStatistics(boolean enable) {}; | public void enableStatistics(boolean enable) {}; | ||
</code> | </code> | ||
+ | |||
+ | ==== 发送/接收音视频首帧 ==== | ||
+ | |||
+ | 当成员发布流成功,发送第一帧音视频数据时,成员收到以下通知 | ||
+ | |||
+ | <code> | ||
+ | /** | ||
+ | * \~chinese | ||
+ | * Pub 首帧回调 | ||
+ | * streamId 流ID | ||
+ | * frameType the first frame callback type of the stream | ||
+ | * | ||
+ | * \~english | ||
+ | * Pub first frame callback | ||
+ | * streamId streamId | ||
+ | * frameType the first frame callback type of the stream | ||
+ | */ | ||
+ | default void onFirstFrameSent(String stremId,StreamFrameType frameType){} | ||
+ | </code> | ||
+ | |||
+ | 当成员订阅流成功,收到第一帧音视频数据时,成员会收到以下通知 | ||
+ | |||
+ | <code> | ||
+ | /** | ||
+ | * \~chinese | ||
+ | * Sub 首帧回调 | ||
+ | * streamId 流ID | ||
+ | * frameType the first frame callback type of the stream | ||
+ | * | ||
+ | * \~english | ||
+ | * Sub first frame callback | ||
+ | * streamId streamId | ||
+ | * state the first frame callback type of the stream | ||
+ | * | ||
+ | */ | ||
+ | default void onFirstFrameRecived(String streamId,StreamFrameType frameType){} | ||
+ | </code> | ||
+ | |||
===== 用户自定义数据采集及数据处理 ===== | ===== 用户自定义数据采集及数据处理 ===== | ||
如果用户需要自己采集特定的数据或者对于数据需要先进行一些处理,可以使用SDK的外部输入数据的方法进行。 | 如果用户需要自己采集特定的数据或者对于数据需要先进行一些处理,可以使用SDK的外部输入数据的方法进行。 |