SubtitleDecoder

Decodes the packets of one subtitle stream, from MediaSource.openSubtitleDecoder. Read the packets with a PacketReader and hand each one to decode.

Not thread safe: use one decoder from one thread at a time.

Decodes the packets of one subtitle stream, from MediaSource.openSubtitleDecoder. Read the packets with a PacketReader and hand each one to decode.

Not thread safe: use one decoder from one thread at a time.

Decodes the packets of one subtitle stream, from MediaSource.openSubtitleDecoder. Read the packets with a PacketReader and hand each one to decode.

Not thread safe: use one decoder from one thread at a time.

Decodes the packets of one subtitle stream, from MediaSource.openSubtitleDecoder. Read the packets with a PacketReader and hand each one to decode.

Not thread safe: use one decoder from one thread at a time.

Decodes the packets of one subtitle stream, from MediaSource.openSubtitleDecoder. Read the packets with a PacketReader and hand each one to decode.

Not thread safe: use one decoder from one thread at a time.

Properties

Link copied to clipboard
expect val stream: StreamInfo
actual val stream: StreamInfo
actual val stream: StreamInfo
actual val stream: StreamInfo
actual val stream: StreamInfo

Functions

Link copied to clipboard
expect open override fun close()
actual open override fun close()
actual open override fun close()
actual open override fun close()
actual open override fun close()
Link copied to clipboard
expect fun decode(packet: Packet): Subtitle?

Decodes one packet of stream. Null when the packet completes no subtitle, which is normal: a Blu-ray stream sends its palette and its image as separate packets before the one that shows them. The caller still owns packet and closes it.

actual fun decode(packet: Packet): Subtitle?

Decodes one packet of stream. Null when the packet completes no subtitle, which is normal: a Blu-ray stream sends its palette and its image as separate packets before the one that shows them. The caller still owns packet and closes it.

actual fun decode(packet: Packet): Subtitle?

Decodes one packet of stream. Null when the packet completes no subtitle, which is normal: a Blu-ray stream sends its palette and its image as separate packets before the one that shows them. The caller still owns packet and closes it.

actual fun decode(packet: Packet): Subtitle?

Decodes one packet of stream. Null when the packet completes no subtitle, which is normal: a Blu-ray stream sends its palette and its image as separate packets before the one that shows them. The caller still owns packet and closes it.

actual fun decode(packet: Packet): Subtitle?

Decodes one packet of stream. Null when the packet completes no subtitle, which is normal: a Blu-ray stream sends its palette and its image as separate packets before the one that shows them. The caller still owns packet and closes it.

Link copied to clipboard
expect fun drain(): Subtitle?

What the decoder still holds once the packets of stream have run out, or null when it holds nothing, which is the answer of every decoder but a few.

actual fun drain(): Subtitle?

What the decoder still holds once the packets of stream have run out, or null when it holds nothing, which is the answer of every decoder but a few.

actual fun drain(): Subtitle?

What the decoder still holds once the packets of stream have run out, or null when it holds nothing, which is the answer of every decoder but a few.

actual fun drain(): Subtitle?

What the decoder still holds once the packets of stream have run out, or null when it holds nothing, which is the answer of every decoder but a few.

actual fun drain(): Subtitle?

What the decoder still holds once the packets of stream have run out, or null when it holds nothing, which is the answer of every decoder but a few.

Link copied to clipboard
expect fun flush()

Forgets the partial subtitle the decoder holds, after a seek.

actual fun flush()

Forgets the partial subtitle the decoder holds, after a seek.

actual fun flush()

Forgets the partial subtitle the decoder holds, after a seek.

actual fun flush()

Forgets the partial subtitle the decoder holds, after a seek.

actual fun flush()

Forgets the partial subtitle the decoder holds, after a seek.