Dumper.Dumpablepublic final class PlaybackOutput extends Object implements Dumper.Dumpable
Implements Dumper.Dumpable so the output can be easily dumped to a string for
comparison against previous test runs.
| Modifier and Type | Method | Description |
|---|---|---|
void |
dump(Dumper dumper) |
Dumps the fields of the object using the
dumper. |
static PlaybackOutput |
register(SimpleExoPlayer player,
CapturingRenderersFactory capturingRenderersFactory) |
Create an instance that captures the metadata and text output from
player and the audio
and video output via capturingRenderersFactory. |
public static PlaybackOutput register(SimpleExoPlayer player, CapturingRenderersFactory capturingRenderersFactory)
player and the audio
and video output via capturingRenderersFactory.
Must be called before playback to ensure metadata and text output is captured correctly.
player - The SimpleExoPlayer to capture metadata and text output from.capturingRenderersFactory - The CapturingRenderersFactory to capture audio and
video output from.public void dump(Dumper dumper)
Dumper.Dumpabledumper.dump in interface Dumper.Dumpabledumper - The Dumper to be used to dump fields.