Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to record video with given setting. #55

Open
ArvindGithub2015 opened this issue Nov 6, 2017 · 0 comments
Open

Unable to record video with given setting. #55

ArvindGithub2015 opened this issue Nov 6, 2017 · 0 comments

Comments

@ArvindGithub2015
Copy link

ArvindGithub2015 commented Nov 6, 2017

Hi i am recording video in Samsung Grand 2 with android version 4.4.2
but getting error "Can't capture video : Unable to record video with given setting"

CaptureConfiguration.Builder builder = new CaptureConfiguration.Builder(
PredefinedCaptureConfigurations.CaptureResolution.RES_360P,
PredefinedCaptureConfigurations.CaptureQuality.MEDIUM);
// Optional
builder.maxDuration(180); // in second
builder.maxFileSize(20); //in MB
builder.frameRate(24);
builder.showRecordingTime();
builder.noCameraToggle(); // Remove button to toggle between front and back camera

    CaptureConfiguration configuration = builder.build();

    final Intent intent = new Intent(QuestionnaireActivity.this, VideoCaptureActivity.class);
    intent.putExtra(VideoCaptureActivity.EXTRA_CAPTURE_CONFIGURATION, configuration);
    startActivityForResult(intent, AppConstants.REQUEST_VIDEO_CAPTURE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant