![]() #Videocanvas download#Go to SDK Downloads, download the latest version of the Agora Video SDK, and extract the files from the downloaded SDK package. #Videocanvas for android#In addition to integrating the Agora Video SDK for Android through MavenCentral, you can also import the SDK into your project by manually copying the SDK files. Sample project Īgora provides an open-source sample project Basic Video Call on GitHub that implements one-to-one video call and group video call for your reference. This section provides additional information for your reference. #Videocanvas how to#Authenticate Your Users with Tokens shows you how to start video calling with a token that you retrieve from your server. Generating a token by hand is not helpful in a production context. Enter the same App ID and channel name.Īfter your friend joins the channel, you should be able to see and hear each other. Ask a friend to join the video call with you on the demo app.When the app launches, you should be able to see yourself on the local view.A moment later you will see the project installed on your device. Connect an Android device to your computer, and click Run 'app' on your Android Studio.Fill channelName with the channel name that you use to generate the temporary token. Fill in the appId and token parameters with the App ID and temporary token that you retrieve from Agora Console.A mobile device that runs Android 4.1 or later.įollow the steps to create the environment necessary to add video call into your app.įor new projects, in Android Studio, create a Phone and Tablet Android project with an Empty Activity.If your network has a firewall, follow the instructions in Firewall Requirements. A computer with access to the internet.An active Agora project with an App ID and a temporary token.The channel name: A string that identifies the channel for the video call.īefore proceeding, ensure that your development environment meets the following requirements:.For this page, you use a temporary token with a validity period of 24 hours that you retrieve from Agora Console. A token: In a test or production environment, your app client retrieves tokens from a server in your security infrastructure.You need to specify the user ID yourself, and ensure that it is unique in the channel. The user ID: The unique identifier of a user.You can get the App ID from Agora Console. The App ID: A randomly generated string provided by Agora for identifying your app.Publish and subscribe to audio and video in the channelĪfter joining a channel, the app client automatically publishes and subscribes to audio and video in the channel.įor an app client to join a channel, you need the following information: ![]() App clients that pass the same channel name join the same channel. In a test or production environment, your app client retrieves tokens from a server in your security infrastructure.Ĭall joinChannel to create and join a channel. The following figure shows the workflow to integrate into your app in order to add Video Call functionality.Īs shown in the figure, the workflow for adding Video Call in your project is as follows:Ī token is the credential that authenticates a user when your app client joins a channel. #Videocanvas code#This page shows the minimum code you need to add video call into your app by using the Agora Video SDK for Android. ![]() The Agora SDK enables you to embed real-time voice and video interaction in any app, on any device, anywhere. ![]() In the picture below I'm showing the objects I have under the Video-PreHistoricFL and the Canvas that hold the yellow back button.People engage longer when they see, hear, and interact with each other. I also test having multiple videos using the same image target and each video plays just fine. A single video has its own canvas that holds it's play button and progress bar so I don't know if there's a conflict in having different canvas. I'm working with Unity version 2018.3.14f1 and using Vuforia Core Samples from Unity Asset Store. ![]() However, I added a canvas to display a yellow back button to allow the user to move back to the main menu scene and it works BUT it disables the video's play button, I cannot longer play the video when I have this canvas.Ĭould someone please help me debug this? I get no errors in the console either. I'm using Vuforia's Core Samples scenes to play and pause my video and it works fine. I have a Vuforia Image target that displays a 3D model of a billboard with a video. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |