[英]Is it possible to kick off recording directly using cwac-cam2?
I would like to use cwac-cam2 to record video on a headless device. 我想使用cwac-cam2在无头设备上录制视频。 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. 基本上,使用该库通常会打开VideoRecorderActivity活动,该活动为用户提供了一个用于开始/停止录制的按钮。 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.
我们使用硬件按钮与用户交互,这些按钮将广播发送到适当的活动。
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?
我想知道是否可以使用该组件启动视频录制而无需用户与活动类中的“录制”按钮进行交互?
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. 例如,我期望与用于预览的
TextureView
有关的失败。
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. 我不知道Android和您的硬件是否共同支持视频录制,但是如果支持,则需要直接使用
MediaRecorder
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.