-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split
RtpStream.ts
into rtpStreamStatsTypes.ts
and `rtpStreamStat…
…sFbsUtils` Rename `scalabilityModes.ts` tp `scalabilityModesTypes.ts`
- Loading branch information
Showing
12 changed files
with
67 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 6 additions & 39 deletions
45
node/src/RtpStream.ts → node/src/rtpStreamStatsFbsUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
export type RtpStreamRecvStats = BaseRtpStreamStats & { | ||
type: string; | ||
jitter: number; | ||
packetCount: number; | ||
byteCount: number; | ||
bitrate: number; | ||
bitrateByLayer: BitrateByLayer; | ||
}; | ||
|
||
export type RtpStreamSendStats = BaseRtpStreamStats & { | ||
type: string; | ||
packetCount: number; | ||
byteCount: number; | ||
bitrate: number; | ||
}; | ||
|
||
export type BaseRtpStreamStats = { | ||
timestamp: number; | ||
ssrc: number; | ||
rtxSsrc?: number; | ||
rid?: string; | ||
kind: string; | ||
mimeType: string; | ||
packetsLost: number; | ||
fractionLost: number; | ||
packetsDiscarded: number; | ||
packetsRetransmitted: number; | ||
packetsRepaired: number; | ||
nackCount: number; | ||
nackPacketCount: number; | ||
pliCount: number; | ||
firCount: number; | ||
score: number; | ||
roundTripTime?: number; | ||
rtxPacketsDiscarded?: number; | ||
}; | ||
|
||
export type BitrateByLayer = { [key: string]: number }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export type ScalabilityMode = { | ||
spatialLayers: number; | ||
temporalLayers: number; | ||
ksvc: boolean; | ||
}; |
12 changes: 5 additions & 7 deletions
12
node/src/scalabilityModes.ts → node/src/scalabilityModesUtils.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters