收藏
回答

华为P50,P50PRO调用camera组件录像帧率只有10帧,怎么解决?

realRecordVideo() {

    console.log("======真正开始录制行为,尝试开启相机======")

    this.setData({

      isRealRecording: true,

      probability: 0

    })

    const that = this

    this.data.ctx.startRecord({

      timeoutCallback: (res) => {

        //console.log('录制超时自动结束')

      },

      timeout: '25', //时长

      success: (res) => {

        console.log("======开启相机成功=====")

        that.setData({

          isRecording: true,

        })

        if (!that.data.startCounting) {

          that.setData({

            startCounting: true,

            startTimestamp: new Date().getTime()

          })

          that.startSetOverTime()

        }

        that.startSetTimeout()

      },

微信版本8.0.50及以后的版本,发现在华为和荣耀部分机型上,调用camera组件录制视频帧率过低。2月12日提出的问题,至今没有解决。

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