title: How to get video bytes from react-video-recorder
body: <p>I'm saving the video bytes from react-video-recorder, however, the video isn't a valid webm video file. Here is a piece of my code:</p>
  <p>const onVideoChange = (video) =&gt; {
  video.arrayBuffer().then((arrayBuffer) =&gt; {
  dispatch(
  submitVideo(
  [
  {
  name: &quot;video.webm&quot;,
  bytes: new Uint8Array(arrayBuffer),
  },
  ],
  submitVideoCallback
  )
  );
  });
  };</p>
  <p>on renders:
  VideoRecorder onRecordingComplete={onVideoChange}</p>
  <p>When I receive the video bytes on the back-end and save the video file like video.webm, VLC isn't able to play it.</p>
  <p>What I'm doing wrong?</p>
  <p>Thanks
  Sergio Stateri Junior.</p>