Skip to content

Commit

Permalink
Document enums
Browse files Browse the repository at this point in the history
  • Loading branch information
ibc committed Aug 10, 2023
1 parent 5d8e02d commit 056bf66
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
24 changes: 24 additions & 0 deletions src/rtcp/RtcpPacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,37 @@ export const COMMON_HEADER_LENGTH = 4;
// eslint-disable-next-line no-shadow
export enum RtcpPacketType
{
/**
* RTCP Sender Report packet.
*/
SR = 200,
/**
* RTCP Receiver Report packet.
*/
RR = 201,
/**
* RTCP Sender Report packet.
*/
SDES = 202,
/**
* RTCP BYE packet.
*/
BYE = 203,
/**
* RTCP APP packet.
*/
APP = 204,
/**
* RTCP Transport Layer Feedback packet.
*/
RTPFB = 205,
/**
* RTCP Payload Specific Feedback packet.
*/
PSFB = 206,
/**
* RTCP Extended Report packet.
*/
XR = 207
}

Expand Down
24 changes: 24 additions & 0 deletions src/rtcp/SdesPacket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,37 @@ const SDES_CHUNK_MIN_LENGTH = 8;
// eslint-disable-next-line no-shadow
export enum SdesItemType
{
/**
* Canonical End-Point Identifier SDES item.
*/
CNAME = 1,
/**
* User Name SDES item.
*/
NAME = 2,
/**
* Electronic Mail Address SDES item.
*/
EMAIL = 3,
/**
* Phone Number SDES item.
*/
PHONE = 4,
/**
* Geographic User Location SDES item.
*/
LOC = 5,
/**
* Application or Tool Name SDES item.
*/
TOOL = 6,
/**
* Notice/Status SDES item.
*/
NOTE = 7,
/**
* Private Extensions SDES item.
*/
PRIV = 8
}

Expand Down

0 comments on commit 056bf66

Please sign in to comment.