wx.getVideoInfo调用不了吗?

小程序 文章 2020-08-31 18:01 784 0 全屏看文

AI助手支持GPT4.0

wx.getVideoInfo调用不了吗?Can't wx.getVideoInfo be called?

wx.getVideoInfo调用不了吗?
框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug getVideoInfo 工具 7.0.13 2.12.2

https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.getVideoInfo.html

Framework type problem type API / component name terminal type wechat version basic library version applet bug getvideoinfo tool 7.0.13 2.12.2 https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.getVideoInfo.html

回答:

stop eating:

没说支持网络地址



胖帅:

wx.getVideoInfo({

      src: 'https://pic.motortime.com/video/2.mp4',

      success(res) {

        console.log(res)

        var video_time = res.data.duration

      }

    })


微喵网络:

胖帅:已经设置了2.12.2的版本库

-EOF-

AI助手支持GPT4.0