Project overview

Updated at:

AliPlayerKit is a set of low-code player UI components and scenario-based solutions for iOS. Encapsulate player capabilities and UI interactions with AliPlayerKit to build video playback in your app without calling underlying player APIs or implementing custom UIs.

Project introduction

AliPlayerKit provides extensible player UI components and scenario-based solutions that let your app deliver complete video playback capabilities at minimal integration cost. The kit removes the need to work directly with the underlying player APIs or to build player UIs from scratch.

Core features

  • Low-code integration — Integrate video playback capabilities with a few lines of code, without calling underlying player APIs.

  • Ready-to-use UI components — Configurable player UI components that cover basic playback and common interaction capabilities.

  • Scenario-based solutions — Built-in typical business scenarios such as medium and long video, short video, live streaming, and playlist, to build complete playback experiences.

  • Highly extensible architecture — A slot system that supports flexible UI composition and a policy system that supports flexible business logic extension.

Prerequisites

Before you integrate AliPlayerKit or run the sample project, make sure that the following conditions are met:

Condition

Description

Xcode

15.0 or later. We recommend the latest stable version.

iOS

9.0 or later. We recommend that you use a physical device.

CocoaPods

1.13.0 or later.

License

You have obtained the player license certificate and license key. For more information, see Obtain a license.

Project structure

In terms of architecture hierarchy, AliPlayerKit sits on top of the player kernel, providing a unified UI component system and playback scenario abstraction to support the common capabilities of different playback scenarios.

The project module structure is as follows:

PlayerKit-iOS/
├── PlayerKit/                  # Core module: Player UI components
├── PlayerKitScenes/            # Scenario module: Business scenario solutions
├── PlayerKitUsages/            # Example module: Feature demos
├── DemoSettings/               # Demo settings module: App-level configuration and link management (required by SceneLive)
├── App/                        # Demo app: Full-feature demo
├── Example/                    # Xcode project configuration
└── docs/                       # Project documentation: Architecture description, integration guide, and API reference

Quick integration

AliPlayerKit uses a layered architecture and provides two integration approaches. Choose the layer that matches your use case:

Layer

Module

Description

Scenarios

Component layer

PlayerKit

Core UI components that provide player views, controllers, and data models.

Custom UI or flexible control over playback behavior.

Scenario layer

PlayerKitScenes

Complete scenario solutions that include UI and business logic.

Quickly implement standard playback scenarios.

Run the project

Run the included sample project to verify your local environment and explore the full-feature demo. Confirm that you meet the Prerequisites before you start.

Step 1: Install dependencies

cd Example
pod install

Step 2: Open the project

Open Example/Example.xcworkspace in Xcode. Use .xcworkspace instead of .xcodeproj.

Step 3: Configure the license

The player SDK requires a valid license to work properly. For more information about how to obtain and configure a license, see Obtain a license.

Step 4: Run the project

Select a target device and click Run (Cmd + R).

FAQ

License issues: The license is bound to the app bundle ID. If the license is not properly configured, the player cannot work properly. For more information, see Obtain a license.

Important

If the license is not properly configured, the player cannot work properly and may throw an authorization exception.

Try the demo

A prebuilt demo package is available so that you can experience AliPlayerKit features on a physical device without setting up a development environment.

Scan the following QR code with your phone to download and install the demo package:

AliPlayerKit demo QR code

Note

Make sure that you have enabled the permission to install third-party apps on your device.

Resources

  • Source code — To download the project, visit AliPlayerKit. The project provides a clear documentation structure and step-by-step instructions for both AI and developers to understand and execute.

  • Online documentation — To read the documentation online, visit Read online. This site contains the latest AliPlayerKit project information.