- Forum posts: 1
Dec 13, 2021, 9:33:13 PM via Website
Dec 13, 2021 9:33:13 PM via Website
I'm using the following code to record the camera in Android. How can I change the default codec (the default is H264) here?
Intent intent = new Intent(MediaStore.ACTION_VIDEO_CAPTURE);
fileUri = getOutputMediaFileUri(MEDIA_TYPE_VIDEO);
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the file
Recommended editorial content
With your consent, external content is loaded here.
By clicking on the button above, you agree that external content may be displayed to you. Personal data may be transmitted to third-party providers in the process. You can find more information about this in our Privacy Policy.