I’m developing an app which can help me to note the cycle of a amchine (piece/minute).
I’ve succesfully developed these parts:
-cronometer and calculation:
there are 2 main buttons: “start”, where the cronometer starts and the countpiece goes to +1, and a button “Stop” where all the calculation part is done, showing on a lable the results.
Support buttons are “+”, which simply add 1 piece to countpieces, “-”, that subtract a piece, and “reset” which set the application forms to the start condition (all 0)
-save data in a GoogleSheets Form
Now my new challenge is to recording a video and save it in Google Drive. First step is to record a video.
I used the native component camcorder, but there is an unwanted event:“camcorder1.RecordVideo”, simply call the systemapp of my device. This is not what i need. I’d like that the app start to record a video by itself, without showing me the videoapp record.
The idea is: if a checkbox is checked, when Button_start.click, record a video. Wher Button_stop.click, stop recording and save it to google drive. In the middle, i need to see my app screen, let me to tap the buttons described before.
Looking for a solution, i found this link: https://puravidaapps.com/camera.php, but it seems to be dedicated to taking pictures and not to recording a video.
This is my first help calling, so if you need some more details, please ask.
Sorry, there is no method to autostart a video recording in AI2. There is also no way back to the app whilst the video is being recorded.
Someone would need to write an extension to handle this activity.
I found a solution, but you need something more then MITAppInventor.
I use the app QuickVideoRecorder (you can download it from your store, I use android as OS) and the "Activity Starter" element from MittAppInventor.
Just install the app, then you have to set the Starter. For my needs, when i push a button on the screen, the Starter call the application and i start to record my video. Videos are saved in a folder (you can choose the saving path in the QuickVideoRecoder settings).
Here you can see my setup, but you can find some guides on youtube to how to set the activity starter.
Thank you very much Andrea,
can you just give me the complete class (it is cut on your screenshot).
Can you also please explain me how you put the camera off.
Vincent
That's a shame. Is there any extension that allows recording without calling the system app? The other alternative showed here does not work for me because I need to be able to record and control the flashlight at the same time