admin管理员组

文章数量:1123137

I'm getting the following error erratically when I seek with the range input in a React app, which renders the input unusable until refresh:

PIPELINE_ERROR_READ: FFmpegDemuxer: demuxer seek failed

The only occurrence of this error I can find online is in the Chromium source code. <-- linked file goes directly to the line where the error exists.

I can't replicate the error in Firefox.

<input
  type="range"
  max={duration}
  value={progress}
  step={0.01}
  onChange={handleScrub}
  disabled={isDisabled}
/>

Nothing out of the ordinary is going on with the input.

const handleScrub = (event) => {
  const newTime = event.target.valueAsNumber

  setProgress(newTime)
  audioRef.current.currentTime = newTime
}

It happens if you click around really fast on the range.

本文标签: javascriptRange input breaks ffmpeg when seeking in ChromiumStack Overflow