Search in sources :

Example 1 with MediaProjection

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();
    }
}
Also used : MediaProjectionManager(android.media.projection.MediaProjectionManager) MediaProjection(android.media.projection.MediaProjection)

Aggregations

MediaProjection (android.media.projection.MediaProjection)1 MediaProjectionManager (android.media.projection.MediaProjectionManager)1