收藏
回答

Worker.getCameraFrameData()获取到的ArrayBuffer长度为0?

我在按照官方教程写用于获取实时帧数据的worker文件demo,获取到的ArrayBuffer长度为0

运行环境:iphone8p,ios16

//worker.js
console.log = function(...args{
  worker.postMessage({
    type"log",
    msg: args
  });
}
const frame = worker.getCameraFrameData();
console.log("frame---", frame)

只能获取到

Array(2) {0: "frame---", 1: ArrayBuffer(0)}


最后一次编辑于  2024-09-20
回答关注问题邀请回答
收藏
登录 后发表内容