鸿蒙播放器 SDK 概述
Updated: 2026-06-26 17:25:52
HarmonyOS Player SDK
1 Introduction
This project is the Polyv HarmonyOS Player SDK Demo. (Project address: GitHub)
This project only supports basic playback functionality and advanced interactive features (see Player Supported Features for details).
The file directory structure of the player project is as follows:
|-- demo
| |-- ability
| |-- mock (demo模拟数据)
| |-- pages
| | |-- PLVMediaPlayerEntrancePage (入口页)
| | `-- PLVMediaPlayerFeedVideoPage (短视频场景页面)
| | `-- PLVMediaPlayerSingleVideoPage (长视频场景页面)
| `-- startup (SDK初始化)
|-- scene_feed_video (短视频场景模块)
|-- scene_single_video (长视频场景模块)
`-- common
|-- modules (业务逻辑)
|-- ui (各场景通用的ui组件)
`-- utils (工具类库)
2 Download and Installation
ohpm install @polyvharmony/media-player-sdk
