VideoQualityNotSupportQuirk

@RequiresApi(21) open class VideoQualityNotSupportQuirk : Quirk
kotlin.Any
   ↳ androidx.camera.video.internal.compat.quirk.VideoQualityNotSupportQuirk

Quirk denotes that quality VideoCapabilities queried by CamcorderProfileProvider does not work on video recording on device, and need to exclude it.

On Huawei Mate20 and Mate20 Pro, CamcorderProfile indicates it can support resolutions 3840x2160 for VideoEncoder#H264, and it can create the video encoder by the corresponding format. However, there is not any video frame output from Camera . The CaptureSession is opened and configured, but something error in the HAL of these devices . Hence use a quirk to exclude the problematic resolution quality. See b/202080832#comment8.

Summary

Public constructors

Quirk denotes that quality VideoCapabilities queried by CamcorderProfileProvider does not work on video recording on device, and need to exclude it.

Public methods
open Boolean

Checks if the given mime type is a problematic quality.

Public constructors

VideoQualityNotSupportQuirk

VideoQualityNotSupportQuirk()

Quirk denotes that quality VideoCapabilities queried by CamcorderProfileProvider does not work on video recording on device, and need to exclude it.

On Huawei Mate20 and Mate20 Pro, CamcorderProfile indicates it can support resolutions 3840x2160 for VideoEncoder#H264, and it can create the video encoder by the corresponding format. However, there is not any video frame output from Camera . The CaptureSession is opened and configured, but something error in the HAL of these devices . Hence use a quirk to exclude the problematic resolution quality. See b/202080832#comment8.

Public methods

isProblematicVideoQuality

open fun isProblematicVideoQuality(@NonNull quality: Quality): Boolean

Checks if the given mime type is a problematic quality.