PlaybackOutput
@UnstableApi
public final class PlaybackOutput implements Dumper.Dumpable
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.
Summary
Public methods |
|
|---|---|
void |
Dumps the fields of the object using the |
static PlaybackOutput |
register(Creates an instance that captures the metadata, image and text output from |
static PlaybackOutput |
Creates an instance that captures only the metadata, image and text output from |
Public methods
register
public static PlaybackOutput register(
ExoPlayer player,
CapturingRenderersFactory capturingRenderersFactory
)
Creates an instance that captures the metadata, image and text output from player, and the audio and video output via capturingRenderersFactory.
Must be called before playback to ensure metadata, image and text output is captured correctly.
| Parameters | |
|---|---|
ExoPlayer player |
The |
CapturingRenderersFactory capturingRenderersFactory |
The |
| Returns | |
|---|---|
PlaybackOutput |
A new instance that can be used to dump the playback output. |
registerWithoutRendererCapture
public static PlaybackOutput registerWithoutRendererCapture(ExoPlayer player)
Creates an instance that captures only the metadata, image and text output from player.
This instance will not capture any audio or video data.
Must be called before playback to ensure metadata, image and text output is captured correctly.
| Returns | |
|---|---|
PlaybackOutput |
A new instance that can be used to dump the playback output. |