TimestampAdjustment.TimestampMap
Artifact: androidx.media3:media3-effect
public interface TimestampAdjustment.TimestampMap
Maps input timestamps to output timestamps asynchronously.
Implementation can choose to calculate the timestamp and invoke the consumer on another thread asynchronously.
Summary
Public methods |
|
|---|---|
abstract void |
calculateOutputTimeUs(Calculates the output timestamp that corresponds to the input timestamp. |
Public methods
calculateOutputTimeUs
abstract void calculateOutputTimeUs(
long inputTimeUs,
TimestampConsumer outputTimeConsumer
)
Calculates the output timestamp that corresponds to the input timestamp.
The implementation should invoke the outputTimeConsumer with the output timestamp, on any thread.