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)
如题