Android 同时记录显示和摄像头。支持的设备?不同的方法?
Android record display and camera simultaneously. Supportet devices? Different approach?
我们创建了一个同时记录显示和摄像头的应用程序。
该应用程序应用于检查移动设备上的用户行为。
不幸的是,应用程序在开始录制时崩溃了。
我们假设发生这种情况是因为手机不支持 MediaRecorder 的多个实例(Samsung Note 4)。
有人测试过哪些设备支持吗?
有谁知道同时记录两者的不同方法吗?
我正在开发完全相同的东西。
为了使用几个 MediaRecorder
,我们使用了一个有自己进程的服务。
这是我们AndroidManifest.xml
的摘录
<!-- The screen recording has to happen in a separate process because it's not possible to
use multiple MediaRecorder instances in the same process. And Android does not seem to
like if it's tried to capture a camera in a separate process. -->
<service
android:name=".ScreenRecordingService"
android:process=":screenrecorder" />
<service android:name=".CameraRecordingService" />
我们创建了一个同时记录显示和摄像头的应用程序。 该应用程序应用于检查移动设备上的用户行为。 不幸的是,应用程序在开始录制时崩溃了。
我们假设发生这种情况是因为手机不支持 MediaRecorder 的多个实例(Samsung Note 4)。
有人测试过哪些设备支持吗?
有谁知道同时记录两者的不同方法吗?
我正在开发完全相同的东西。
为了使用几个 MediaRecorder
,我们使用了一个有自己进程的服务。
这是我们AndroidManifest.xml
<!-- The screen recording has to happen in a separate process because it's not possible to
use multiple MediaRecorder instances in the same process. And Android does not seem to
like if it's tried to capture a camera in a separate process. -->
<service
android:name=".ScreenRecordingService"
android:process=":screenrecorder" />
<service android:name=".CameraRecordingService" />