well, the assets directory does not seem to be a good choice, because the assets directory is read only after building the app...
why not using the application specific directory, which is /storage/emulated/0/Android/data/<packageName>/files/
EDIT: afaik the video placer component expects a relative path, which woud be /Android/data/<packageName>/files/yourVideo.mp4
The problem is not ftp downloading to a wrong folder. My Folder (in and out of companion was correct all along). I installed Anke extention to confirm and folder is not the problem.
The problem is the size of the File. VideoPlayer1 does not play it. It reports an error as "File not found" (very misleading).
I uploaded to my server another test mp4 i always use which is 770KB then used my App (not companion) to download it and Player worked fine.
So my only solution is a Video Player that can play any size mp4 files. Any recommendations ? I really don't want to use an external player.
I never heard, that there is a filesize limit for the built in video player component..
do you like to share your relevant blocks, so we can check, if these are correct?
you are trying to start the video before it has been completely downloaded ...
use the AfterDownload event (or similar) and move all your blocks below the DownloadToASD method into that event
The ftp process is done on another screen. It is only after download complete event, which turna Notifier progress bar off, that I am able to move to the second screen.
After file is downloaded the first time, i dont have the need to download again and proceed to the screen where the Player is. I just click on PlayVideo button and that's the block you see.
I moved "source" to the Main Menu module and out of the "PlayVideo" block.
ok, I see, I have been confused by the method DownloadToASD.AppSpecificDirectory
which does not download anything, it just returns the path to the ASD (Application specific directory)..
you are downloading the file to the ASD, but in your latest screenshot you do not set the correct path to the downloaded file (your large blue arrow).... use again the method DownloadToASD.AppSpecificDirectory together with your file name, as already mentioned earlier it must be a relative path for the video player component...
My same Samsung Tablet i have been using is now in Kiosk mode and my .mp4 are installed along with my apk. The .mp4 must and are installed in the Download folder.
I have set VideoPlayer1.Source to /Download/Samsung/Content/myvideo.mp4 with no luck.
It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.
To get an image of your blocks, right click in the Blocks Editor and select "Download Blocks as Image". You might want to use an image editor to crop etc. if required. Then post it here in the community.