public class LibflacAudioRenderer extends SimpleDecoderAudioRenderer
STATE_DISABLED, STATE_ENABLED, STATE_STARTEDADAPTIVE_NOT_SEAMLESS, ADAPTIVE_NOT_SUPPORTED, ADAPTIVE_SEAMLESS, ADAPTIVE_SUPPORT_MASK, FORMAT_EXCEEDS_CAPABILITIES, FORMAT_HANDLED, FORMAT_SUPPORT_MASK, FORMAT_UNSUPPORTED_DRM, FORMAT_UNSUPPORTED_SUBTYPE, FORMAT_UNSUPPORTED_TYPE, TUNNELING_NOT_SUPPORTED, TUNNELING_SUPPORT_MASK, TUNNELING_SUPPORTED| Constructor and Description |
|---|
LibflacAudioRenderer() |
LibflacAudioRenderer(Handler eventHandler,
AudioRendererEventListener eventListener,
AudioProcessor... audioProcessors) |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.android.exoplayer2.ext.flac.FlacDecoder |
createDecoder(Format format,
ExoMediaCrypto mediaCrypto)
Creates a decoder for the given format.
|
protected int |
supportsFormatInternal(Format format)
Returns the
RendererCapabilities.FORMAT_SUPPORT_MASK component of the return value for
SimpleDecoderAudioRenderer.supportsFormat(Format). |
getMediaClock, getOutputFormat, getPlaybackParameters, getPositionUs, handleMessage, isEnded, isReady, onAudioSessionId, onAudioTrackPositionDiscontinuity, onAudioTrackUnderrun, onDisabled, onEnabled, onPositionReset, onStarted, onStopped, render, setPlaybackParameters, supportsFormatdisable, enable, getCapabilities, getConfiguration, getIndex, getState, getStream, getTrackType, hasReadStreamToEnd, isCurrentStreamFinal, isSourceReady, maybeThrowStreamError, onStreamChanged, readSource, replaceStream, resetPosition, setCurrentStreamFinal, setIndex, skipSource, start, stop, supportsMixedMimeTypeAdaptationpublic LibflacAudioRenderer()
public LibflacAudioRenderer(Handler eventHandler, AudioRendererEventListener eventListener, AudioProcessor... audioProcessors)
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.audioProcessors - Optional AudioProcessors that will process audio before output.protected int supportsFormatInternal(Format format)
SimpleDecoderAudioRendererRendererCapabilities.FORMAT_SUPPORT_MASK component of the return value for
SimpleDecoderAudioRenderer.supportsFormat(Format).supportsFormatInternal in class SimpleDecoderAudioRendererformat - The format.protected com.google.android.exoplayer2.ext.flac.FlacDecoder createDecoder(Format format, ExoMediaCrypto mediaCrypto) throws FlacDecoderException
SimpleDecoderAudioRenderercreateDecoder in class SimpleDecoderAudioRendererformat - The format for which a decoder is required.mediaCrypto - The ExoMediaCrypto object required for decoding encrypted content.
Maybe null and can be ignored if decoder does not handle encrypted content.FlacDecoderException