let src = 'https://acsp-static.sit.sf-express.com/assets-web/images/annual/2022/video.mp4';
let info = wx.getSystemInfoSync();
let video = wx.createVideo({
x: 0,
y: 0,
width: info.windowWidth,
height: info.windowHeight,
autoplay: false,
controls: false,
showCenterPlayBtn: false,
enableProgressGesture: false,
objectFit: 'cover',
src: src,
});
video.play();
video.onWaiting(()=>{
console.log("onWaiting");
});
video.onPlay(()=>{
console.log("开始播放!");
});
video.onError((msg)=>{
console.log("出错了!",msg);
});
视频播放不了,也不能监听
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
怎么在微信小游戏上有读取视频中每一帧转成图片的方法吗