• Home
Name Date Size #Lines LOC

..--

entry/12-May-2024-737621

screenshots/device/12-May-2024-

.gitignoreD12-May-2024121 88

README.mdD12-May-2024504 168

README_zh.mdD12-May-2024854 2714

build-profile.json5D12-May-20241 KiB4341

hvigorfile.jsD12-May-2024174 21

package.jsonD12-May-2024377 1918

README.md

1# JS-based Audio Playback and Management
2
3### Introduction
4
5This sample shows how to use the JS-based audio playback feature and set the volume.
6
7### Usage
8
91. Touch the **Play**, **Previous**, **Next**, and **Pause** buttons to try the corresponding functions.
10
112. Touch the **Volume** button to display the audio management screen. Drag the volume bar to adjust the volume. Touch **Close** to close the audio management screen.
12
13### Limitations
14
15This sample can only be run on standard-system devices.
16

README_zh.md

1# 音频播放和管理
2
3### 简介
4
5本示例展示了JS音频播放的使用方法,以及音频的音量大小设置。实现效果如下:
6
7![](screenshots/device/audioplayer.png)
8
9### 相关概念
10
11音频管理:音频管理提供管理音频的一些基础能力,包括对音频音量、音频设备的管理,以及对音频数据的采集和渲染等。
12
13### 相关权限
14
15不涉及。
16
17### 使用说明
18
191.分别点击界面**播放**、**上一个**、**下一个**、**暂停**按钮,实现相应的功能。
20
212.点击**音量键**,弹出音频管理界面,滑动音量条,设置音量大小;点击**close**,关闭音频管理界面。
22
23### 约束与限制
24
251.本示例仅支持在标准系统上运行。
26
272.本示例需要使用DevEco Studio 3.0 Beta4 (Build Version: 3.0.0.992, built on July 14, 2022)才可编译运行。