Introduction to the
An Aliyun ECS server can be provided to guide the construction of a simple video conference room based on audio and video communication services.
Background information
Audio and video communication:
Real-time Communication (RTC) is aliYun’s real-time audio and video development platform covering the world. It provides real-time network services with high availability, high quality and ultra-low latency, suitable for online education, interactive entertainment, video conference, insurance loss, scheduling and command and other scenarios. With Aliyun RTC SDK, you can quickly build interconnected real-time audio and video applications on mobile, Web, PC and other terminals.
Multiplayer Online Video conferencing system:
This scenario provides you with a Demo code of a multiplayer online video conference system based on audio and video communication services. The Demo implements basic functions such as meeting channels, audio and video sharing, and screen sharing. The preview effect is shown as follows.
The AppKey of the audio and video communication application is obtained
Note: The experience lab can provide an ECS server. For audio and video communication services involved in the scenario, please use your Ali Cloud account to operate. The default charging method for audio and video communication services is pay-per-quantity.
- Use your ali Cloud account to log in to the RTC console of audio and video communication.
- On the left, click Application Management.
3. You can see the AppID of your default app on the App Management page.4. In the operation column on the right of the default application, click to query AppKey.5. In the dialog box that is displayed, click OK.
Connect to the ECS server
Modify the configuration
- Run the following command to open the index.html file using Vim.
cd AliRTC-WebSample && vim index.html
Copy the code
- Enter the following command, then press enter to jump to the appId configuration line.
: 316Copy the code
- Press I to enter the editing mode, and change the appId and appKey to those queried in Step 2.
Run the Demo
- Run the following command to grant execute permission to the startup file.
chmod +x simple_https_server.py
Copy the code
- Run the following command to start Demo.
python3 simple_https_server.py
Copy the code
If the command output is similar to the following, the application is started successfully.
To access the Demo
- Enter an address in the following format in the browser address bar.
https://[ipaddress]:23333
Copy the code
Set IPAddress to the public IP address of the server. For details, see Step 3.
- On the first visit, a warning page that the connection is not secure appears, as shown below. Click Advanced > Continue to Trust the connection.
Note: This Demo uses a self-signed certificate, so a message is displayed indicating that the connection is not secure. To avoid this problem, bind the public IP address to an existing domain name, apply for an SSL certificate issued by an authoritative certificate authority, and replace the CSR file and key file in the Demo directory. For details, see SSL Certificate.
3. When you access the Demo page for the first time, you will apply for the microphone and camera permissions. Click Allow.
- Enter the room number, then click to enter the room.
5. After entering the room, the video stream will be pushed by default. You can choose to cancel the push or push the shared stream (share the screen), and then send the Demo link and room number to your partner for the online meeting.