react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

Android Recorded Video first frame is black

Open codal-mpawar opened this issue 11 months ago • 1 comments

Version

Tell us which versions you are using:

  • react-native-image-crop-picker v0.40.3
  • react-native v0.72.5

Platform

One plus

  • Android

Expected behavior

  1. When we recorded the video from Camera the captured video first frame was not black screen.

Actual behavior

  1. When we recorded the video from Camera the captured video first frame was a black screen.

Code base

export const OpenCamera = async (type, success, failure) => {
  try {
    const response = await ImagePicker.openCamera({
      mediaType: 'video',
    }).catch(() => failure());
    response.uri = response.path;
    response.type = response.mime;
    response.fileName = response.filename;
    success(response);
  } catch (error) {
    failure();
  }
};

Steps to reproduce

  1. Open Camera

  2. Record Video

  3. Press OK. and see in video player

Attachments

https://github.com/ivpusic/react-native-image-crop-picker/assets/46340921/5152c8b6-caa5-43a7-8acd-239aee3de8ac

Love react-native-image-crop-picker? Please consider supporting our collective: 👉 https://opencollective.com/react-native-image-crop-picker/donate

codal-mpawar avatar Mar 07 '24 09:03 codal-mpawar

@ivpusic Can you please check

codal-mpawar avatar Mar 07 '24 09:03 codal-mpawar