This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MV-410] Add getStats function (#39)
- Loading branch information
Showing
4 changed files
with
107 additions
and
0 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
38 changes: 38 additions & 0 deletions
38
MembraneRTC/src/main/java/org/membraneframework/rtc/models/RTCStats.kt
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 @@ | ||
package org.membraneframework.rtc.models | ||
|
||
import java.math.BigInteger | ||
|
||
data class QualityLimitationDurations( | ||
val bandwidth: Double, | ||
val cpu: Double, | ||
val none: Double, | ||
val other: Double | ||
) | ||
|
||
open class RTCStats | ||
|
||
data class RTCOutboundStats( | ||
val kind: String? = "", | ||
val rid: String? = "", | ||
val bytesSent: BigInteger? = BigInteger("0"), | ||
val targetBitrate: Double? = 0.0, | ||
val packetsSent: Long? = 0, | ||
val framesEncoded: Long? = 0, | ||
val framesPerSecond: Double? = 0.0, | ||
val frameWidth: Long? = 0, | ||
val frameHeight: Long? = 0, | ||
val qualityLimitationDurations: QualityLimitationDurations? | ||
) : RTCStats() | ||
|
||
data class RTCInboundStats( | ||
val kind: String? = "", | ||
val jitter: Double? = 0.0, | ||
val packetsLost: Int? = 0, | ||
val packetsReceived: Long? = 0, | ||
val bytesReceived: BigInteger? = BigInteger("0"), | ||
val framesReceived: Int? = 0, | ||
val frameWidth: Long? = 0, | ||
val frameHeight: Long? = 0, | ||
val framesPerSecond: Double? = 0.0, | ||
val framesDropped: Long? = 0 | ||
) : RTCStats() |