Skip to content

Android: CameraRoll.getPhotos({assetType: 'Videos'}) doesn't return videos #13147

Closed

Description

@JBerendes

Description

The goal is to have my own video picker working correctly on both platforms.
On Android: When the picker opens it returns images but the images are not videos, they are simply photos and not photos related to any of my videos.
On iOS: Everything works correctly.

Reproduction Steps and Sample Code

Record a video on Android with your default camera app. (Do this on both Android and iOS to see the full difference)

On Android you will need to allow Expo to access external storage.
Link to Sketch

Notice you should get the first image asset which would be a video.

Solution

On Android return an image asset for the video and details about the video similar to what iOS returns.

Additional Information

  • React Native version: react-native: 0.41.2
  • Platform: Android (though comparing to iOS should help)
  • Development Operating System: MacOS
  • Dev tools: Android Studio version 2.3, Android SDK version 23

Activity

  1. JBerendes commented on Mar 25, 2017

    @JBerendes
    Author

    Dupe of #11877 but the sketch is helpful for testing.

  2. wdoering commented on Dec 27, 2017

    @wdoering

    @JBerendes why is this closed? was this fixed somehow?
    I'm facing this issue right now too.
    Actually in my case every thumb that represents a video is just pitch black. For photos it works OK.

  3. locked as resolved and limited conversation to collaborators on May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions