MediaStore 中自动开始录制
我设法通过使用 MediaStore.Audio.Media.RECORD_SOUND_ACTION 操作发送意图来录制音频。 但是有没有办法告诉 MediaStore 应用程序自动开始录制,而不需要用户按下录制按钮? 我没有看到相关参数,也没有看到 MediaStore.Audio.Media 也不在 MediaStore 中。
视频也有同样的问题...
I managed to record audio by sending intent with action MediaStore.Audio.Media.RECORD_SOUND_ACTION.
But is there a way to tell MediaStore application to automatically start recording without the need for user to press record button?
I don't see relevant parameters nor MediaStore.Audio.Media nor in MediaStore.
And same question for video...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
可以直接使用MediaRecorder对象来录制。这样您就可以控制何时以及如何开始录音。
You can directly use the MediaRecorder object to record. This way you can control when and how to start the voice recording.