BasePacket

abstract class BasePacket(val psiManager: PsiManager, limitSize: Int)

Created by pedro on 20/8/23.

ISO/IEC 13818-1

Header (4 bytes):

Sync byte -> 8 bits Transport error indicator (TEI) -> 1 bit Payload unit start indicator (PUSI) -> 1 bit Transport priority -> 1 bit PID -> 13 bits Transport scrambling control (TSC) -> 2 bits Adaptation field control -> 2 bits Continuity counter -> 4 bits

Optional fields Adaptation field -> variable Payload data -> variable

Inheritors

Constructors

Link copied to clipboard
constructor(psiManager: PsiManager, limitSize: Int)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract suspend fun createAndSendPacket(mediaFrame: MediaFrame, callback: suspend (List<MpegTsPacket>) -> Unit)
Link copied to clipboard
fun reset(resetInfo: Boolean)
Link copied to clipboard
abstract fun resetPacket(resetInfo: Boolean)
Link copied to clipboard
fun setLimitSize(limitSize: Int)