diff --git a/zh-cn/application-dev/media/using-avplayer-for-playback.md b/zh-cn/application-dev/media/using-avplayer-for-playback.md index d45d2e49d42d1565ec9fe66da1415aa85b704366..95edec4d34a45afc308a10cc216ae38e6914b011 100644 --- a/zh-cn/application-dev/media/using-avplayer-for-playback.md +++ b/zh-cn/application-dev/media/using-avplayer-for-playback.md @@ -104,7 +104,7 @@ export class AVPlayerDemo { case 'playing': // play成功调用后触发该状态机上报 console.info('AVPlayer state playing called.'); if (this.count !== 0) { - if (this.isSeek === true) { + if (this.isSeek) { console.info('AVPlayer start to seek.'); this.avPlayer.seek(this.avPlayer.duration); //seek到音频末尾 } else { diff --git a/zh-cn/application-dev/media/video-playback.md b/zh-cn/application-dev/media/video-playback.md index c0019ca92cbbf9d7057068b140fffc7a2f6991e8..da324f48191e3ca2a66506bb3650363ad56255ab 100644 --- a/zh-cn/application-dev/media/video-playback.md +++ b/zh-cn/application-dev/media/video-playback.md @@ -115,7 +115,7 @@ export class AVPlayerDemo { case 'playing': // play成功调用后触发该状态机上报 console.info('AVPlayer state playing called.'); if (this.count !== 0) { - if (this.isSeek === true) { + if (this.isSeek) { console.info('AVPlayer start to seek.'); this.avPlayer.seek(this.avPlayer.duration); //seek到视频末尾 } else {