开发者工具里调用createVideo一直黑屏,确实按你说的把调试基础库换成3.2.5就正常播放了
wx.createVideo 在调试库3.2.5以下才有用 以上就没用console.log("create createVideo") let video = wx.createVideo({ x: 0, y: 0, width: 375, height: 667, src: 'https://mykx-cdn.dskystudio.com/CG.mp4', initialTime: 0, objectFit: 'cover', controls: true, autoplay: false, loop:false, showCenterPlayBtn: true, enableProgressGesture: true }); setTimeout(()=>{ video.play().then(res=>{ console.log('==========',res); }) },1000) 如题
02-08