• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#  AVPlayer
2
3### Introduction
4
5This sample shows the basic functions of the **AVPlayer** component,how to control the related capabilities of the playback state. Including audio playback, video playback, network playback, etc.
6
71.Enter the homepage and click the mode to be played.
8
92.Click on the preset **video** or **audio** you want to play.
10
113.Enter the play interface and click the play button to start playing.
12
134.Click the buttons such as **pause**, switch video, **loop** playback, and double **speed** to control the playback operation
14
15### Display Effect
16
17<img src="screenshots\device\home.png" alt="home" style="zoom:12%;" /> <img src="screenshots\device\list.png" alt="list" style="zoom:12%;" /> <img src="screenshots\device\play.png" alt="play" style="zoom:12%;" />
18
19### Required Permissions
20
21This sample requires configuring the following permissions in module. json5:
22
23Write media file permissions:ohos.permission.WRITE_MEDIA
24
25Read media file permissions: ohos.permission.READ_MEDIA
26
27### Constraints
28
291.This sample only supports running on a standard system. Supported devices: NOAH/WGR/RK3568.
30
312.This sample only supports the API version 9 SDK.
32
333.This sample requires DevEco Studio 3.1 (Build Version: 3.0.1.200, build on Library 16, 2023) to be compiled and run.
34
35
36
37