¾È³çÇϼ¼¿ä ¾Èµå·ÎÀ̵带 °øºÎÁßÀÎ 4Çгâ ÇлýÀÔ´Ï´Ù.
4Çгâ ÀÎÁö¶ó Á¹¾÷³í¹®°â Çб³¿¡¼ ÇÏ´Â ÇÁ·ÎÁ§Æ®¿¡¼ ¾Èµå·ÎÀÌµå ¾îÇÃÀ» °³¹ßÁßÀÔ´Ï´Ù.
ÇöÀç Àü¸éÄ«¸Þ¶ó¸¦ ÀÌ¿ëÇÏ¿© ³ìȸ¦ ÇÏ´Â ¾îÇÃÀ» ¸¸µé¸é¼ °øºÎÁßÀÔ´Ï´Ù.
ÇÏÁö¸¸ Àü¸éÄ«¸Þ¶ó¸¦ »ç¿ëÇÏ¿© ³ìȸ¦ ÇÒ¶§¿¡´Â ȸéÀÌ Àß³ª¿ÀÁö¸¸
À̸¦ mp4ÆÄÀÏ·Î ÀúÀåÇÏ¿© VideoView¸¦ ÀÌ¿ëÇÏ¿© º¼¶§ ÷ºÎÇÑ ÆÄÀÏó·³ µ¿¿µ»ó ȸéÀÌ ±úÁý´Ï´Ù.
±¸±Ûµµ ´Ù ã¾Æº¸°í ¿©·¯ À¥¹®¼³ª Ã¥µîÀ» ¸ðµÎ ã¾Æº¸¾ÒÁö¸¸
ÁøÀúºê·¡µå(2.3)ºÎÅÍ ³ª¿Â°Å¶ó ±×·±Áö ÀڷḦ ãÀ»¼ö°¡ ¾ø½À´Ï´Ù..¤Ð¤Ð
1. SurfaceView, SurfaceHolder¸¦ ÀÌ¿ëÇÏ¿© PreviewȸéÀ» ¸¸µé¾ú½À´Ï´Ù.
2. Camera.CameraInfo.CAMERA_FACING_FRONT¸¦ ÀÌ¿ëÇÏ¿© Àü¸éÄ«¸Þ¶ó¸¦ openÇÏ°í
mCamera.setParameters(mCameraParameters) ÇÏ¿´½À´Ï´Ù.
3 . MediaRecorder¸¦ ÀÌ¿ëÇÏ¿© µ¿¿µ»óÀ» ³ìÈÇÏ¿´½À´Ï´Ù.
4. VideoView¸¦ ÀÌ¿ëÇÏ¿© µ¿¿µ»óÀ» È®ÀÎÇÏ¿´½À´Ï´Ù.
(¿©±â¼ 2¹øÀ» Á¦¿ÜÇÏ¿© ÈĹæÄ«¸Þ¶ó·Î µ¿À۵Ǵµ¥ ¸ðµç°ÍÀÌ Á¤»óÀûÀ¸·Î µ¿ÀÛÀÌ µË´Ï´Ù.)
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.MIC);
mMediaRecorder.setVideoSource(MediaRecorder.VideoSource.CAMERA);
mMediaRecorder.setProfile(CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH));
// mMediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
// mMediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
// mMediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);
mMediaRecorder.setVideoSize(320, 240);
mMediaRecorder.setVideoFrameRate(15);
mMediaRecorder.setOutputFile(mPath);
mMediaRecorder.setPreviewDisplay(mSurfaceHolder.getSurface());
MediaRecorder ¼³Á¤À» ÀÌ·¸°Ô ÇÏ¿´½À´Ï´Ù.
ÁÖ¼® 3ÁÙÀ» ´ë½ÅÇÏ¿© setProfileÀ» »ç¿ëÇÏ¿´½À´Ï´Ù.
ÁÖ¼® 3ÁÙÀ» ÀÌ¿ëÇϸé VideoView¿¡¼ ȸéÀÌ Ãà¼ÒµÇ¾î ³ª¿Ô½À´Ï´Ù.
ÇÑ´Þ³Ñ°Ô °³¹ßÁßÀε¥ À̺κи¸À» Á¦¿ÜÇÏ°í´Â ´ëºÎºÐ ±â´ÉµéÀ» ±¸ÇöÇÏ¿´½À´Ï´Ù.
¾îÇÿ¡¼ ÀÌ Àü¸éÄ«¸Þ¶ó·Î ³ìÈÇÑ ¿µ»óÀÌ ÇʼöÀûÀ¸·Î ÀÖ¾î¾ß µÇ¼
ÀÌ ºÎºÐÀÌ ¾ÈµÈ´Ù¸é »õ·Î¿î ¾ÆÀ̵ð¾îÀÇ ¾îÇÃÀ» ¸¸µé¾î¾ß Çؼ °ÆÁ¤ÀÌ ¸¹ÀÌ µË´Ï´Ù...
´äº¯ ºÎŹµå¸³´Ï´Ù ¤Ð¤Ð..
* ±ÛÀ» µî·ÏÇϽǶ§ ²À ÇÊ¿äÇÑ °æ¿ì°¡ ¾Æ´Ï¸é °³ÀÎÁ¤º¸¸¦ ³²±âÁö ¸¶¼¼¿ä ^^ (¿¬¶ôó,À̸ÞÀÏÁÖ¼Ò,Áֹεî·Ï¹øÈ£ µî)