Hi There.

I want to capture video from front-end camera on android phone without 
preview activity.

But always I got landscape mode video.
I used  MediaRecorder


Please check my code

private MediaRecorder recorder;


...

if (!prepareRecorder()) {
    Toast.makeText(this, "Fail in preparing Video Recorder()!\n - Ended -", 
Toast.LENGTH_LONG).show();
    finish();
} else {
    runOnUiThread(new Runnable() {
        public void run() {
            try {
                recorder.start();
            } catch (final Exception ex) {
                String str = "Error";
            }
        }
    });

...


I want to capture video in portrait mode i.e 320 * 640

Please help me if you experienced in this problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/ab4047d1-0481-4ebc-9d28-e22625598d12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to