This repository contains sample projects using the RingCentral video client SDK for Android. This tutorial guides you to get started in your development efforts to create an Android application with real-time audio/video communications.
With the video client SDK you can:
- Join or start a meeting with a valid access token.
- Join the meeting as a guest. (The app needs to get the authorization of the guest type first)
- Start audio/video communication with participants.
- Mute and unmute local audio.
- Start and stop the local video.
- Sharing the device screen or camera.
- Sends in-meeting private and public chat messages.
- Receive meeting and media event callback, such as participant joined/leave, audio/video muted/unmuted.
- Host or moderator privileges:
- Mutes and unmutes a specific participant' audio or video.
- Mutes and unmutes all meeting users' audio or video.
- Locks/unlocks the meeting.
- Starts and pauses the recording.
- Assigns and revokes the moderator role with meeting users.
- Puts in-meeting users into the waiting room.
- Admits/denies a user from the waiting room.
- Admits all users from the waiting room.
- Stops remote users' sharing.
- Locks and unlocks the meeting sharing function.
- Removes the meeting user from the active meeting.
- Android Studio 4.2.+
- Physical Android device (Phone and Tablet) (simulator is also supported)
- Android OS version 7.0+
- Android SDK version 26+
- RingCentral Developer Account (free - https://app.ringcentral.com/signup)
- Access to RingCentral Video Documentation (using password "workasone")
The sample project can enable you to quickly get started in the development efforts using the RingCentral Video client SDK. For detailed information, check the README file of each sample project.
To start using the Android programmable video client SDK in your applications, you need to perform a few steps as follows.
-
If you are using a Gradle version lower than 6.8.0, add the following lines to your build.gradle file. Instead, you can ignore this step.
allprojects { repositories { google() mavenCentral() } }
-
Add it in your root build.gradle at the end of repositories.
allprojects { repositories { ... maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' } } }
-
Add the following lines under dependencies of your app build.gradle file.
implementation 'com.pubnub:pubnub-gson:4.29.2' implementation 'com.ringcentral.video:ringcentral-video-sdk:version'
-
Use your client ID and client secret to initial the RCV client SDK engine as code below, the client ID and client secret are required.
RcvEngine.create(this.getApplicationContext(), <#client ID#>, <#client secret#>);
-
If you intend to host a meeting or access your extension information, such as the meeting list or the recording list, etc, follow the steps in our RingCentral Video client SDK Dev Guide to procure the RingCentral authorization tokens and invoke the API method as code below.
RcvEngine.instance().setAuthToken(<#authorization token string#>, false);
-
Next, follow the dev guide and API documentation or the sample projects to build your video application, enjoy programming!
- Some interfaces are not supported yet in the current beta version, they are being actively developed. For example, the breakout room, etc.
- You may encounter some problems while running the sample applications, such as abnormal UI or crash, etc.
- Dev Support & Feedback: For feedback, questions or suggestions around SDK please email videosdkfeedback@ringcentral.com