1. Download our Official Android App: Forums for Android!

Setting VideoSource

Discussion in 'Music & Media' started by Anji, Apr 6, 2009.

  1. Anji

    Anji Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 6, 2009

    Apr 6, 2009
    1
    0
    5
    hi All,

    Currently I am working on sample Video Recorder Application.

    Following is peice of code.

    recorder​
    .setVideoSource(MediaRecorder.VideoSource.CAMERA);
    recorder.setAudioSource(MediaRecorder.AudioSource.MIC);
    recorder.setOutputFormat(MediaRecorder.OutputFormat.THREE_GPP);
    recorder.setVideoSize(176, 144); // QCIF

    recorder.setVideoFrameRate(30);

    recorder.setVideoEncoder(MediaRecorder.VideoEncoder.H263);

    but when trying to run I am getting following error meassages.

    MediaRecorder.VideoSource cannot be resolved
    MediaRecorder. SetVideoFrameRate()cannot be resolved ..

    Could you all help me in this???
     

    Advertisement

  2. genxsol

    genxsol Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    May 14, 2009

    May 14, 2009
    2
    0
    5
    i think videoSource is not available in 1.1 and lower sdk.
    u can try 1.5
     

Share This Page

Loading...