From cb1a1e38b2469fefe7be9f56fd0a6227ff83e1be Mon Sep 17 00:00:00 2001 From: hwgaizw Date: Mon, 28 Feb 2022 21:12:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=96=99=E4=BF=AE=E6=94=B9=20Signed-o?= =?UTF-8?q?ff-by:=20hwgaizw=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hwgaizw Change-Id: I0b77dfe7530bb2324927715afd520d6751f2a922 --- zh-cn/application-dev/media/audio-playback.md | 8 ++++---- zh-cn/application-dev/media/video-playback.md | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/zh-cn/application-dev/media/audio-playback.md b/zh-cn/application-dev/media/audio-playback.md index a3149c3573..5cc15af551 100644 --- a/zh-cn/application-dev/media/audio-playback.md +++ b/zh-cn/application-dev/media/audio-playback.md @@ -86,7 +86,7 @@ SetCallBack(audioPlayer); //设置事件回调 let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); @@ -149,7 +149,7 @@ SetCallBack(audioPlayer); //设置事件回调 let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); @@ -187,7 +187,7 @@ SetCallBack(audioPlayer); //设置事件回调 let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); @@ -241,7 +241,7 @@ SetCallBack(audioPlayer); //设置事件回调 let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp3'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); diff --git a/zh-cn/application-dev/media/video-playback.md b/zh-cn/application-dev/media/video-playback.md index 4b7bec8c8b..708a3e20e8 100644 --- a/zh-cn/application-dev/media/video-playback.md +++ b/zh-cn/application-dev/media/video-playback.md @@ -82,7 +82,7 @@ await media.createVideoPlayer().then((video) => { let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp4'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); @@ -224,7 +224,7 @@ SetCallBack(videoPlayer); let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp4'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); @@ -310,7 +310,7 @@ SetCallBack(videoPlayer); let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp4'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); @@ -345,7 +345,7 @@ await videoPlayer.reset().then(() => { let fdNextPath = 'fd://' let nextPath = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/02.mp4'; await fileIO.open(nextPath).then(fdNumber) => { - fdNextPath = fdNextPath + " + fdNumber; + fdNextPath = fdNextPath + '' + fdNumber; console.info('open fd sucess fd is' + fdNextPath); }, (err) => { console.info('open fd failed err is' + err); @@ -431,7 +431,7 @@ SetCallBack(videoPlayer); let fdPath = 'fd://' let path = 'data/accounts/account_0/appdata/ohos.xxx.xxx.xxx/01.mp4'; await fileIO.open(path).then(fdNumber) => { - fdPath = fdPath + " + fdNumber; + fdPath = fdPath + '' + fdNumber; console.info('open fd sucess fd is' + fdPath); }, (err) => { console.info('open fd failed err is' + err); -- GitLab