let’s assume, your video is in the root directory of the internal sdcard, the path to try is myVideo.mp4
alternatively try with a slash like this /myVideo.mp4
or in case it is in a subdirectory of the internal sdcard, the path to try is mySubDirectory/myVideo.mp4
(without leading slash)
alternatively try with a slash like this /mySubDirectory/myVideo.mp4
see also the relevant snippet from the java source file String mPath = Environment.getExternalStorageDirectory().toString() + File.separator + fileName;
and make sure, you have WRITE_EXTERNAL_STORAGE permission…
@CarlosPedroza27 might want to improve the documentation and add some working example directories …
The Pedroza Thumbnail extension does not add WRITE_EXTERNAL_STORAGE to the Manifest. Therefore the app can’t ask for it. Permissions MUST be declared in the Manifest to ask for them.
So try to add the File component (as a dummy, without using it) to your app. Build the APK and try again.
Note: There is no need to use special blocks anymore (→ Daily Challange 46), so remove them.
No problem not solved . its get and Error 701 . i just use video picker for chose video and upload to cloudnairy with thumbnail… i am just drag and drop the file component but i am use it . as you said the without use it
The category property in @SimpleProperty annotation does not exist in Rush. To get rid of that error, simply remove the category property from all the annotations, and you’d be good to go.
The reason why I removed it is that the category property has no effect on the behavior and working of the extension. I’m not sure why MIT implemented it in the first place; maybe for differentiating between various properties while reading the code? IDK.
When I first started with extension development, it was one of those things that were super confusing to me as it had no effect on the extension no matter what I set the category to be.
Nope, those aren’t based on the category property of SimpleProperty annotation. There’s no way for the Creator (and AI2) to read the category of a simple property, the reason behind it being the fact that this information (category of property) does not exist in the component info files of the extensions.