All Products
Search
Document Center

:Obtain the SDK

Last Updated:Jul 27, 2023

LinkVisual provides the device SDK for Android. You can use the SDK to implement features such as live streaming, video playback, voice intercom, and image capture on video devices. This topic describes requirements for the development environment and how to configure the SDK.

Prerequisites

  • A video device is connected to an IoT Platform instance of the video type. For more information, see Device Connection.

  • The development environment is prepared. The following table describes the requirements for the development environment.

    Item

    Description

    Operating system

    Android 4.4 or later

    Java

    Java 1.7 or later

    API LEVEL

    Android API level 18 or later

    Android Studio

    Android Studio 2.3 or later

Configure the SDK

  1. Create a project in Android Studio.

  2. Configure the dependency.

    1. In the Android Studio project that you created, add the URL of the Aliyun Maven repository to the build.gradle file under the root directory.

      maven {
                       url "http://maven.aliyun.com/nexus/content/repositories/releases"
                  }           
    2. Add the following dependencies to the build.gradle file in the app folder.

      implementation 'com.aliyun.iotx:linkvisual-ipc:1.4.5'
  3. Configure the obfuscation rule.

    Configure the following obfuscation rule in the proguard-rules.pro file.

    # keep linkvisual
    
    -keep class com.aliyun.iotx.linkvisualipc.** { *; }