Upload video to firebase

I am trying to upload videos to Firebase Storage using Angular2Fire and the Media Capture plugin. Everything is working as expected, but when I try to upload videos on a real Android device, the videos are being uploaded as an unknown type and are not functioning properly. Can anyone help me with this issue?


  recordVideo() {
    this.cam.captureVideo().then(
      (data: MediaFile[]) => {
        if (data.length > 0) {
          let url = Capacitor.convertFileSrc(data[0].fullPath);
          fetch(url).then(res => res.blob()).then(blob => {
          const fileRef = this.afstorage.upload(`videos/${Date.now()}.mp4`, blob)
          fileRef.then((res) => {
            console.log(res);
            this.api.loading('Upload Complete');
          })
        });
        }
      },
      (err: CaptureError) => console.error(err)
    );
  }


ios working fine without any issue .

Any suggestion expecting?