sound = uni.createInnerAudioContext();
sound.src = '../../static/audio/sms.mp3';
sound.autoplay=true;
bgm = uni.createInnerAudioContext();
bgm.src = '../../static/audio/bgm.mp3';
bgm.loop=true;
bgm.autoplay=true;
bgm.pause();
IOS h5
bgm 可以播放 sound不会播放 设置 autoplay=true; 后 会除非 canplay 但是不会 onplay 听着也没声音 点击image的函数调用的
0 个回复