ivpusic / react-native-image-crop-picker

iOS/Android image picker with support for camera, video, configurable compression, multiple images and cropping
MIT License
6.14k stars 1.56k forks source link

Android Recorded Video first frame is black #2032

Open codal-mpawar opened 8 months ago

codal-mpawar commented 8 months ago

Version

Tell us which versions you are using:

Platform

One plus

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 commented 8 months ago

@ivpusic Can you please check