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