question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[🐛] When selected Video from gallery, it return empty assets

See original GitHub issue

Description

When selected Video from gallery, it return empty assets

this is assets results for Image and Video notice the image it return data, but for the video it return empty

// IMAGE RESPONSE
 {"assets": [{"fileName": "D43A3052-6B02-442F-B98A-A413E2DED5E1.png", "fileSize": 274762, "height": 2778, "type": "image/png", "uri": "file:///Users/joejo/Library/Developer/CoreSimulator/Devices/2AEE8E68-6F0A-4F8B-8E0B-8FFC3AB1E4EB/data/Containers/Data/Application/A147F518-B676-4FB3-B73B-FFD7E7448E7E/tmp/D43A3052-6B02-442F-B98A-A413E2DED5E1.png", "width": 1284}]}
 
 // Video Responnse
{"assets": []}

How to repeat issue and example


 const options = {
                includeExtra: true,
                selectionLimit: 1,
                mediaType: 'mixed',
                includeBase64: true,
            }

ImagePicker.launchImageLibrary(options, setResponse);

Additional Information

  • Image Picker version: 4.8.4 and also tried 4.8.0
  • React Native version: 0.64.1
  • Platform: IOS, Not tested on Android
  • Development Operating System: MacOS 12.4 - M1 Max
  • Dev tools: Xcode 13.3.1 - iOS 15.4

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
Qweestcommented, Jul 21, 2022

Same, and only for simulators. Definitely because of M1, on Intel it works fine

0reactions
bumpingChriscommented, Nov 29, 2022

same here

Read more comments on GitHub >

github_iconTop Results From Across the Web

swift - How to fix empty asset issue with PHImageManager in ...
Problem : When I am selecting multiple Videos or sometimes single video then sometimes my App is crashing due to Empty Video Asset...
Read more >
Empty Photo Asset Results After Sa… | Apple Developer Forums
This appears to be new behavior, and wanted to confirm this is a bug. To reproduce: 1) Enable limited photo library permissions in...
Read more >
ImagePicker - Expo Documentation
expo-image-picker provides access to the system's UI for selecting images ... Represents an asset (image or video) returned by the image picker or...
Read more >
Using Video and Image Assets Inside a Flutter App - LinkedIn
This article is simply about how to display images and play videos on your flutter app using network or local assets.
Read more >
The <video> and <source> tags - web.dev
You've properly prepared a video file for the web. ... the browser can select a video source without having to download part of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found