AgoraEduStreamContext
The AgoraEduStreamContext class.
- Publishing and subscribing to streams.
- Encoding streams.
- Updating stream information and properties.
getStreamList
Gets all streams of the specified user.
Array(AgoraEduContextStreamInfo) getStreamList(String userUuid)
Parameter
- userUuid
- The user ID.
Returns
If the method call succeeds, the SDK returns an array of AgoraEduContextStreamInfo.
getAllStreamList
Gets all streams.
Array(AgoraEduContextStreamInfo) getAllStreamList
Returns
If the method call succeeds, the SDK returns an array of AgoraEduContextStreamInfo.
updatePublishedStreamMediaType
Updates the publishing privilige of the specified stream.
void updatePublishedStreamMediaType(String[] streamUuids, AgoraEduContextMediaStreamType streamType Callback<Void> success, Callback<AgoraEduContextError> fail)
Parameter
Returns
setLocalVideoConfig
Sets the encoding configurations for the local video stream.
AgoraEduContextError setLocalVideoConfig(String streamUuid, AgoraEduContextVideoStreamConfig config)
Parameter
- streamUuid
- The stream ID.
- config
- Video encoding configurations. See AgoraEduContextVideoStreamConfig.
Returns
If the method call fails, the SDK returns AgoraEduContextError.
setRemoteVideoStreamSubscribeLevel
Subscribes to high-resolution or low-resolution video streams.
AgoraEduContextError setRemoteVideoStreamSubscribeLevel(String streamUuid, AgoraEduContextVideoStreamSubscribeLevel level)
When the remote client sends dual video streams (the high-resolution or low-resolution video streams), call this method to choose whether to subscribe to the high-resolution or low-resolution stream.
Parameter
- streamUuid
- The stream ID.
- level
- Whether the resolution of the video stream is high or low. See AgoraEduContextVideoStreamSubscribeLevel.
Returns
If the method call fails, the SDK returns AgoraEduContextError.