https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/MediaContainer.html
根据客户需求,想做一个小卖部收银播报的小程序提示,准备提取音轨,success方法总是不回调
请求大神帮助
提取音轨局部代码如下:
let that = this
let _src = '/audio/bai.mp3'
that.data.mc = wx.createMediaContainer();
that.data.mc.extractDataSource({
source: _src
success: (mt) => {
that.data.mtrack['bai'] = mt.tracks[0]
},
fail: (e)=>{
console.log(e)
}
})
}
})
文件布局如下:
音频文件信息如下: