Java
Creating the Project
You will start by creating a new Android Studio project:
Open Android Studio and, from the menu, select
File>New>New Project.... Select aEmpty Views Activitytemplate type and clickNext.Enter
VonageVideoTutorialAppas project name.Select Java as the language.
Choose a folder to save the project to.
Select Groovy DSL for the build configuration language, and press
Finishbutton.You now have a brand new Android Studio project.
Installing the SDK
Now that the Android Studio project is created you can install the Vonage Video SDK. We will be doing this using Maven:
- Update the dependencies in the app level
build.gradlefile to include the Vonage Video SDK:implementation "com.opentok.android:opentok-android-sdk:2.29.0" - Sync your Gradle project and Android Studio will now download the SDK.
Basic text chat
Follow this tutorial to build basic text chat from scratch using the Vonage Video API. It is the quickest way to build a proof of concept for this functionality on the video platform.
手順
1
Overview2
Before You Begin3
Configure a Vonage Video Application4
Creating the Project5
Setting Up Authentication6
Connecting to the Session7
Sending a Signal8
Receiving a Signal9
Testing your Code10
Conclusion