You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.
Describe the bug
When creating a new NS app using ns create and adding the mediafilepicker library to capture video the below error is produced when the mediafilepicker is invoked:
JS: Permission Error! Error: java.lang.IllegalArgumentException: MIME type video/mp4 cannot be inserted into content://media/external/images/media; expected MIME type under image/*
To Reproduce
Steps to reproduce the behavior: The build is being tested on a OnePlus 7 running Android 10. You can clone this repo and then run ns run android and tap the button to invoke the mediafilepicker.
NativeScript Info(please run tns info):
✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 7.0.8 and the latest available version is 7.0.11.
✔ Component @nativescript/core has 7.0.13 version and is up to date.
✖ Component @nativescript/ios is not installed.
✔ Component @nativescript/android has 7.0.1 version and is up to date.
Additional context
I have tried to add this to my AndroidManifest to see if it makes a difference however a different error is thrown when the app tries to build.
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
/Users/godz/projects/temp/nativescript-mediafilepicker/demo/platforms/android/app/src/main/AndroidManifest.xml:17:2-39:16: AAPT: error: attribute android:requestLegacyExternalStorage not found.
Unable to apply changes on device: c1fa43c4. Error is: Command ./gradlew failed with exit code 1.
The text was updated successfully, but these errors were encountered:
4.0.2 seems to be working as expected. Thank you for your assistance and I appreciate the clarification on the requestLegacyExternalStorage permission. Cheers @jerbob92
Describe the bug
When creating a new NS app using
ns create
and adding the mediafilepicker library to capture video the below error is produced when the mediafilepicker is invoked:JS: Permission Error! Error: java.lang.IllegalArgumentException: MIME type video/mp4 cannot be inserted into content://media/external/images/media; expected MIME type under image/*
I have tried to build the demo from the nativescript-mediafilepicker repo as is and experience the same result.
To Reproduce
Steps to reproduce the behavior: The build is being tested on a OnePlus 7 running Android 10. You can clone this repo and then run
ns run android
and tap the button to invoke the mediafilepicker.NativeScript Info(please run
tns info
):✔ Getting NativeScript components versions information...
⚠ Update available for component nativescript. Your current version is 7.0.8 and the latest available version is 7.0.11.
✔ Component @nativescript/core has 7.0.13 version and is up to date.
✖ Component @nativescript/ios is not installed.
✔ Component @nativescript/android has 7.0.1 version and is up to date.
Sample Code(please provide minimum code to reproduce problem):
https://github.com/gideon-io/test-videorecord-ts
Additional context
I have tried to add this to my AndroidManifest to see if it makes a difference however a different error is thrown when the app tries to build.
The text was updated successfully, but these errors were encountered: