IStreamHandler
The IStreamHandler class contains stream-related event callbacks.
onStreamUpdated
Occurs when a stream is updated.
fun onStreamUpdated(streamInfo: AgoraEduContextStreamInfo, operator: AgoraEduContextUserInfo? = null)
Parameter
- streamInfo
- The stream information. See AgoraEduContextStreamInfo.
- operator
- The operator AgoraEduContextUserInfo, which can be empty.
onStreamJoined
Occurs when a stream is added to the room.
fun onStreamJoined(streamInfo: AgoraEduContextStreamInfo, operator: AgoraEduContextUserInfo? = null)
When a stream is added to the room, the SDK triggers this callback.
Parameter
- streamInfo
- The stream information. See AgoraEduContextStreamInfo.
- operator
- The operator AgoraEduContextUserInfo, which can be empty.
onStreamLeft
Occurs when a stream is removed from the room.
fun onStreamLeft(streamInfo: AgoraEduContextStreamInfo, operator: AgoraEduContextUserInfo? = null)
When a stream is removed from the room, the SDK triggers this callback.
Parameter
- streamInfo
- The stream information. See AgoraEduContextStreamInfo.
- operator
- The operator AgoraEduContextUserInfo, which can be empty.