Is the bug fixed? how did u solve? some blocks would help . thanks
could you please share the aia
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).
Check this APK: videoPlayer_test.apk (5.4 MB)
The video testVideo.mp4
is copied from the assets to
/storage/emulated/0/Download/testVideo.mp4
and is played from there.
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
Sorry for being away as I am a pharmacist and fighting this pandemic nowadays in my country …
I will share my solution soon … but this is still a bug in the video player .
I just tried to bypass this error to use videos in my app …
But solving this bug would be more useful…
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
I get the error message 701 when playing music from Assets. The same error described in Video player error 701 not playing videos from assets. This problem was solve or have some workarround ?
You upload music to assets folder ?
What you have tried, you could upload your relevant blocks
Hi Bestprintsf,
Yes, I uploaded to assets using the botton “Assets” on the Creator.kodular.io. Here under the block :
Tks in advance
Try set //alarm_pao.mp3
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
this works only for the file component, but not for the player component
I now reopened the original thread… it seems to be, that bug still is not fixed… @Kodular ?
if you like to use a workaround meanwhile, see this contribution
Taifun
Thanks so much for the info, I didn’t know, I thought it worked the same way !!
Thanks a lot @bestprintsf and @Taifun, I’ll work on that and I’ll be back to give you a feedback about the solution. I really appreciate your support.
Hi @bestprintsf, @Taifun and @bodymindpower,
The workaround solved my problem. Thanks alot for your support.
3 posts were split to a new topic: Error 701, unable to load file:///storage/emulated/0/Download/… But the video is playing …