收藏
回答

wx.createVideo 在调试库3.2.5以下才有用 以上就没用

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小游戏 Bug wx.createVideo 工具 8.0.48 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)

如题 
回答关注问题邀请回答
收藏
登录 后发表内容