class AudioPacket

export declare class AudioPacket

An audio packet containing encoded Opus payload data and key RTP Header metadata.

Constructors

constructor(
payload: Buffer
sequence: number
timestamp: number
ssrc: number
)

Construct a new AudioPacket.

readonly
payload : Buffer

Encoded Opus payload data.

readonly
sequence : number

RTP sequence number of this packet (16-bit, wraps at 65535).

readonly
ssrc : number

RTP synchronization source identifier for this packet (32-bit). A change in SSRC indicates a new RTP stream, so any associated decoder should be reset.

readonly
timestamp : number

RTP timestamp of this packet (32-bit, wraps at 2^32 - 1, 48kHz clock).