use of android.media.projection.MediaProjection in project cw-omnibus by commonsguy.
the class RecorderService method startRecorder.
private synchronized void startRecorder() {
if (session == null) {
MediaProjectionManager mgr = (MediaProjectionManager) getSystemService(MEDIA_PROJECTION_SERVICE);
MediaProjection projection = mgr.getMediaProjection(resultCode, resultData);
session = new RecordingSession(this, new RecordingConfig(this), projection);
session.start();
}
}
Aggregations