Introduction
Relay Base Video SDK Introduction
Relay Base is a video communication SDK designed for Android and iOS engineers, focusing on solving audio and video transmission needs in high-concurrency scenarios. Unlike the P2P mode, Relay Base adopts a server relay architecture, suitable for real-time communication functions with widely distributed users and high stability requirements, providing a flexible, efficient, and stable solution.
Key Features
- Automatic creation of video rooms as needed: Relay Base uses a server relay architecture to easily handle the needs of a large number of users online simultaneously, suitable for large-scale multi-person meetings or live broadcast scenarios.
- RWD web interface: Under changing network conditions, the server relay mode can effectively reduce packet loss and delay, ensuring stable audio and video quality.
- Open via browser or web-view: Supports opening video directly through the browser or embedded web-view in the application, reducing the need to download additional applications and allowing users to quickly join meetings.
- Separate handling of communication and recording: Using advanced encryption technology, real-time communication and video recording functions are separated, reducing system load and ensuring the integrity and stability of the recording.
- Text and video communication: Supports real-time text and video communication functions, meeting users' communication needs in different scenarios, enhancing interactivity and convenience.
- Video process with application tools: Integrates tools such as drawing pens and screen sharing during video, enhancing collaboration and improving meeting efficiency.
Basic Concepts
Relay Base uses a server relay mode (Server-Relay), where all audio and video data is processed by the relay server and then distributed to the participants in the meeting, without the need for each device to connect directly, improving stability and scalability.
Terminology
- Relay Server: The relay server is responsible for receiving and forwarding all participants' audio and video data, ensuring balanced traffic distribution and improving connection stability.
- Host: The host device is responsible for creating the meeting and managing the settings of the meeting room, including member permissions and screen layout.
- Participant: The participant device sends audio and video data to the meeting through the relay server and receives the audio and video streams distributed by the server.
- Screen Layout: The synthesis template used by the host to configure the display of each participant's screen in the meeting.
Architecture Overview
Relay Base adopts a star network architecture with server relay. Each participant's audio and video data is processed by the server and then distributed to other participants. The relay server ensures the reliability of data transmission and reduces the network load on each device.
Architecture Diagram:
Participant <-> Relay Server <-> Participant
^
|
Host
- All audio and video streams are relayed and synchronized by the Relay Server, reducing the reliance on direct connections and adapting to more scenario requirements.
Meeting Room Management Process
The management of Relay Base meeting rooms also relies on the CMS system, and the process is as follows:
- Meeting Room Creation:
- The host sends an API request to the CMS to create a meeting room and obtain the meeting room number and relay server connection information.
- Participants Join the Meeting Room:
- Participants query the available meeting rooms through the CMS and send a join request to the server.
- Server Relay Management:
- The relay server receives all participants' audio and video streams, performs encoding and forwarding processing, and distributes audio and video data according to the meeting settings.
- Meeting End:
- The host or CMS can terminate the meeting and release the relay server resources.
Host
- Manage Meeting Settings: The host can set the screen layout, control participant permissions, and start recording or screen sharing functions.
- Control Audio and Video Synthesis: The host can choose the layout templates provided by the SDK and switch in real-time.
- Multi-person Management: Supports the expansion of the number of participants in multi-person meetings, optimized according to server performance and network conditions.
Participant
- Flexible Participation: Can control their own audio and video status, such as turning the camera and microphone on or off.
- Audio and Video Reception: Receives synthesized audio and video streams from the server, ensuring synchronized display and sound.
- Interactive Functions: Interacts with the host through the functions provided by the SDK, participates in discussions, or requests to speak.
CMS Functions
In the Relay Base mode, the CMS is responsible for the following tasks in addition to meeting room management:
- Dynamic allocation of relay server resources.
- Provide meeting data analysis (such as traffic usage, connection status).
- Set server node switching strategies to improve system stability in high-concurrency scenarios.
In the future, the CMS will further integrate advanced functions such as multi-region resource allocation and disaster recovery mechanisms to meet business needs.
Relay Base provides a stable, flexible, and efficient audio and video transmission solution, making it an ideal choice for large-scale real-time communication applications.