12/9/2023 0 Comments Agora record video callThe Stream methods define the behaviors of a stream object, such as the playback control and video encoder configurations. Stream objects, which represent the local and remote streams.The Client methods provide the major functions for a voice/video call, such as joining a channel and publishing a stream. The client object, which represents the local client.You need to work with two types of objects when using the Agora Web SDK: Once the project is set up, use the core APIs of the Agora Web SDK in script.js to implement the basic video call function. Run the following command to install the SDK: npm install agora-rtc-sdkĪdd the following code to the JavaScript code in your project: import AgoraRTC from 'agora-rtc-sdk'Īdd the following code to the line after in the index.html file: Method 3: Through the Agora websiteĬopy the AgoraRTCSDK-3.6.11.js file to the scripts directory.Īdd the following code to the line after in the index.html file: This method requires npm see Install npm for details. The index.html file is the web page the script.js file includes the JavaScript code that implements the video call function the style.css file defines the front-end styles.Ĭhoose one of the following methods to obtain the Agora Web SDK: Method 1: Through npm An Intel 2.2GHz Core i3/i5/i7 processor (2nd generation) or equivalentĬreate a folder for this project, and then create files in the following structure.Physical media input devices, such as a built-in camera and a built-in microphone.Agora highly recommends using the latest version of Google Chrome. A browser that matches the supported browser list.If your network has a firewall, follow the instructions in Firewall Requirements to access Agora services. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |