I want to create an app that only has a browser and a camera view and does the following:
User will only use the browser and think this is the app. There is a hidden view for the camera.
When the user visit some specific URL pattern (http://localhost:8000/post/<post_id>/upload-video?post_type=<post_type>) it should open the camera and temporarily store the query parameters in hidden labels. Example: In this case of the URL http://localhost:8000/post/1125/upload-video?post_type=co it should open the camera and store the 1125 in a label named post_id and co in a label named post_type.
Then, when the user capture an image, I want him to be able to see he video and decide if they want to save it or re record.it.
When thay saves it, they should save it to a website via API. This an example of how it would be saved using CURL:
Step 2: I know to save the values in hidden labels (once extracted). But I don't kwon how to keep an eye in the visited URL, test the URL pattern, and open the camera.
Step 3: I guess I can find a way to do it by my self..
Step 4: I know there is a way to work with APIs but I don't know how ir how to send a recorded video. This is the main reason why I came here.
Step 5: I can figure it out. Probably I just need to update the browser URL in the same block that saves the video.
What I need.
I would appreciate any help on the things that I don't know (test the URL pattern and posting the video with the API).
It has been hard for me to use the purposed method as it takes too long to convert the video into base 64 so it can be added to the form. Is there another method? I can change the API if necessary. Maybe if I change the API to be used this way?
You can use one of two extensions to select a video file from your browser (if the web page is using an input tag/button, in order to select a file from shared storage)
@TIMAI2
You can use one of two extensions to select a video file from your browser
Uhh! Nice extensions!
They doesn't solve the issue I am facing right now as my use case requires me to force users to record the video from the camera at the moment when they try to upload it (and prevent them from uploading an old video). But, those extensions will be helpful for another feature of the app, so, thanks.
Error 908: The permission READ_EXTERNAL_STORAGE has been denied. Please enable it in the Settings app.
Based on this thread, I think the problem must be that I'm not using the ASD. I don't know how to work with it. This is my first app in many, many years. I am using the Taifun File Extension, and I see there are some ASD-related blocks. So, any help to fix it with that this specific extension would be appreciated.
I can't provide the Do it because, for some reason, my companion app gets disconnected from App Inventor when I record a video and the provided block gets excecuted after saving the video. But, if you are looking for the final path after the join, it is: file:///storage/emulated/0/DCIM/Camera/20231215_093400.mp4
Or are you looking for something different? @Taifun
Error 908: The permission READ_EXTERNAL_STORAGE has been denied. Please enable it in the Settings app.
But know I don't think it is related to the ASD. In this threat, @Anke mentions that you can't specify the saving directory. Si, its weird that I can write a file there (without asking for permissions) but then I cannot read the file I just created, even if I try to ask for permission.
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.