I uploaded a small video into the assets and used video player to play it but unfortunately I get an error 701 and video is not playing after building the apk although it works fine in the companion …
I made the app search for the video in a hidden folder and sure it won’t be found, then the app will copy the video from the assets to this hidden folder . And it worked very fine for me
No, this bug is not fixed, even not on the Beta server.
I reported this bug already on July 2019.
The approach of @drpeterramsis2007 is not really a solution or a trick, as you should always avoid that unnecessary permissions are required (in this case: READ_ / WRITE_EXTERNAL_STOARGE).
Therefore you should wait for a fix or use an extension.
If you still want to go this way, you have to use Taifun’s file extension (App Inventor Extensions: File | Pura Vida Apps), because the File component does not work when copying from the assets (I reported this bug also serveral times).
thanks for this replay but still i need to solve the problem I’m a beginner so some time i couldn’t understand well what you are try to explain to me .
when I’m asking for aia that’s mean is this the way to me tracking the blocks to get my results as i want
You can insert file componet into you proyect next add to block like Read from file options and see how to its work is the same for all files > Read, play, etc
Here is File documentation about Read From https://docs.kodular.io/components/storage/file/#read-from
He says:
Reads text from a file in storage. Prefix the filename with / to read from a specific file on the SD card. for instance /myFile.txt will read the file /sdcard/myFile.txt. To read assets packaged with an application (also works for the Companion) start the filename with // (two slashes). If a filename does not start with a slash, it will be read from the applications private storage (for packaged apps) and from /sdcard/AppInventor/data for the Companion.
Is the same for read, play, show image or what you need for any file from assets