- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我想在不显示预览的情况下拍摄视频。这里的 android 文档说这是可能的,但没有解释如何:
http://developer.android.com/guide/topics/media/camera.html#capture-video
Note: It is possible to use MediaRecorder without creating a camera preview first and skip the first few steps of this process. However, since users typically prefer to see a preview before starting a recording, that process is not discussed here.
要跳过的“前几步”是什么?
谢谢
最佳答案
您误解了文档。它真正说的是什么(强调我的):
It is possible to use MediaRecorder without creating a camera preview first and skip the first few steps of this process. However, since users typically prefer to see a preview before starting a recording, that process is not discussed here.
换句话说,您可以创建预览并立即开始录制。没有提示 MediaRecorder 会让您运行隐藏的录制 session 。
此外,我同意文档中的观点,即在开始录制之前不开始预览的附加值可以忽略不计。
关于android - 无需预览即可捕获视频,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33128213/
这实际上是我问的问题的一部分here ,该问题没有得到答复,最终被标记为重复。 问题:我只需使用 @Autowired 注释即可使用 JavaMailSender。我没有通过任何配置类公开它。 @Co
我是一名优秀的程序员,十分优秀!