Class FfmpegAudioRenderer

    • Constructor Detail

      • FfmpegAudioRenderer

        public FfmpegAudioRenderer()
        Deprecated.
      • FfmpegAudioRenderer

        public FfmpegAudioRenderer​(@Nullable
                                   Handler eventHandler,
                                   @Nullable
                                   AudioRendererEventListener eventListener,
                                   AudioProcessor... audioProcessors)
        Deprecated.
        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.
        audioProcessors - Optional AudioProcessors that will process audio before output.
      • FfmpegAudioRenderer

        public FfmpegAudioRenderer​(@Nullable
                                   Handler eventHandler,
                                   @Nullable
                                   AudioRendererEventListener eventListener,
                                   AudioSink audioSink)
        Deprecated.
        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.
    • Method Detail

      • getName

        public String getName()
        Deprecated.
        Description copied from interface: Renderer
        Returns the name of this renderer, for logging and debugging purposes. Should typically be the renderer's (un-obfuscated) class name.
        Returns:
        The name of this renderer.
      • createDecoder

        protected com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioDecoder createDecoder​(Format format,
                                                                                            @Nullable
                                                                                            CryptoConfig cryptoConfig)
                                                                                     throws FfmpegDecoderException
        Deprecated.
        Creates a decoder for the given format.
        Specified by:
        createDecoder in class DecoderAudioRenderer<com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioDecoder>
        Parameters:
        format - The format for which a decoder is required.
        cryptoConfig - The CryptoConfig object required for decoding encrypted content. May be null and can be ignored if decoder does not handle encrypted content.
        Returns:
        The decoder.
        Throws:
        FfmpegDecoderException
      • getOutputFormat

        protected Format getOutputFormat​(com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioDecoder decoder)
        Deprecated.
        Returns the format of audio buffers output by the decoder. Will not be called until the first output buffer has been dequeued, so the decoder may use input data to determine the format.
        Specified by:
        getOutputFormat in class DecoderAudioRenderer<com.google.android.exoplayer2.ext.ffmpeg.FfmpegAudioDecoder>
        Parameters:
        decoder - The decoder.