NonFinalTextRenderer

A renderer for text.

Subtitles are decoded from sample data using SubtitleDecoder instances obtained from a SubtitleDecoderFactory. The actual rendering of the subtitle Cues is delegated to a TextOutput.

Inheritors

Constructors

Link copied to clipboard
constructor(trackType: Int, @Nullable outputHandler: Handler)
constructor(output: TextOutput, @Nullable outputLooper: Looper)
constructor(output: TextOutput, @Nullable outputLooper: Looper, decoderFactory: SubtitleDecoderFactory)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val MSG_CUSTOM_BASE: Int = 10000
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val state: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun create(formatSupport: Int): Int
Link copied to clipboard
fun disable()
Link copied to clipboard
fun enable(configuration: RendererConfiguration, formats: Array<Format>, stream: SampleStream, positionUs: Long, joining: Boolean, mayRenderStartOfStream: Boolean, startPositionUs: Long, offsetUs: Long)
Link copied to clipboard
open fun getAdaptiveSupport(supportFlags: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun getDecoderSupport(supportFlags: Int): Int
Link copied to clipboard
open fun getFormatSupport(supportFlags: Int): Int
Link copied to clipboard
open fun getHardwareAccelerationSupport(supportFlags: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun getName(): String
Link copied to clipboard
open fun getTunnelingSupport(supportFlags: Int): Int
Link copied to clipboard
open fun handleMessage(messageType: Int, message: Any)
open fun handleMessage(msg: Message): Boolean
Link copied to clipboard
Link copied to clipboard
fun init(index: Int, playerId: PlayerId)
Link copied to clipboard
Link copied to clipboard
open fun isEnded(): Boolean
Link copied to clipboard
open fun isReady(): Boolean
Link copied to clipboard
Link copied to clipboard
fun release()
Link copied to clipboard
open fun render(positionUs: Long, elapsedRealtimeUs: Long)
Link copied to clipboard
fun replaceStream(formats: Array<Format>, stream: SampleStream, startPositionUs: Long, offsetUs: Long)
Link copied to clipboard
fun reset()
Link copied to clipboard
fun resetPosition(positionUs: Long)
Link copied to clipboard
Link copied to clipboard
open fun setFinalStreamEndPositionUs(streamEndPositionUs: Long)
Sets the position at which to stop rendering the current stream.
Link copied to clipboard
Link copied to clipboard
open fun setPlaybackSpeed(currentPlaybackSpeed: Float, targetPlaybackSpeed: Float)
Link copied to clipboard
fun start()
Link copied to clipboard
fun stop()
Link copied to clipboard