ExperimentalAnalyzerModeFactory


@UnstableApi
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 functions

java-static Transformer!

Builds a Transformer that runs as an analyzer.

java-static Transformer!
buildAnalyzer(context: Context!, transformer: Transformer!)

Builds a Transformer that runs as an analyzer.

Public functions

buildAnalyzer

java-static fun buildAnalyzer(context: Context!): 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.

Returns
Transformer!

The analyzer Transformer.

buildAnalyzer

java-static fun buildAnalyzer(context: Context!, transformer: 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.