AgoraEduStreamHandler
AgoraEduStreamHandler 类包含流相关的事件回调。
onStreamUpdated
流更新回调。
void onStreamUpdate(AgoraEduContextStreamInfo stream, AgoraEduContextUserInfo operator)
参数
- stream
- 流信息,详见 AgoraEduContextStreamInfo。
- operator
- 操作者 AgoraEduContextUserInfo,可为空。
onStreamJoined
流新增回调。
void onStreamJoined(AgoraEduContextStreamInfo stream, AgoraEduContextUserInfo operator)
房间内新增一路流时,SDK 会触发此回调。
参数
- stream
- 流信息,详见 AgoraEduContextStreamInfo。
- operator
- 操作者 AgoraEduContextUserInfo,可为空。
onStreamLeft
流移除回调。
void onStreamLeft(AgoraEduContextStreamInfo stream, AgoraEduContextUserInfo operator)
一路流从房间内移除时,SDK 会触发此回调。
参数
- stream
- 流信息,详见 AgoraEduContextStreamInfo。
- operator
- 操作者 AgoraEduContextUserInfo,可为空。