GGitee6.0.2
c129ca38创建于 1月12日历史提交

Video Player

Introduction

Based on HarmonyOS AVPlayer, learn how to implement video playback.

image

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 5.0.5 Release or later.
  3. DevEco Studio: DevEco Studio 6.0.2 Release or later.
  4. HarmonyOS SDK: HarmonyOS 6.0.2 Release SDK or later.