提交 dda1bde6 编写于 作者: DCloud-yyl's avatar DCloud-yyl

临时解决音频设置playbackRate不生效的问题

(cherry picked from commit 622baff7)
上级 e7d992b8
...@@ -154,7 +154,6 @@ ...@@ -154,7 +154,6 @@
this._isChanging = true; this._isChanging = true;
}, },
onchange(e : UniSliderChangeEvent) { onchange(e : UniSliderChangeEvent) {
let pos = e.detail.value; let pos = e.detail.value;
console.log('pos', pos); console.log('pos', pos);
this._audioContext!.seek(pos); this._audioContext!.seek(pos);
...@@ -277,7 +276,7 @@ ...@@ -277,7 +276,7 @@
playbackRateChange(e : UniRadioGroupChangeEvent) { playbackRateChange(e : UniRadioGroupChangeEvent) {
if (this._audioContext != null && this.isPlaying) { if (this._audioContext != null && this.isPlaying) {
console.log(parseFloat(e.detail.value)) console.log(parseFloat(e.detail.value))
this._audioContext!.playbackRate = parseFloat(e.detail.value) this._audioContext!.playbackRate = parseFloat(e.detail.value).toDouble()
} }
}, },
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册