メインコンテンツまでスキップ

Class: RtpHeader

Constructors#

constructor#

new RtpHeader(props?)

Parameters#

NameType
propsPartial<RtpHeader>

Defined in#

packages/rtp/src/rtp/rtp.ts:48

Properties#

csrc#

csrc: number[] = []

Defined in#

packages/rtp/src/rtp/rtp.ts:44


extension#

extension: boolean = false

Defined in#

packages/rtp/src/rtp/rtp.ts:37


extensionLength#

Optional extensionLength: number

deserialize only

Defined in#

packages/rtp/src/rtp/rtp.ts:47


extensionProfile#

extensionProfile: ExtensionProfile

Defined in#

packages/rtp/src/rtp/rtp.ts:45


extensions#

extensions: Extension[] = []

Defined in#

packages/rtp/src/rtp/rtp.ts:48


marker#

marker: boolean = false

Defined in#

packages/rtp/src/rtp/rtp.ts:38


padding#

padding: boolean = false

Defined in#

packages/rtp/src/rtp/rtp.ts:35


paddingSize#

paddingSize: number = 0

Defined in#

packages/rtp/src/rtp/rtp.ts:36


payloadOffset#

payloadOffset: number = 0

Defined in#

packages/rtp/src/rtp/rtp.ts:39


payloadType#

payloadType: number = 0

Defined in#

packages/rtp/src/rtp/rtp.ts:40


sequenceNumber#

sequenceNumber: number = 0

Defined in#

packages/rtp/src/rtp/rtp.ts:41


ssrc#

ssrc: number = 0

Defined in#

packages/rtp/src/rtp/rtp.ts:43


timestamp#

timestamp: number = 0

Defined in#

packages/rtp/src/rtp/rtp.ts:42


version#

version: number = 2

Defined in#

packages/rtp/src/rtp/rtp.ts:34

Accessors#

serializeSize#

get serializeSize(): number

Returns#

number

Defined in#

packages/rtp/src/rtp/rtp.ts:162

Methods#

serialize#

serialize(size): Buffer

Parameters#

NameType
sizenumber

Returns#

Buffer

Defined in#

packages/rtp/src/rtp/rtp.ts:189


deSerialize#

Static deSerialize(rawPacket): RtpHeader

Parameters#

NameType
rawPacketBuffer

Returns#

RtpHeader

Defined in#

packages/rtp/src/rtp/rtp.ts:53