Compliance configuration guide for ApsaraVideo Player SDK for HarmonyOS

更新时间:
复制 MD 格式
Note

The application developer must respect and protect the personal information of end users and cannot illegally collect or use it when the application developer provides network services based on the laws, regulations, and regulatory requirements, including Personal Information Protection Law, Data Security Law, and Cybersecurity Law. This guide is provided for developers to implement the protection for user personal information and prevent infringement upon the personal information rights of end users.

Ensure you are using the latest HarmonyOS Player SDK

To download the latest version, see HarmonyOS SDK Release History.

2. Permissions on ApsaraVideo Player SDK for HarmonyOS and application time

Permission related to personal information

Required

Permission application time

Purpose

INTERNET

Yes

The time when you create a player instance.

This permission allows the SDK to connect to the Internet for stream pulling and data troubleshooting. This is the basic permission for network connection.

GET_NETWORK_INFO

Yes

Create a player instance.

This permission allows the SDK to view the network status for player troubleshooting and playback quality optimization.

GET_WIFI_INFO

Yes

You can create a player instance.

View the Wi-Fi network status. This is used for player troubleshooting and playback quality optimization.

KEEP_BACKGROUND_RUNNING

No

The time when you push streams to the background.

Specifies whether playback continues after the app enters the background. This parameter is optional. By default, playback is interrupted when the app enters the background.

III. AliyunPlayer SDK Features and Related Personal Information

Feature

Collected personal information field

Purpose of personal information collection

Configuration and example

Stream pulling and playback

UUID

A unique identifier for an application is calculated by an algorithm and used for performance tuning, fault analysis, and compatibility.

No configuration is required.

Stream pulling and playback

Device model

Supports performance tuning and fault analysis

No configuration is required.

Stream pulling and playback

IP address

1. You can call the SDK's server-side interfaces.

2. Supports performance tuning and fault analysis.

No configuration is required.

* 4. Optional personal information fields and configuration

Optional personal information field

Purpose of personal information collection

Configuration and example

N/A

N/A

N/A

AliyunPlayer SDK Compliance Initialization Configuration

Important

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

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