uniapp 音频快进快退在网页中可以但是在微信开发者工具报错

快进快退

fast() {
				this.innerAudioContext.pause()
				this.innerAudioContext.currentTime+=5;
				this.percent=this.innerAudioContext.currentTime
				this.ifplay = false;
				this.innerAudioContext.play()
			},
			back() {
				this.innerAudioContext.pause()
				this.innerAudioContext.currentTime-=5;
				this.percent=this.innerAudioContext.currentTime
				this.ifplay = false;
				this.innerAudioContext.play()
			},

报错内容

VM83 WAService.js:2 TypeError: Cannot set property currentTime of #<e> which has only a getter
    at Function.<anonymous> (index.js?t=wechat&s=1622598119227&v=04b7b676f32227af3d530a24249d99f3:463)
    at :24954/appservice/<audioContext.onplay callback function>
    at VM83 WAService.js:2
    at c.r (VM83 WAService.js:2)
    at c.emit (VM83 WAService.js:2)
    at VM83 WAService.js:2
    at VM83 WAService.js:2
    at c (VM8 asdebug.js:1)
    at r.<anonymous> (VM8 asdebug.js:1)
    at r.i.emit (VM8 asdebug.js:1)(env: Windows,mp,1.05.2105170; lib: 2.17.0)

currentTime 是只读属性,无法设置值

改成这样之后只有暂停的时候可以快进,(startTime不是只读属性)

fast() {
				this.innerAudioContext.pause()
				this.innerAudioContext.startTime = this.percent+5;
				this.percent = this.innerAudioContext.startTime
				console.log(this.innerAudioContext.startTime)
				this.ifplay = false;
				this.innerAudioContext.play()
			},