Android get available codecs for video recording
My app have to record video with resolution & codec parameters being selected by user.
Here is my code to get available video resolutions:
Camera camera=Camera.open();
Parameters params = camera.getParameters();
List<Size> sizes = params.getSupportedPreviewSizes();
But how to get available video codecs for current Android device? I know about https://developer.android.com/guide/appendix/media-formats.html and https://developer.android.com/reference/android/media/MediaRecorder.VideoEncoder.html Android constants, but for example Galaxy S3 fails with my app if set videoencoder to H.263. So how to check available codecs at each device?
链接地址: http://www.djcxy.com/p/84036.html上一篇: 如何获得Android设备的视频编码参数详细信息?
下一篇: Android获得可用的视频录制编解码器