In an Agora Small Classroom scenario, a teacher gives an online lesson to multiple students, and both the teacher and students can interact with each other in real time. The common small classroom scenario has one teacher for two, four, or six students. The number of students in a small classroom should not exceed 16.

This article describes how to use the Agora SDKs to implement a small classroom scenario.

Feature list

You can use the Agora SDKs to implement the following features for your project.

Feature Description
Real-time communication The students attend the teacher's online class. During the class, all of them can see and talk to each other in real time, creating a positive interaction.
Real-time messaging Both the teacher and the students can chat with each other through text messages.
Whiteboard The teacher can share a Powerpoint slide, a Word or PDF file, or even an audio or video file on it.
The teacher and the students can also write things collaboratively on the whiteboard.
Recording The teacher can record the class and share the recording through a link for future review or evaluation.
Class management The teacher starts or ends the class, and manages the students' privilege for sending audio, video, or real-time messages.
Device and network test Before the class, the teacher can test whether the microphone and camera are working properly.
During the class, both the teacher and the students can monitor the network quality in real time.
Screen share The teacher can share the screen with the students.

Try the demo

Agora provides the small classroom demos on the following platforms.

Android iOS PC Web Windows macOS
Try it out Try it out Coming up soon Coming up soon

In which:

  • The client for a student can be Android, iOS, or Web for now.
  • The client for the teacher is Web for now.

Follow these steps to try the demo:

  1. Fill in the classroom number and username.
  2. Choose Small Class.
  3. Set your role as either Teacher or Student.
  4. Click Join to enter the classroom.

Technical solutions

Agora recommends using the following SDKs or services to implement a Small Classroom scenario.

SDK or Service Function
Agora RTC SDK Joins an RTC channel for real-time audio and video communication.
Agora RTM SDK Logs into the RTM system and joins an RTM channel for managing the channel, and sending and receiving text messages.
Agora Cloud Recording Records the class in real time and replays it immediately after the recording completes.
Agora Edu Cloud Service Provides backend service for teachers and students and implements features including classroom information management and permission control.
The Whiteboard SDK (third-party) Uses the whiteboard for writing or file sharing.


This technical solution has the following advantages:

Low latency

Agora SD-RTNTM is Agora's proprietary network for audio and video transmission, covering more than 200 countries and regions. The intelligent routing algorithms it uses ensure that the average end-to-end latency worldwide is less than 400 ms.

High service stability and accessibility

Agora's services are in accordance with SLA (Service-Level Agreement), ensuring an over 99% login success rate and 99.99% service accessibility throughout the year.

Resilience to packet loss

Agora's anti-packet-loss algorithm ensures a smooth audio and video experience when the packet loss rate reaches 60% or a smooth audio experience when the rate hits 70%, minimizing the freeze rate and dropped calls.

Designed to handle quality issues caused by limited bandwidth, Agora's self-adapting network algorithm enables you to set the transmission priority, for example, to the audio, or to the teacher's media stream.

High audio quality

The following technologies ensure that the speaker's voice always stands out from a noisy environment:

  • A maximum audio sampling rate of 48 kHz for full band frequency.
  • The 3A algorithm featuring automatic echo cancellation (AEC), automatic noise suppression (ANS), and automatic gain control (AGC).
  • The AI noise reduction algorithm.

High-definition video

Agora optimizes the video experience from the following perspectives:

  • Supports a maximum resolution of 4K to accommodate the growing demand for high-definition video.
  • Works with most main-stream devices, platforms, and scenarios by supporting H.265 codec, super resolution, and perceptual video.
  • Uses a dynamic bitrate algorithm to adapt the video bitrate to the real-time network conditions for resolutions from 48p to 1080p.
  • For a set resolution and frame rate, consumes less bandwidth and renders higher quality video.

Extra functions

You can also add the following components or services to your project:

  • Whiteboard: You can add a whiteboard to an online classroom, which can be used to write things down, share a Powerpoint slide, and share the H5 animation courseware.
  • Screen share: Agora supports the teacher sharing the screen, courseware materials, and notes with the students.
  • Recording: You can even embed recording in your class with our on-premise recording or cloud recording service.

Easy-to-use backend service

Agora provides Agora Edu Cloud Service for developers who are not familiar with backend development, enabling them to implement features including classroom information management and permission control by calling RESTful APIs.


  • Agora provides a variety of methods for measuring the network quality and testing the device before the class. We also have callbacks that report on communication quality during the class. Use these methods to ensure smooth classroom experience and for troubleshooting.
  • You can also use Agora Analytics to monitor the quality, user behavior, device state, and Quality of Experience (QoE)/Quality of Service (QoS) statistics.


Our SDKs are compatible with more than 6000 devices, covering over 18 platforms and development architectures, including Windows, macOS, Web, iOS, Android, and Electron. This ensures that the teacher and students share the same experience.