Reputation: 6867
I'm simply trying to open the native camera intent as follows:
Intent cameraIntent = new Intent(
android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
cameraIntent.putExtra(
MediaStore.EXTRA_DURATION_LIMIT, 60);
cameraIntent.putExtra(
MediaStore.EXTRA_SCREEN_ORIENTATION, ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
startActivityForResult(cameraIntent,
Statics.CAMERA_VIDEO_REQUEST);
After shooting the video - the android presents it correctly (portrait), but the computer shows it (mp4 file) in wrong orientation - 90 degrees left. I've also tried to change the EXTRA_SCREEN_ORIENTATION to LANDSCAPE and it still didn't work right.
any suggestions what else to do? thanks.
Upvotes: 2
Views: 1123
Reputation: 9035
In
onActivityResult(int requestCode, int resultCode,
Intent imageReturnedIntent)
use ExifInterface
Upvotes: 1