Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Docs
提交
50f26197
D
Docs
项目概览
OpenHarmony
/
Docs
大约 1 年 前同步成功
通知
159
Star
292
Fork
28
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
Docs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
50f26197
编写于
5月 26, 2022
作者:
O
openharmony_ci
提交者:
Gitee
5月 26, 2022
浏览文件
操作
浏览文件
下载
差异文件
!4391 【轻量级 PR】:【OpenHarmony开源贡献者计划2022】sucess改正为success
Merge pull request !4391 from IwoFms/master
上级
7dcfda0f
b0ae9205
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
24 addition
and
24 deletion
+24
-24
en/application-dev/media/audio-playback.md
en/application-dev/media/audio-playback.md
+5
-5
en/application-dev/media/video-playback.md
en/application-dev/media/video-playback.md
+5
-5
en/application-dev/reference/apis/js-apis-media.md
en/application-dev/reference/apis/js-apis-media.md
+1
-1
en/device-dev/kernel/kernel-mini-basic-soft.md
en/device-dev/kernel/kernel-mini-basic-soft.md
+1
-1
zh-cn/application-dev/media/audio-playback.md
zh-cn/application-dev/media/audio-playback.md
+5
-5
zh-cn/application-dev/media/video-playback.md
zh-cn/application-dev/media/video-playback.md
+5
-5
zh-cn/application-dev/reference/apis/js-apis-media.md
zh-cn/application-dev/reference/apis/js-apis-media.md
+1
-1
zh-cn/device-dev/kernel/kernel-mini-basic-soft.md
zh-cn/device-dev/kernel/kernel-mini-basic-soft.md
+1
-1
未找到文件。
en/application-dev/media/audio-playback.md
浏览文件 @
50f26197
...
...
@@ -101,7 +101,7 @@ async function audioPlayerDemo() {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -141,7 +141,7 @@ export class AudioDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -187,7 +187,7 @@ export class AudioDemo {
let
nextpath
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/02.mp3
'
;
await
fileIO
.
open
(
nextpath
).
then
((
fdNumber
)
=>
{
nextFdPath
=
nextFdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
nextFdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
nextFdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -204,7 +204,7 @@ export class AudioDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -241,7 +241,7 @@ export class AudioDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
en/application-dev/media/video-playback.md
浏览文件 @
50f26197
...
...
@@ -82,7 +82,7 @@ export class VideoPlayerDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -211,7 +211,7 @@ export class VideoPlayerDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -299,7 +299,7 @@ export class VideoPlayerDemo {
let
nextPath
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/MP4_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -341,7 +341,7 @@ export class VideoPlayerDemo {
fdPath
=
'
fd://
'
await
fileIO
.
open
(
nextPath
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -409,7 +409,7 @@ export class VideoPlayerDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
en/application-dev/reference/apis/js-apis-media.md
浏览文件 @
50f26197
...
...
@@ -576,7 +576,7 @@ let fdPath = 'fd://'
let
path
=
'
/data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3
'
;
fileIO
.
open
(
path
).
then
(
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
en/device-dev/kernel/kernel-mini-basic-soft.md
浏览文件 @
50f26197
...
...
@@ -247,7 +247,7 @@ start Timer1 success
tickCount=798
stop Timer1 success
g_timerCount1=1, tick_last1=1208
delete Timer1 sucess
delete Timer1 suc
c
ess
start Timer2
g_timerCount2=1 tick_last2=1313
g_timerCount2=2 tick_last2=1413
...
...
zh-cn/application-dev/media/audio-playback.md
浏览文件 @
50f26197
...
...
@@ -101,7 +101,7 @@ async function audioPlayerDemo() {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -141,7 +141,7 @@ export class AudioDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -187,7 +187,7 @@ export class AudioDemo {
let
nextpath
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/02.mp3
'
;
await
fileIO
.
open
(
nextpath
).
then
((
fdNumber
)
=>
{
nextFdPath
=
nextFdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
nextFdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
nextFdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -204,7 +204,7 @@ export class AudioDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -241,7 +241,7 @@ export class AudioDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.audio.audioplayer/ohos.acts.multimedia.audio.audioplayer/assets/entry/resources/rawfile/01.mp3
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
zh-cn/application-dev/media/video-playback.md
浏览文件 @
50f26197
...
...
@@ -82,7 +82,7 @@ export class VideoPlayerDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -211,7 +211,7 @@ export class VideoPlayerDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -299,7 +299,7 @@ export class VideoPlayerDemo {
let
nextPath
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/MP4_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -341,7 +341,7 @@ export class VideoPlayerDemo {
fdPath
=
'
fd://
'
await
fileIO
.
open
(
nextPath
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
@@ -409,7 +409,7 @@ export class VideoPlayerDemo {
let
path
=
'
/data/app/el1/bundle/public/ohos.acts.multimedia.video.videoplayer/ohos.acts.multimedia.video.videoplayer/assets/entry/resources/rawfile/H264_AAC.mp4
'
;
await
fileIO
.
open
(
path
).
then
((
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
c
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
zh-cn/application-dev/reference/apis/js-apis-media.md
浏览文件 @
50f26197
...
...
@@ -576,7 +576,7 @@ let fdPath = 'fd://'
let
path
=
'
/data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3
'
;
fileIO
.
open
(
path
).
then
(
fdNumber
)
=>
{
fdPath
=
fdPath
+
''
+
fdNumber
;
console
.
info
(
'
open fd sucess fd is
'
+
fdPath
);
console
.
info
(
'
open fd suc
cs
ess fd is
'
+
fdPath
);
},
(
err
)
=>
{
console
.
info
(
'
open fd failed err is
'
+
err
);
}).
catch
((
err
)
=>
{
...
...
zh-cn/device-dev/kernel/kernel-mini-basic-soft.md
浏览文件 @
50f26197
...
...
@@ -234,7 +234,7 @@ start Timer1 success
tickCount=798
stop Timer1 success
g_timerCount1=1, tick_last1=1208
delete Timer1 sucess
delete Timer1 suc
c
ess
start Timer2
g_timerCount2=1 tick_last2=1313
g_timerCount2=2 tick_last2=1413
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录