![]() User ID: The unique identification of the user.It can be obtained from the Agora console. ![]() App ID: A string randomly generated by Agora to identify your app.Publish and subscribe audio and video streams in a channel: After joining a channel, the app client can publish and subscribe audio and video streams in the channel.Īpp clients need the following information to join a channel:.A channel can be understood as a channel dedicated to transmitting real-time audio and video data. App clients using the same channel name join the same channel by default. Join a channel: call joinChannel to create and join a channel.In a test or production environment, get the token from the app server. Get Token: When the app client joins the channel, you need to use the Token to authenticate the user.The data of this channel will be transmitted with low latency through the Agora SD-RTN real-time network of SoundNet.Īfter the App integrates the Agora SDK, the basic workflow of a video call is shown in the following figure:Īs shown in the figure, the steps to implement a video call are as follows: You can understand it as the audio and video communication between two users by joining the same channel. What we're trying to achieve here is a one-on-one video call. So we provide an open source basic video call sample project on GitHub, you can experience the audio and video call effect through this sample project before starting development. There may be some people who still don't know what the function we want to achieve will be in the end. Experience video calling through open source Demo Shengwang SDK will provide 10,000 minutes of free usage every month, which can realize various real-time audio and video scenarios. This article will teach you how to implement a video calling application on the Android side through the Agora Video SDK. Now we’re ready to join a channel by using the client.join method: client.In many products, real-time video calling is not a new feature, such as video conferencing, social applications, online education, and may even appear in some metaverse scenarios. Next, we initialize the method with the App ID that we obtained earlier: client.init("",() => console.log("AgoraRTC client initialized") ,handleFail) Pass in the parameters to set the video encoding and decoding format (vp8) and the channel mode (rtc): let client = AgoraRTC.createClient() We’ll be implementing the methods listed in the diagram in script.js.įirst, we need to create a client object by calling the AgoraRTC.createClient constructor. Users can join and leave a channel at will. Or you can use the CDN version by using this tag instead: Īrchitecture of an Agora Video Call So what’s the diagram all about? Let’s break it down a bit.Ĭhannels are similar to chat rooms, and every App ID can spawn multiple channles. You can download the latest version of the Agora Web SDK from Agora’s Downloads page and integrate as has been done in this tutorial. The structure of the application is very straightforward. This is the structure of the application that we are developing. Agora Web SDK, which you can download here.Also retrieve the temporary token if you have enabled the app certificate.You can get started with Agora by following this guide and retrieving the App ID.In this tutorial, we’ll create a bare-bones web application with video calling features using vanilla JavaScript and the Agora Web 3.x SDK. In addition, all the video server details are abstracted away. Maintaining a low-latency video server, load balancing, and listening to end-user events (screen off, reload, etc.) are some of the really painful hassles - not to mention having cross-platform compatibility.įeeling dizzy already? Fear not! The Agora Video SDK allows you to embed video calling features into your application within minutes. Integrating video streaming features into your application can be very tedious and time-consuming. Note: This guide uses v3.x of the Agora Web SDK.
0 Comments
Leave a Reply. |