手机上播放云端音乐,第一次点击不播或播上次请求的,点一遍,再点播放就没问题,是什么情况?
发布于 3 年前 作者 guiying48 5484 次浏览 来自 问答

<view capture-bind:longpress="startRecord" mut-bind:touchend="stopRecord" bindtap="playVoice" data-id="{{item._id}}" data-voice="{{item.voice}}">

2 回复

playVoice: function (e) {

const voice = e.currentTarget.dataset.voice

voicePlayer.src = voice

voicePlayer.play()

},

回到顶部