Class PlaybackOutput
- java.lang.Object
-
- com.google.android.exoplayer2.robolectric.PlaybackOutput
-
- All Implemented Interfaces:
Dumper.Dumpable
public final class PlaybackOutput extends Object implements Dumper.Dumpable
Class to capture output from a playback test.Implements
Dumper.Dumpableso the output can be easily dumped to a string for comparison against previous test runs.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddump(Dumper dumper)Dumps the fields of the object using thedumper.static PlaybackOutputregister(ExoPlayer player, CapturingRenderersFactory capturingRenderersFactory)Create an instance that captures the metadata and text output fromplayerand the audio and video output viacapturingRenderersFactory.
-
-
-
Method Detail
-
register
public static PlaybackOutput register(ExoPlayer player, CapturingRenderersFactory capturingRenderersFactory)
Create an instance that captures the metadata and text output fromplayerand the audio and video output viacapturingRenderersFactory.Must be called before playback to ensure metadata and text output is captured correctly.
- Parameters:
player- TheExoPlayerto capture metadata and text output from.capturingRenderersFactory- TheCapturingRenderersFactoryto capture audio and video output from.- Returns:
- A new instance that can be used to dump the playback output.
-
dump
public void dump(Dumper dumper)
Description copied from interface:Dumper.DumpableDumps the fields of the object using thedumper.- Specified by:
dumpin interfaceDumper.Dumpable- Parameters:
dumper- TheDumperto be used to dump fields.
-
-