Effects Builder
interface EffectsBuilder
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun EffectsBuilder.bitmapOverlay(bitmap: Bitmap, block: OverlaySettings.Builder.() -> Unit): EffectsBuilder
fun EffectsBuilder.bitmapOverlay(context: Context, uri: Uri, block: OverlaySettings.Builder.() -> Unit): EffectsBuilder
fun EffectsBuilder.bitmapOverlay(context: Context, uri: Uri, settings: OverlaySettings): EffectsBuilder
fun EffectsBuilder.bitmapOverlay(context: Context, @DrawableRes drawableResId: Int, settings: OverlaySettings? = null): EffectsBuilder
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun EffectsBuilder.fadeAudioOut(totalDurationUs: Long, inputChannels: Int, outputChannels: Int = 2, initialVolume: Float = 1.0f, finalVolume: Float = 0.0f, fadeDurationUs: Long = TimeUnit.SECONDS.toMicros(1)): EffectsBuilder
Add an VolumeChangeProcessor to the EffectsBuilder that you can use to fade the audio out at the end of the video.
Link copied to clipboard
Link copied to clipboard
Adds a new Presentation effect for setting the height of the output.
Adds a new Presentation effect for setting the aspect ratio of the output.
Adds a new Presentation effect for setting the width and height of the output.
Link copied to clipboard
Link copied to clipboard
fun EffectsBuilder.textOverlay(spannableString: SpannableString, block: OverlaySettings.Builder.() -> Unit): EffectsBuilder
fun EffectsBuilder.textOverlay(text: SpannableString, settings: OverlaySettings? = null): EffectsBuilder
Link copied to clipboard
Link copied to clipboard
fun EffectsBuilder.volume(volume: Float, inputChannels: Int, outputChannels: Int = 2): EffectsBuilder
Link copied to clipboard
fun EffectsBuilder.volumeChange(inputChannels: Int, outputChannels: Int = 2, volumeChangeProvider: VolumeChangeProvider): EffectsBuilder
fun EffectsBuilder.volumeChange(inputChannels: Int, volume: Float = 1.0f, outputChannels: Int = 2, volumeChange: VolumeChangeProvider.(timeUs: Long) -> Float = { volume }): EffectsBuilder
Add VolumeChangeProcessor effect that you can use to change the volume of the audio stream over time.