preface
Hello, everyone, developers. This chapter will introduce the preparatory work of using WebRTC SDK independently developed by anyRTC for voice call, video call, entertainment live broadcast and other scene development. If you don’t understand anything, you can add our wechat (QR code is at the bottom).
equipment
-
A mainstream browser that supports THE RTC SDK:
-
A terminal with audio and video input and output devices (microphone, camera)
Get APPID
-
Register a “developer account” in anyRTC user background.
-
Create a “project” in the developer console.
-
Obtain APP ID Obtain the APP ID of the project.
Download the SDK
-
You can find the Web side of “RTC SDK Download” in the download center of the official website
-
Go to Ali Cloud OSS, CTRL + S or Command + S to download
-
Go to Github Clone or Download ZIP to Download
-
Download it through the NPM marketplace
Import the SDK
-
Script tag introduction
Using the SDK introduced with the
<script src="/<YOUR_PATH>/to/[email protected]"></script> Copy the code
-
Imported in ES6 mode
import ArRTC from '/<YOUR_PATH>/to/[email protected]'; Copy the code
-
CommonJS mode is introduced
var ArRTC = require('/<YOUR_PATH>/to/[email protected]'); Copy the code
-
NPM import
import ArRTC from 'ar-rtc-sdk'; Copy the code
Contact the author
WeChat ID: