bgMusic.onTimeUpdate(() => {
console.log(bgMusic.duration);
const mate = (bgMusic.currentTime / bgMusic.duration) * 100;
console.log(mate);
const currentPlayNode = _getCurrentPlayNode();
console.log(currentPlayNode);
currentPlayNode.setData({
offset: mate
});
});
就这段代码,开发工具上运行OK,但是在真机iOS上,duration一直是输出0?
是bug么
安卓是正常的吗
楼主,请问解决了吗?遇到同样的问题,搞了两三天了都解决不了?求救啊