Skip to content

Streaming Metrics #1572

Answered by pedroSG94
pndhd1 asked this question in Q&A
Sep 6, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hello,

You can obtain all that info mentioned about stream except RTT.
From StreamClient (getStreamClient method) class you can obtain this info:

  abstract fun hasCongestion(): Boolean
  abstract fun getCacheSize(): Int
  abstract fun getItemsInCache(): Int
  abstract fun getSentAudioFrames(): Long
  abstract fun getSentVideoFrames(): Long
  abstract fun getDroppedAudioFrames(): Long
  abstract fun getDroppedVideoFrames(): Long

Using callbacks of ConnectChecker you can get the bandwidth from:

fun onNewBitrate(bitrate: Long)

About fps, you can get fps using setFpsListener method and listening the callback provided (this fps include dropped frames).

I'm not sure if calculate RTT in java so…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pndhd1
Comment options

Answer selected by pndhd1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants