recording using MediaRecorder API-output file size 0 bytes. please help

Discussion in 'Android Apps & Games' started by AndroiDev, Jul 11, 2010.

  1. AndroiDev

    AndroiDev Member
    5

    Jun 9, 2010
    8
    0
    5
    I've tried recording video using MediaRecorder API but the file that gets saved each time is of 0 bytes.
    I use the MediaRecorder recorder = new MediaRecorder(); ad then recorder.setVideoSource . . .recorder.prepare() to generate the preview and when the user clicks record, i say recorder.start() but the file recorded is of 0 bytes. And after some time, recorder.stop() -on user click that is.
    What can cause such a problem? Please help. This is quite urgent and I would be very grateful for any help. I have a deadline.
     

    Advertisement
  2. moamenam

    moamenam New Member
    15

    Jan 16, 2010
    4
    0
    15
    i also receive zero file even with no header, if any one fix this issue please help up
     
  3. andreagosto

    andreagosto New Member
    16

    May 11, 2010
    3
    1
    16
    maybe the path of your contentresolver is the same where you store the temp file? i had this mistake..
     

Share This Page

Loading...