Integrating The SDK

Three main sections here are: Adding Dependencies - Dependencies for the 100ms Android SDK. Adding the 100ms SDK - To add the SDK to your project's dependencies. Adding Permissions - Since a video calling app needs camera/record-audio permissions you'll need this for the apps to work.

Adding Dependencies

settings.gradle
dependencies { // See the version in the badge above. // There are separate libraries for the sdk, virtual background and hls-player-stats. // add just the ones you need.
def hmsVersion = "x.x.x"
implementation "live.100ms:android-sdk:$hmsVersion" // Essential
implementation "live.100ms:virtual-background:$hmsVersion" // Optional
implementation "live.100ms:hls-player-stats:$hmsVersion" // Optional
implementation "live.100ms:hls-player:$hmsVersion" // Optional }

Permissions

Camera, Recording Audio and Internet permissions are required. Add them to your manifest.

AndroidManifest.xml
<uses-permission android:name="android.permission.CAMERA" /> <uses-permission android:name="android.permission.RECORD_AUDIO" /> <uses-permission android:name="android.permission.INTERNET" />

You will also need to request Camera and Record Audio permissions at runtime before you join a call or display a preview. Please follow Android Documentation for runtime permissions.


Have a suggestion? Recommend changes ->

Was this helpful?

1234