SrtPacket

class SrtPacket(val buffer: ByteBuffer, val isFirstPacketFrame: Boolean, val isLastPacketFrame: Boolean, val ts: Long, val type: PacketType = PacketType.UNKNOWN) : Packet

SRT Packet internal representation. A Frame is composed by multiple packets.

Constructors

Link copied to clipboard
constructor(buffer: ByteBuffer, isFirstPacketFrame: Boolean, isLastPacketFrame: Boolean, ts: Long, type: PacketType = PacketType.UNKNOWN)

Properties

Link copied to clipboard

Contains data.

Link copied to clipboard
Link copied to clipboard

Boolean.true if this is the first packet that describes a frame.

Link copied to clipboard

Boolean.true if this is the last packet that describes a frame.

Link copied to clipboard
Link copied to clipboard
val ts: Long

Frame timestamp in µs.

Link copied to clipboard

Packet data type

Functions

Link copied to clipboard
open override fun toString(): String