![]() Inside the App() component: // startBasicCall()Īt the same time, note: The width and height of the DOM element of the playing video track must be set. ![]() ay( document.getElementById( 'playerContainer')) Then the SDK will automatically generate an element inside the element to play the video. You can pass in a DOM object (a native DOM object, which is not encapsulated by React), or the ID value of the element. When playing a video track, you need to specify a DOM element first. LocalVideoTrack = await AgoraRTC.createCameraVideoTrack()Īfter creating the local audio and video track, we can call the play()method to play the local video and audio. LocalAudioTrack = await AgoraRTC.createMicrophoneAudioTrack() Call to createCameraVideoTrack()create a local video track object localVideoTrack.Call to createMicrophoneAudioTrack()create a local audio track object localAudioTrack.Finally incoming UID, as nullwhen the SDK will temporarily give you generate aĬonst uid = await rtcClient.join(,, , null) Īfter joining the channel, let s create a local audio and video track.To join a channel, you need to pass in 4 parameters: Import AgoraRTC from 'agora-rtc-sdk-ng' const client = AgoraRTC.createClient() Introduce this module in the App.js file.Create a React application ( how to create a React application ).for a virtual meet-up in 10 easy steps, using the Agora Video SDK for Android. (When the project is released, you can refer to the documentation and official warehouse to write the corresponding token generation code, and deploy it to your own server to obtain the token by calling the interface.) I would like to know the pricing for video calls in apps and web (peer to. ![]()
0 Comments
Leave a Reply. |