-
public class CamcorderProfilesWraps the android.media.CamcorderProfile static utilities.
-
-
Method Summary
Modifier and Type Method Description static CamcorderProfileget(@NonNull() String cameraId, @NonNull() Size targetSize)Returns a CamcorderProfile that's somewhat coherent with the target size,to ensure we get acceptable video/audio parameters for MediaRecorders(most notably the bitrate). static CamcorderProfileget(int cameraId, @NonNull() Size targetSize)Returns a CamcorderProfile that's somewhat coherent with the target size,to ensure we get acceptable video/audio parameters for MediaRecorders(most notably the bitrate). -
-
Method Detail
-
get
@NonNull() static CamcorderProfile get(@NonNull() String cameraId, @NonNull() Size targetSize)
Returns a CamcorderProfile that's somewhat coherent with the target size,to ensure we get acceptable video/audio parameters for MediaRecorders(most notably the bitrate).
- Parameters:
cameraId- the camera2 idtargetSize- the target video size
-
get
@NonNull() static CamcorderProfile get(int cameraId, @NonNull() Size targetSize)
Returns a CamcorderProfile that's somewhat coherent with the target size,to ensure we get acceptable video/audio parameters for MediaRecorders(most notably the bitrate).
- Parameters:
cameraId- the camera idtargetSize- the target video size
-
-
-
-