1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

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


Last Updated:

  1. AndroiDev

    AndroiDev Member This Topic's Starter

    Joined:
    Jun 9, 2010
    Messages:
    8
    Likes Received:
    0
    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

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

    andreagosto New Member

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

Share This Page

Loading...