做背景音乐从指定位置开始播放:
Laya.SoundManager.playSound(strSoundPath, 1, null,null,28);
在ide正常,发布微信小程序,在工具里边还是从头开始。
手机上更是如此。
使用微信api:
var bgm = wx.createInnerAudioContext()
bgm.autoplay = true
bgm.loop = false
bgm.src = 'audio/track.mp3'
bgm.seek(28)
bgm.play()
安卓正常,ios无效