Problem in Video Capture

General topics about the Android-Platform itself.
Coding issues please to the subforum right below.

Problem in Video Capture

Postby pratheeja » Mon Jun 06, 2011 7:13 am

I'm trying to pass a Uri to the video camera as EXTRA_OUTPUT. The file
shoots and saves OK at the Uri I give it, but unfortunately pressing
the 'Retake' or 'Play' buttons crashes the application.

Does anyone know how I can supply a Uri in a way that won't crash the
camera?

Here's my code:
On a button c;lick event

Intent intent = new Intent(
android.provider.MediaStore.ACTION_VIDEO_CAPTURE);
File file = new File(Environment.getExternalStorageDirectory(), "/myvideo.MP4");
outputFileUri = Uri.fromFile(file);
intent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri.fromFile(file));
startActivityForResult(intent, REQUEST_VIDEO_CAPTURED);


Any kind of help will be greatly appreciated.


regds,
Pratheeja
pratheeja
Freshman
Freshman
 
Posts: 3
Joined: Tue Feb 01, 2011 10:07 am

Top

Return to General

Who is online

Users browsing this forum: No registered users and 2 guests