diff --git a/README.md b/README.md deleted file mode 120000 index 68ae9acea30615939d91f78292a22fada92526f8..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,7 +0,0 @@ -audioplayers -============== - -原始仓来源:https://github.com/bluefireteam/audioplayers - -## 项目介绍: -一个允许同时播放多个音频文件的Flutter插件。 \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..07b48e8e7d8b5186a18a2bd7258e5ed70335331d --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +audioplayers +============== + +原始仓来源:https://github.com/bluefireteam/audioplayers + +## 项目介绍: +一个允许同时播放多个音频文件的Flutter插件。 +## ohos demo 使用 +ohos 侧 demo 位于 /packages/audioplayers/example 下,与 android、ios 使用同一套 demo + +
tips:
+播放器默认后台播放能力为关闭状态,若需要开启后台播放功能,需要对 stayAwake 参数进行设置。 + +在demo中体现为,需要在Ctx标签保持 Stay Awake 参数为勾选状态,并点击 Local 按钮。对参数进行设置。 +操作示例: + +1、Src标签:点击播放 "Assets 2";回到桌面或熄屏后音乐停止。 + +2、Src标签:点击播放 "Assets 2";Ctx-Generic Flags 勾选 Stay Awake 参数后点击 Local 按钮;回到桌面或熄屏后音乐保持播放。 \ No newline at end of file diff --git a/README_OpenHarmony.md b/README_OpenHarmony.md index 68ae9acea30615939d91f78292a22fada92526f8..07b48e8e7d8b5186a18a2bd7258e5ed70335331d 100644 --- a/README_OpenHarmony.md +++ b/README_OpenHarmony.md @@ -4,4 +4,16 @@ audioplayers 原始仓来源:https://github.com/bluefireteam/audioplayers ## 项目介绍: -一个允许同时播放多个音频文件的Flutter插件。 \ No newline at end of file +一个允许同时播放多个音频文件的Flutter插件。 +## ohos demo 使用 +ohos 侧 demo 位于 /packages/audioplayers/example 下,与 android、ios 使用同一套 demo + +
tips:
+播放器默认后台播放能力为关闭状态,若需要开启后台播放功能,需要对 stayAwake 参数进行设置。 + +在demo中体现为,需要在Ctx标签保持 Stay Awake 参数为勾选状态,并点击 Local 按钮。对参数进行设置。 +操作示例: + +1、Src标签:点击播放 "Assets 2";回到桌面或熄屏后音乐停止。 + +2、Src标签:点击播放 "Assets 2";Ctx-Generic Flags 勾选 Stay Awake 参数后点击 Local 按钮;回到桌面或熄屏后音乐保持播放。 \ No newline at end of file