This section describes how to implement an Android client for the student.
This flowchart shows the major logic of the student joining and leaving the classroom:
Refer to the following table to download the SDKs, and integrate the SDKs into your project.
|Product||SDK download||Integration guide|
|RTC (Real-time Communication) SDK||Agora SDK for Android||Start a Video Call|
|RTM (Real-time Messaging) SDK||Real-time Messaging SDK||Peer-to-peer or Channel Messaging|
|Agora Edu Cloud Service||/||Agora Edu Cloud Service quickstart|
|Whiteboard||White SDK||Whiteboard quickstart|
Refer to the following diagram to implement the basic real-time communication and messaging functions in your project with the Agora RTC SDK, Agora RTM SDK, and Agora Edu Cloud Service.
|entry||Enter a room.|
|get room info||Get the room info.|
|change room info||Change the room info.|
|change user info||Change the user info.|
|createInstance||Creates an RtmClient object.|
|login||Logs into the Agora RTM system.|
|createChannel||Creates an Agora RTM channel. You can create multiple channels with an RtmClient object.|
|join||Joins an Agora RTM channel.|
|ceateMessage||Creates an RtmMessage object.|
|sendMessage||Sends a channel message, which can be received by all the users in the channel.|
|leave||Leaves the RTM channel.|
|logout||Logs out of the RTM system.|
|create||Creates an RtcEngine object.|
|enableVIdeo||Enables the video module.|
|setVideoEncoderConfiguration||Sets the video encoder configuration.|
|setupLocalVideo||Sets the local video view.|
|joinChannel||Joins an Agora RTC channel. You can call startPreview to start the local video preview before joining a channel.|
|setupRemoteVideo||Sets the remote video view.|
|leaveChannel||Leaves the RTC channel.|
For more features and functions available for an online class, you can refer to the following:
onNetworkQualitycallback of the Agora RTC SDK to monitor the last-mile uplink and downlink network quality of every user in the channel. For more methods for reporting the real-time network quality, see the following guides:
muteLocalAudioStream, to stop or resume sending the local audio stream.
muteLocalVideoStream, to stop or resume sending the local video stream.
enableAudioVolumeIndication, and setting the
true. Once enabled, the
onAudioVolumeIndicationcallback reports whether the local user is speaking in the
Agora provides an open-source demo for One-to-one Clasroom on GitHub to download as a source code reference.