@UnstableApi
class CodecDbLite


Repository of chipset-specific recommendations and/or optimizations for using Android platform provided video codecs.

Recommendations made by this class are based on Google-collected benchmark data collected on production devices leveraging the chipsets represented.

Summary

Public functions

java-static VideoEncoderSettings!

Returns the recommended VideoEncoderSettings for the provided format.

java-static String!

Returns the MIME type recommended for video encoding on the runtime device.

Public functions

getRecommendedVideoEncoderSettings

java-static fun getRecommendedVideoEncoderSettings(format: Format!): VideoEncoderSettings!

Returns the recommended VideoEncoderSettings for the provided format.

Parameters
format: Format!

the video format to recommend settings for which must include sampleMimeType to identify the codec. For best results, width, height, frameRate should be set since some optimizations are resolution dependent.

getRecommendedVideoMimeType

java-static fun getRecommendedVideoMimeType(): String!

Returns the MIME type recommended for video encoding on the runtime device.