Effects
@UnstableApi
class Effects
Effects to apply to a MediaItem or to a Composition.
Summary
Public constructors |
|---|
|
Creates an instance. |
Public functions |
|
|---|---|
java-static Pair<AudioProcessor!, Effect!>! |
This function is deprecated. Use |
String! |
toString() |
Public properties |
|
|---|---|
ImmutableList<AudioProcessor!>! |
The list of |
ImmutableList<Effect!>! |
The list of |
Public constructors
Effects
Effects(
audioProcessors: (Mutable)List<AudioProcessor!>!,
videoEffects: (Mutable)List<Effect!>!
)
Creates an instance.
| Parameters | |
|---|---|
audioProcessors: (Mutable)List<AudioProcessor!>! |
The |
videoEffects: (Mutable)List<Effect!>! |
The |
Public functions
createExperimentalSpeedChangingEffect
java-static funcreateExperimentalSpeedChangingEffect(speedProvider: SpeedProvider!): Pair<AudioProcessor!, Effect!>!
Creates an interlinked audio processor and video effect that changes the speed of media samples in segments of the input file specified by the given SpeedProvider.
The audio processor and video effect are interlinked to help maintain A/V sync. When using Transformer, if the input file doesn't have audio, or audio is being removed, you may have to include TRACK_TYPE_AUDIO in the trackTypes of the EditedMediaItemSequence for the interlinked effects to function correctly. Alternatively, you can use SpeedChangeEffect when the input has no audio.
| Parameters | |
|---|---|
speedProvider: SpeedProvider! |
The |
Public properties
audioProcessors
val audioProcessors: ImmutableList<AudioProcessor!>!
The list of audio processors to apply to audio buffers. They are applied in the order of the list, and buffers will only be modified by that AudioProcessor if it isActive based on the current configuration.
videoEffects
val videoEffects: ImmutableList<Effect!>!
The list of video effects to apply to each frame. They are applied in the order of the list.