This document introduces AliPlayerKit for iOS, covering its key features, project structure, and integration.
Introduction
AliPlayerKit is a core UI architecture for video players.
It offers low-code, extensible player UI components and scenario-based solutions. These features let you quickly integrate full-featured video playback into your applications without the complexity of low-level player APIs or UI implementation.
Key features
Low-code integration: Integrate video playback capabilities with just a few lines of code, without directly calling low-level player APIs.
Out-of-the-box UI components: Offers configurable player UI components that cover basic playback functions and common interactive features.
Scenario-based solutions: Build a complete viewing experience quickly with built-in solutions for typical use cases, including medium and long-form video, short-form video, live streaming, and playlists.
Highly extensible architecture: A slot system allows flexible UI combinations, and a policy system lets you easily extend business logic.
Cross-platform alignment: Shares the same architectural design and consistent API semantics with the Android version.
Project structure
Architecturally, AliPlayerKit sits above the player core. It provides common capabilities for video services using unified UI components and scene abstractions.
The project is structured as follows:
PlayerKit-iOS/
├── PlayerKit/ # core module: Player UI components
│ ├── PlayerKit.podspec
│ ├── Source/
│ └── Resources/
├── PlayerKitScenes/ # scene module: Business scenario solutions
│ ├── PlayerKitScenes.podspec
│ ├── SceneCommon/
│ ├── SceneLongVideo/
│ ├── SceneShortVideo/
│ ├── SceneLive/
│ └── ScenePlaylist/
└── App/ # demo applicationQuick integration
AliPlayerKit uses a layered architecture and provides two integration approaches. You can choose the one that best fits your business needs:
Layer | Module | Responsibility |
Component layer |
| Offers out-of-the-box, configurable player UI components that cover basic playback and common interactive features. |
Scene layer |
| Offers standardized integration solutions for typical scenarios such as medium and long-form video, short-form video, live streaming, and playlists. |