收藏
回答

iOS预览本地视频文件无法播放,返回 errMsg:"previewMedia:ok"?

小程序通过相册选择完视频,安卓预览正常,ios预览previewMedia预览无反应,看进度条显示0s视频,无法正常预览,安卓无此问题

回答关注问题邀请回答
收藏

1 个回答

  • 😶
    😶
    2021-01-28

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2021-01-28
    有用
    回复 6
    • Kelvin
      Kelvin
      2021-01-28
      代码片段无法真机预览,你就随便创建个demo,然后用 wx.chooseMedia({
            count: 1,
            mediaType: ['video'],
            sizeType: ['compressed'],
            sourceType: ['album', 'camera'],
            maxDuration: 60,
            camera: 'back',
            success(res) {
              console.log(res)
              console.log(res.tempFiles.length)
              var imagePath = res.tempFiles[0].tempFilePath
              _this.setData({
                videoUrl:imagePath
              })
            }
          }),,,,,选择一个视频,接着用,wx.previewMedia({
            sources: [
              {
                url: this.data.videoUrl,
                type: 'video'
              }
            ],
            showmenu:false
            ,
            complete: console.log
          }),,,,,预览视频,IPhoneXR , IPhone8,点击中间播放按钮无反应,然后轻点看进度条是0S,无法播放
      2021-01-28
      回复
    • Kelvin
      Kelvin
      2021-01-28
      日志显示: errMsg:"previewMedia:ok"
      2021-01-28
      回复
    • 小白•蔡
      小白•蔡
      2021-02-06
      遇到一样的问题
      2021-02-06
      回复
    • 小白•蔡
      小白•蔡
      2021-02-06
      有maxDuration参数时 iphone XS 不能点击
      2021-02-06
      回复
    • dejavu🐼
      dejavu🐼
      2021-04-28回复Kelvin
      老哥请问你现在用什么办法解决这个问题的
      2021-04-28
      回复
    查看更多(1)
登录 后发表内容
问题标签