@UnstableApi
class PlaybackOutput : 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 functions

Unit
dump(dumper: Dumper!)

Dumps the fields of the object using the dumper.

java-static PlaybackOutput!
register(
    player: ExoPlayer!,
    capturingRenderersFactory: CapturingRenderersFactory!
)

Create an instance that captures the metadata and text output from player and the audio and video output via capturingRenderersFactory.

Public functions

dump

fun dump(dumper: Dumper!): Unit

Dumps the fields of the object using the dumper.

Parameters
dumper: Dumper!

The Dumper to be used to dump fields.

register

java-static fun register(
    player: ExoPlayer!,
    capturingRenderersFactory: CapturingRenderersFactory!
): PlaybackOutput!

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: ExoPlayer!

The ExoPlayer to capture metadata and text output from.

capturingRenderersFactory: CapturingRenderersFactory!

The CapturingRenderersFactory to capture audio and video output from.

Returns
PlaybackOutput!

A new instance that can be used to dump the playback output.