NonFinalTextRenderer

constructor(trackType: Int, @Nullable outputHandler: Handler)

Parameters

trackType

The track type that the renderer handles. One of the C TRACK_TYPE_* constants.

outputHandler

constructor(output: TextOutput, @Nullable outputLooper: Looper)

Parameters

output

The output.

outputLooper

The looper associated with the thread on which the output should be called. If the output makes use of standard Android UI components, then this should normally be the looper associated with the application's main thread, which can be obtained using getMainLooper. Null may be passed if the output should be called directly on the player's internal rendering thread.


constructor(output: TextOutput, @Nullable outputLooper: Looper, decoderFactory: SubtitleDecoderFactory)

Parameters

output

The output.

outputLooper

The looper associated with the thread on which the output should be called. If the output makes use of standard Android UI components, then this should normally be the looper associated with the application's main thread, which can be obtained using getMainLooper. Null may be passed if the output should be called directly on the player's internal rendering thread.

decoderFactory

A factory from which to obtain SubtitleDecoder instances.