FfmpegAudioRenderer

Creates a new instance.

Parameters

eventHandler

A handler to use when delivering events to eventListener. May be null if delivery of events is not required.

eventListener

A listener of events. May be null if delivery of events is not required.

audioSink

The sink to which audio will be output.

Constructors

Link copied to clipboard
constructor(eventHandler: Handler?, eventListener: AudioRendererEventListener?, audioSink: AudioSink)
constructor(context: Context)
constructor(context: Context, eventHandler: Handler?, eventListener: AudioRendererEventListener?, vararg audioProcessors: AudioProcessor)

Creates a new instance.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val isEnded: Boolean
Link copied to clipboard
open override val isReady: Boolean
Link copied to clipboard
open override val mediaClock: MediaClock?
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
open override val positionUs: Long
Link copied to clipboard
Link copied to clipboard
val state: Int
Link copied to clipboard
Link copied to clipboard
protected var timeline: Timeline?
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
fun disable()
Link copied to clipboard
fun enable(configuration: RendererConfiguration?, formats: Array<out Format?>?, stream: SampleStream?, positionUs: Long, joining: Boolean, mayRenderStartOfStream: Boolean, startPositionUs: Long, offsetUs: Long, mediaPeriodId: MediaSource.MediaPeriodId?)
Link copied to clipboard
Link copied to clipboard
open fun getDurationToProgressUs(positionUs: Long, elapsedRealtimeUs: Long): Long
Link copied to clipboard
open override fun getName(): String
Link copied to clipboard
open override fun getOutputFormat(decoder: FfmpegAudioDecoder): Format
Link copied to clipboard
open fun handleMessage(messageType: Int, @Nullable message: Any?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun init(index: Int, playerId: PlayerId?, clock: Clock?)
Link copied to clipboard
Link copied to clipboard
fun release()
Link copied to clipboard
open fun render(positionUs: Long, elapsedRealtimeUs: Long)
Link copied to clipboard
fun replaceStream(formats: Array<out Format?>?, stream: SampleStream?, startPositionUs: Long, offsetUs: Long, mediaPeriodId: MediaSource.MediaPeriodId?)
Link copied to clipboard
fun reset()
Link copied to clipboard
fun resetPosition(positionUs: Long, sampleStreamIsResetToKeyFrame: Boolean)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun setPlaybackSpeed(currentPlaybackSpeed: Float, targetPlaybackSpeed: Float)
Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()
Link copied to clipboard
fun supportsFormat(format: Format?): Int