Class CapturingRenderersFactory
- java.lang.Object
-
- com.google.android.exoplayer2.testutil.CapturingRenderersFactory
-
- All Implemented Interfaces:
RenderersFactory
,Dumper.Dumpable
public class CapturingRenderersFactory extends Object implements RenderersFactory, Dumper.Dumpable
ARenderersFactory
that captures interactions with the audio and videoMediaCodecAdapter
instances.The captured interactions can be used in a test assertion via the
Dumper.Dumpable
interface.
-
-
Constructor Summary
Constructors Constructor Description CapturingRenderersFactory(Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Renderer[]
createRenderers(Handler eventHandler, VideoRendererEventListener videoRendererEventListener, AudioRendererEventListener audioRendererEventListener, TextOutput textRendererOutput, MetadataOutput metadataRendererOutput)
void
dump(Dumper dumper)
Dumps the fields of the object using thedumper
.
-
-
-
Constructor Detail
-
CapturingRenderersFactory
public CapturingRenderersFactory(Context context)
-
-
Method Detail
-
createRenderers
public Renderer[] createRenderers(Handler eventHandler, VideoRendererEventListener videoRendererEventListener, AudioRendererEventListener audioRendererEventListener, TextOutput textRendererOutput, MetadataOutput metadataRendererOutput)
Description copied from interface:RenderersFactory
- Specified by:
createRenderers
in interfaceRenderersFactory
- Parameters:
eventHandler
- A handler to use when invoking event listeners and outputs.videoRendererEventListener
- An event listener for video renderers.audioRendererEventListener
- An event listener for audio renderers.textRendererOutput
- An output for text renderers.metadataRendererOutput
- An output for metadata renderers.- Returns:
- The
instances
.
-
dump
public void dump(Dumper dumper)
Description copied from interface:Dumper.Dumpable
Dumps the fields of the object using thedumper
.- Specified by:
dump
in interfaceDumper.Dumpable
- Parameters:
dumper
- TheDumper
to be used to dump fields.
-
-