Package-level declarations
Types
Link copied to clipboard
open class AudioCodecConfig(val mimeType: String = MediaFormat.MIMETYPE_AUDIO_AAC, val startBitrate: Int, val sampleRate: Int = getDefaultSampleRate(mimeType), val channelConfig: Int = AudioFormat.CHANNEL_IN_STEREO, val byteFormat: Int = AudioFormat.ENCODING_PCM_16BIT, val profile: Int = getDefaultProfile(mimeType)) : CodecConfig
Audio configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.
Link copied to clipboard
Base configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class VideoCodecConfig(val mimeType: String = MediaFormat.MIMETYPE_VIDEO_AVC, val startBitrate: Int, val resolution: Size = Size(1280, 720), val fps: Int = 30, val profile: Int = getBestProfile(mimeType), val level: Int = getBestLevel(mimeType, profile), val gopDurationInS: Float = 1.0f) : CodecConfig
Video configuration class. If you don't know how to set class members, Video encoding recommendations should give you hints.
Functions
Link copied to clipboard
fun VideoCodecConfig.rotateDegreesFromNaturalOrientation(context: Context, @IntRange(from = 0, to = 359) rotationDegrees: Int): VideoCodecConfig
Rotatse video configuration to rotationDegrees from device natural orientation.
Link copied to clipboard
fun VideoCodecConfig.rotateFromNaturalOrientation(context: Context, rotation: Int): VideoCodecConfig
Rotates video configuration to rotation from device natural orientation.