MediaRecorder setVideoSize shows different behaviour in different devices

后端 未结 2 1349
梦如初夏
梦如初夏 2021-02-06 06:45

I am using media recorder to record video in an android app.

mMediaRecorder.setCamera(mServiceCamera);
mMediaRecorder.setAudioSource(MediaRecorder.AudioSource.D         


        
2条回答
  •  梦如初夏
    2021-02-06 07:16

    Video sizes in a device is equal to preview sizes. You have to first check whether video size you setting is available or not. Video sizes in different devices may be diffrent.so,first check available preview sizes using getSupportedPreviewSizes () and then set video size. this will return a list.you have to select only one of them.

提交回复
热议问题