# VideoPlayer **Repository Path**: caoliwen1/VideoPlayer ## Basic Information - **Project Name**: VideoPlayer - **Description**: 基于HarmonyOS的播放管理类(AVPlayer),实现视频播放功能。 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 7 - **Created**: 2024-09-06 - **Last Updated**: 2024-11-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Video Player ### Introduction Based on HarmonyOS AVPlayer, learn how to implement video playback. ![image](screenshots/device/VideoPlayer_EN.gif) ### Concepts - AVPlayer: a video playback component. - XComponent: a component that can accept and display the EGL/OpenGL ES and media data input. - PanGesture: panning gesture. When the minimum sliding distance is 5 vp, the recognition is successful. ### How to Use 1. Obtain local and network videos. 2. Play videos by using AVPlayer. 3. Use gestures to adjust the screen brightness and video playback volume. ### Constraints 1. The sample is only supported on Huawei phones with standard systems. 2. HarmonyOS: HarmonyOS NEXT Developer Beta1 or later. 3. DevEco Studio: DevEco Studio NEXT Developer Beta1 or later. 4. HarmonyOS SDK: HarmonyOS NEXT Developer Beta1 SDK or later.