Level up your Twilio API skills in TwilioQuest, an educational game for Mac, Windows, and Linux. Download Now

メニュー

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Android Platform Overview

Twilio's Programmable Video Android SDK lets you add real time voice and video to your native Android applications.

前提条件

  • Android Studio 2.0 or higher
  • Support for Android API level 16 or higher
  • Support for Java 8

Run the QuickStart app

To get started with Twilio Video, you should download and run the QuickStart application.

The QuickStart repository contains additional examples. These examples demonstrate the usage of new features and also help you build more complex applications.

To add Video to your app, follow the Getting Started Guide

Add the SDK

The Android Video SDK is distributed through jCenter.

To install the Android Video SDK, ensure the following configuration is in your build.gradle file:

Gradle

allprojects {
    repositories {
        jcenter()
    }
}

// The Video library resides on jcenter
implementation 'com.twilio:video-android:4.3.2'

android {
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
}

Proguard

Add the following lines to your proguard-project.txt file.

-keep class org.webrtc.** { *; }
-keep class com.twilio.video.** { *; }
-keepattributes InnerClasses

サポートされるデバイス

Android SDKでは、Android API Level 16以上をサポートします。 armeabi-v7a、arm64-v8a、x86, 及び x86_64 アーキテクチャー向けにビルドされています。

リリース通知

Watch the video-android project on Bintray to get notified of all future releases.

Migrating from 3.x to 4.x

Our 4.0 releases are now "Generally Available" (GA) and represent our latest releases with the following new feature:

  • The SDK now includes two new callbacks in Room.Listener to notify developers of a network disruption.

Our 1.x, 2.x, and 3.x releases are still (GA) and represent stable APIs that are supported with critical bug fixes. Refer to our 2.x migration guide for migrating your applications from 1.x to 2.x, our 3.x migration guide for migrating your applications from 2.x to 3.x, and our 4.x migration guide for migrating your applications from 3.x to 4.x.

Migrating from 2.x to 3.x

Our 3.0 releases are now "Generally Available" (GA) and represent our latest releases with the following new features:

  • The media stack has been upgraded from WebRTC 57 to WebRTC 67. The process by which our team upgrades WebRTC has been improved and developers can expect a steadier cadence of releases with WebRTC upgrades moving forward.
  • The SDK is now compiled using Java 8 features.

Our 1.x and 2.x releases are still (GA) and represent stable APIs that are supported with critical bug fixes. Refer to our 2.x migration guide for migrating your applications from 1.x to 2.x and our 3.x migration guide for migrating your applications from 2.x to 3.x.

Migrating from 1.x to 2.x

Our 2.0 releases are "Generally Available" (GA) and provide the following features:

  • H.264 encoding and decoding.
  • Codec preferences.
  • Bandwidth controls.
  • Subscription focused APIs.
  • Track names, Track level errors.
  • Data Tracks.

Our 1.x releases are still (GA) and represent stable APIs that are supported with only critical bug fixes. Refer to our migration guide for migrating your applications from 1.x to 2.x.

Rate this page:

ヘルプが必要ですか?

誰しもが一度は考える「コーディングって難しい」。そんな時は、お問い合わせフォームから質問してください。 または、Stack Overflow でTwilioタグのついた情報から欲しいものを探してみましょう。