Package 

Class CamcorderProfiles

    • Method Summary

      Modifier and Type Method Description
      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).
      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).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 id
        targetSize - 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 id
        targetSize - the target video size