All Products
Search
Document Center

Apsara Video SDK:Compliance configuration guide for ApsaraVideo MediaBox SDK for Android

Last Updated:Mar 06, 2025
Note

According to the Personal Information Protection Law, Data Security Law, Cybersecurity Law, and other regulatory requirements, app developers must respect and protect the personal information of end users and are prohibited from collecting or using such information unlawfully while providing network services. This guide is intended to help developers implement protections for personal information and prevent any infringement on the personal information rights of end users.

I. Version of ApsaraVideo MediaBox SDK

Make sure that you are using the latest version of ApsaraVideo MediaBox SDK. To download the latest version, see Select and download SDKs.

II. Permissions and request time

Permission related to personal information

Required

Permission request time

Purpose

Involving SDK

android.permission.INTERNET

Yes

Creating an instance

Initiate a network access request.

Push SDK, ApsaraVideo Real-Time Communication (ARTC) SDK, ApsaraVideo Player SDK, upload SDK, Queen SDK, and short video SDK

android.permission.ACCESS_NETWORK_STATE

Yes

Creating an instance

Check whether the network is accessible.

Push SDK, ARTC SDK, upload SDK, Queen SDK, and short video SDK

android.permission.ACCESS_WIFI_STATE

Yes

Creating an instance

Check whether Wi-Fi is enabled.

Push SDK, ARTC SDK, and upload SDK

android.permission.RECORD_AUDIO

No

Recording audio

Capture microphone audio during live streams and voice chats.

Push SDK, ARTC SDK, IM PaaS, and upload SDK

Before Target SDK 33:

android.permission.WRITE_EXTERNAL_STORAGE

After Target SDK 33:

android.permission.READ_MEDIA_IMAGES

android.permission.READ_MEDIA_AUDIO

android.permission.READ_MEDIA_VIDEO

No

Recording to the target path

Write or read process logs during live streaming, save downloaded messages during communication, send local images or files, download resources from the server and generate videos, or import local resources or identifiers of storage devices to the SDK.

ARTC SDK, Push SDK, ApsaraVideo Player SDK, upload SDK, and short video SDK

android.permission.CAMERA

No

Enabling video recording

Capture camera images during live streaming and video recording.

Push SDK, ARTC SDK, and short video SDK

android.permission.FLASHLIGHT

No

Turning on the flash

Turn on the flash in low-light conditions.

Push SDK, ARTC SDK, and short video SDK

android.permission.MODIFY_AUDIO_SETTINGS

No

Adjusting the volume

Adjust the playback mode to achieve the best audio experience.

Push SDK and ARTC SDK

android.permission.BLUETOOTH

android.permission.BLUETOOTH_CONNECT

android.permission.BLUETOOTH_ADMIN

No

Connecting to Bluetooth

Connect to a Bluetooth headset and set in-ear parameters.

Push SDK and ARTC SDK

android.permission.READ_PHONE_STATE

No

Enabling incoming call switching

Detect incoming calls. When an incoming call is detected, your app can automatically mute the live stream or ongoing audio/video call. If not requested, the app will not automatically know when a call is incoming.

Push SDK and ARTC SDK

III. Features and required personal information

Feature

Collected personal information field

Purpose

Configuration

Involving SDK

Streaming and RTC

UUID

Performance tuning and troubleshooting

No configuration required

Push SDK, ARTC SDK, ApsaraVideo Player SDK, upload SDK, Real-Time Streaming (RTS) SDK, short video SDK, and Queen SDK

Streaming and RTC

Device model

Performance tuning and troubleshooting

No configuration required

Push SDK, ARTC SDK, ApsaraVideo Player SDK, upload SDK, RTS SDK, short video SDK, and Queen SDK

Streaming and RTC

IP address

1. Needed when you call the server-side APIs provided by the SDK

2. Performance tuning and troubleshooting

No configuration required

Push SDK, ARTC SDK, ApsaraVideo Player SDK, upload SDK, RTS SDK, and short video SDK

Streaming and RTC

Wi-Fi status

Check the Wi-Fi connectivity.

No configuration required

Push SDK and ARTC SDK

Streaming and RTC

ISP information

Select and optimize network connections.

No configuration required

Push SDK and ARTC SDK

IV. Compliant SDK initialization solution

Important

Before you use ApsaraVideo MediaBox SDK for Android, make sure that the SDK is initialized and end users agree to the privacy policy.

Use the following code to create a player instance:

export class AliPlayerFactory { 
  /**
   * Create a player instance.
   */
  static createAliPlayer(context: Context, traceId?: string): AliPlayer
}

V. Templates of ApsaraVideo MediaBox SDK Privacy Policy

Template 1:

SDKs: Push SDK, ARTC SDK, ApsaraVideo Player SDK, upload SDK, and RTS SDK

Purpose: Deliver robust, easy-to-use APIs that simplify integration and use optimization technologies across nodes to significantly reduce latency. Provide a diverse array of powerful retouching effects to enhance live streaming content and ensure a smooth viewing experience that intelligently adapts to varying network conditions.

Operator: Alibaba Cloud Computing Co., Ltd.

Types of personal information collected: UUID, device model, IP address, Wi-Fi status, and ISP information

Privacy policy: Alibaba Cloud Video Service Privacy Policy

Template 2:

SDKs: short video SDK and Queen SDK

Purpose: Deliver robust, easy-to-use APIs that simplify integration and use optimization technologies across nodes to significantly reduce latency. Provide a diverse array of powerful retouching effects to enhance live streaming content and ensure a smooth viewing experience that intelligently adapts to varying network conditions.

Operator: Bainianyunqi Network Technology (Shanghai) Co., Ltd.

Types of personal information collected: UUID, device model, and IP address

Privacy policy: Alibaba Cloud Video Service Privacy Policy