I would like to use cwac-cam2 to record video on a headless device. I was wondering if I could use this component to kick off video recording without a user interacting with the record button in the activity class?
Basically, using the library normally opens the VideoRecorderActivity activity which gives a user a button used to start/stop recording. What I'd like to do is to just call the function of that button directly since we do not have a screen. We interface with a user using hardware buttons that send broadcasts to the appropriate activity.
No, sorry. That's outside the scope of this library.
Moreover, I fail to see what this library gives you in your situation, and I would be stunned if the library worked on your hardware. I would expect failures with respect to the
TextureView
used for previews, for example.I do not know if Android and your hardware collectively support video recording, but if it does, you will need to work with
MediaRecorder
directly.