“2b795845ad450b74666ee635a81e4c916c6ea2b5”上不存在“doc/git@gitcode.net:Crayonxin2000/Paddle.git”
未验证 提交 efe3f049 编写于 作者: O openharmony_ci 提交者: Gitee

!14156 翻译完成:13152 Corrected the spelling errors of avsession documents (cherry-pick 到beta5)

Merge pull request !14156 from wusongqing/cherry-pick-1675220274
...@@ -187,7 +187,7 @@ currentSession.on('playNext', () => { ...@@ -187,7 +187,7 @@ currentSession.on('playNext', () => {
}); });
console.log ("Call AudioPlayer.play."); console.log ("Call AudioPlayer.play.");
// Set the playback state information. // Set the playback state information.
let time = (new Data()).getTime(); let time = (new Date()).getTime();
currentSession.setAVPlaybackState({state: avSession.PlaybackState.PLAYBACK_STATE_PLAY, position: {elapsedTime: 0, updateTime: time}, bufferedTime:2000}).then(() => { currentSession.setAVPlaybackState({state: avSession.PlaybackState.PLAYBACK_STATE_PLAY, position: {elapsedTime: 0, updateTime: time}, bufferedTime:2000}).then(() => {
console.info('setAVPlaybackState successfully'); console.info('setAVPlaybackState successfully');
}).catch((err) => { }).catch((err) => {
...@@ -282,7 +282,7 @@ currentSession.off('outputDeviceChange'); ...@@ -282,7 +282,7 @@ currentSession.off('outputDeviceChange');
// Deactivate the session and destroy the object. // Deactivate the session and destroy the object.
currentSession.deactivate().then(() => { currentSession.deactivate().then(() => {
currentSession.destory(); currentSession.destroy();
}); });
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册