AgoraEduStreamHandler

The AgoraEduStreamHandler class contains stream-related event callbacks.

onStreamJoined

Occurs when a stream is added to the room.

void onStreamJoined(AgoraEduContextStreamInfo stream,
                    AgoraEduContextUserInfo operator)

When a stream is added to the room, the SDK triggers this callback.

Parameter

stream
The stream information. See AgoraEduContextStreamInfo.
operator
The operator AgoraEduContextUserInfo, which can be empty.

onStreamLeft

Occurs when a stream is removed from the room.

void onStreamLeft(AgoraEduContextStreamInfo stream,
                  AgoraEduContextUserInfo operator)

When a stream is removed from the room, the SDK triggers this callback.

Parameter

stream
The stream information. See AgoraEduContextStreamInfo.
operator
The operator AgoraEduContextUserInfo, which can be empty.