docs/doc/reference/com/google/android/exoplayer2/robolectric/PlaybackOutput.html
Package com.google.android.exoplayer2.robolectric
All Implemented Interfaces:Dumper.Dumpable
public final classPlaybackOutputextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")implements[Dumper.Dumpable](../testutil/Dumper.Dumpable.html "interface in com.google.android.exoplayer2.testutil")
Class to capture output from a playback test.
Implements Dumper.Dumpable so the output can be easily dumped to a string for comparison against previous test runs.
All Methods Static Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | dump(Dumper dumper) |
Dumps the fields of the object using the dumper.
|
| static PlaybackOutput | register(ExoPlayer player, CapturingRenderersFactory capturingRenderersFactory) |
Create an instance that captures the metadata and text output from player and the audio and video output via capturingRenderersFactory.
|
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static[PlaybackOutput](PlaybackOutput.html "class in com.google.android.exoplayer2.robolectric")register([ExoPlayer](../ExoPlayer.html "interface in com.google.android.exoplayer2")player,[CapturingRenderersFactory](../testutil/CapturingRenderersFactory.html "class in com.google.android.exoplayer2.testutil")capturingRenderersFactory)
Create an instance that captures the metadata and text output from player and the audio and video output via capturingRenderersFactory.
Must be called before playback to ensure metadata and text output is captured correctly.
Parameters:player - The ExoPlayer to capture metadata and text output from.capturingRenderersFactory - The CapturingRenderersFactory to capture audio and video output from.Returns:A new instance that can be used to dump the playback output.
-
public void dump([Dumper](../testutil/Dumper.html "class in com.google.android.exoplayer2.testutil")dumper)
Description copied from interface: Dumper.Dumpable
Dumps the fields of the object using the dumper.
Specified by:dump in interface Dumper.DumpableParameters:dumper - The Dumper to be used to dump fields.