为什么后台返的录音在苹果机不能播放,是否是官方bug,还是链接原因?
用官方的audio的demo,只是改了播放链接,在安卓手机上有声音,但是在苹果手机上就是有的有声音有的没有, 提供没有声音的链接: 链接一: https://newtest.huolail.com//Public/Admin/Upload_audio/2018-07-07/5b4078538ef68.mp3 链接二: https://newtest.huolail.com//Public/Admin/Upload_audio/2018-07-07/5b4077f7ca735.mp3 有声音的链接: http://newtest.huolail.com/Public/Admin/Upload_audio/2018-05-17/5afcf6c283dce.mp3 [代码]<audio poster="{{poster}}" name="{{name}}" author="{{author}}" src="{{src}}" id="myAudio" controls loop></audio>[代码][代码]Page({
onReady: function (e) { // 使用 wx.createAudioContext 获取 audio 上下文 context
this.audioCtx = wx.createAudioContext('myAudio')
},
data: {
poster: 'http://y.gtimg.cn/music/photo_new/T002R300x300M000003rsKF44GyaSk.jpg?max_age=2592000',
name: '此时此刻',
author: '许巍',
src: 'http://ws.stream.qqmusic.qq.com/M500001VfvsJ21xFqb.mp3?guid=ffffffff82def4af4b12b3cd9337d5e7&uin=346897220&vkey=6292F51E1E384E06DCBDC9AB7C49FD713D632D313AC4858BACB8DDD29067D3C601481D36E62053BF8DFEAF74C0A5CCFADD6471160CAF3E6A&fromtag=46',
},
audioPlay: function () { this.audioCtx.play()
},[代码]