未验证 提交 b2faa229 编写于 作者: Z zengyawen 提交者: Gitee

add sample

Signed-off-by: Nzengyawen <zengyawen1@huawei.com>
上级 6044e90f
...@@ -256,4 +256,10 @@ await fileIO.open(path).then(fdNumber) => { ...@@ -256,4 +256,10 @@ await fileIO.open(path).then(fdNumber) => {
audioPlayer.src = fdPath; //设置src属性,并触发'dataLoad'事件回调 audioPlayer.src = fdPath; //设置src属性,并触发'dataLoad'事件回调
audioPlayer.loop = true; //设置循环播放属性 audioPlayer.loop = true; //设置循环播放属性
``` ```
\ No newline at end of file
## 相关实例
针对音频播放开发,有以下相关实例可供参考:
- [`JsDistributedMusicPlayer`:分布式音乐播放(JS)(API7)](https://gitee.com/openharmony/app_samples/tree/master/ability/JsDistributedMusicPlayer)
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册