0

When I start to record video and stop a pause.Sometimes show me cropped image preview.How to avoid this behavior.I'm using intent for calling camera.Thanks.

     Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);

        intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
        intent.putExtra(MediaStore.EXTRA_VIDEO_QUALITY, 1);

        startActivityForResult(intent, VIDEO_CAPTURE);

My activity in manifest

  <activity
            android:name="com.mti.videodialy.activity.CreateVideoNoteActivity"
            android:theme="@style/VideoDailyActionBar"
            android:configChanges="orientation|screenSize"></activity>

enter image description here

Terry
  • 63
  • 3
  • 10
  • What kind of a device are you testing this on? May be a duplicate of this: http://stackoverflow.com/questions/9398089/camera-preview-is-letterboxed-when-on-portrait – Dev-iL Mar 02 '15 at 11:31
  • I'm testing on nexus 5 – Terry Mar 02 '15 at 11:39
  • Unfortunately this is not the same.Please help me – Terry Mar 02 '15 at 19:29
  • I gladly would if I had more information. Right now I can only point you in the right direction which is the keyword `letterboxing` – Dev-iL Mar 02 '15 at 19:59
  • Maybe what you see is a side-effect of the file not being writable (i.e. http://stackoverflow.com/questions/1910608/android-action-image-capture-intent ). If you click "V" at this stage, do you see a video file on storage? – Dev-iL Mar 02 '15 at 20:16
  • Yes,I can save video and play it.I guess there just bitmap rotate when I finish record video.But how to fix it? – Terry Mar 30 '15 at 15:08

0 Answers0