ExperimentalAnalyzerModeFactory


@UnstableApi
public final class ExperimentalAnalyzerModeFactory


Factory for creating instances of Transformer that can be used to analyze media.

When using Transformer to analyze decoded data, users should provide their analysis effects through the effects.

This class is experimental and will be renamed or removed in a future release.

Summary

Public methods

static Transformer

Builds a Transformer that runs as an analyzer.

static Transformer
buildAnalyzer(Context context, Transformer transformer)

Builds a Transformer that runs as an analyzer.

Public methods

buildAnalyzer

public static Transformer buildAnalyzer(Context context)

Builds a Transformer that runs as an analyzer.

No encoding or muxing is performed, therefore no data is written to any output files.

Parameters
Context context

The Context.

Returns
Transformer

The analyzer Transformer.

buildAnalyzer

public static Transformer buildAnalyzer(Context context, Transformer transformer)

Builds a Transformer that runs as an analyzer.

No encoding or muxing is performed, therefore no data is written to any output files.

Parameters
Context context

The Context.

Transformer transformer

The Transformer to be built upon.

Returns
Transformer

The analyzer Transformer.