diff --git a/zh-cn/application-dev/media/avsession-guidelines.md b/zh-cn/application-dev/media/avsession-guidelines.md index 41ab8c7dd444713cfa0f5459cf8064a2cf57bd46..404bd2140295bf6e28f5b7c09fbcb13daae213ea 100644 --- a/zh-cn/application-dev/media/avsession-guidelines.md +++ b/zh-cn/application-dev/media/avsession-guidelines.md @@ -187,7 +187,7 @@ currentSession.on('playNext', () => { }); console.log("调用AudioPlayer.play方法"); // 设置播放状态 - 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(() => { console.info('setAVPlaybackState successfully'); }).catch((err) => { @@ -282,7 +282,7 @@ currentSession.off('outputDeviceChange'); // 去激活session并销毁对象 currentSession.deactivate().then(() => { - currentSession.destory(); + currentSession.destroy(); }); ```