choseVideo() {
wx.chooseMedia({
count: 1,
mediaType: ['video'],
sourceType: ['album', 'camera'],
maxDuration: 20,
success: (res) => {
this.setData({
videoSrc: res.tempFiles[0].tempFilePath,
videoImageurl: res.tempFiles[0].thumbTempFilePath
})
console.log(res)
this.uploadFile(res.tempFiles[0].tempFilePath).then((info) => {
const res = JSON.parse(info.data)
this.setData({
videoUrl: res.data.fids
})
})
this.videoOverView()
}
})
},
videoOverView() {
const videoContext = wx.createVideoContext('my_video', this)
videoContext.requestFullScreen({
direction: 0
})
videoContext.play()
},
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)