const innerAudioContext = tt.createInnerAudioContext();
innerAudioContext.autoplay = true;
innerAudioContext.src = "https://admin.limingbt.top/sanfat_evaluation/public/upload/audio/2022/05/20220518102755_50074.mp3";
innerAudioContext.onPlay(() => {
console.log("开始播放");
});
innerAudioContext.onError(error => {
console.log(error);
});
使用这个方法,在字节跳动开发者工具能播放,meta30,40也可以,但是荣耀50,60,还有华为nova系列都没有声音,请问哪位大神知道怎么回事!
0 个回复