1. Check out our companion app, Forums for Android! Download from Google Play

Setting VideoSource

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

  1. Anji

    Anji New Member
    Thread Starter
    5

    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 New Member
    5

    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...