收藏
回答

VideoDecoder 支持循环和倍数播放吗?

3.0.0以上基础库支持新增的在API中没有体现

on('frame') 何时会调用是不是每一帧都调用 和 getFrameData 有什么区别

createVideoDecoder 传入的type是什么含义目前体验比使用2.x的库要流畅,且会在后台播放音频,

自带的api是否支持循环和倍数播放?

救救孩子

  videoDecoder.on('frame'(res) => {
    closeFrame();
    frameData = res;
    console.log("videoDecoder frame", res);
    currentTime = res.pts / 1000// 当前播放的进度
  });
    videoDecoder = wx.createVideoDecoder({
    type"wemedia"// 3.0.0以上基础库支持传入type参数
  });
  const playVideo = () => {
    if (!videoDecoder) {
      return;
    }
    if (isPaused) {
      isPaused = false;
      videoDecoder.wait(false);
    } else {
      videoDecoder.start(startOption);
    }
  }



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

2 个回答

  • kele
    kele
    2025-09-30

    当前想用seek跳转到某个时间,跳转,但是设置0无效,设置1-4000+都会跳转到开头,5000+跳转到5s位置

    2025-09-30
    有用
    回复
  • 智能回答 智能回答 本次回答由AI生成
    2025-09-29
    有用
登录 后发表内容