Skip to content

Commit

Permalink
修改拍摄视频为高画质
Browse files Browse the repository at this point in the history
  • Loading branch information
zoubo committed Apr 3, 2018
1 parent 66e45aa commit b40a31a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public Intent dispatchTakePictureIntent() throws IOException {
public Intent dispatchTakeVedioIntent() throws IOException {
Intent takePictureIntent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
takePictureIntent.putExtra(MediaStore.EXTRA_DURATION_LIMIT, 30);
takePictureIntent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY,1);
// Ensure that there's a camera activity to handle the intent
if (takePictureIntent.resolveActivity(mContext.getPackageManager()) != null) {
// Create the File where the photo should go
Expand Down

0 comments on commit b40a31a

Please sign in to comment.