Skip to content

Commit

Permalink
fix: dropped frames not reported
Browse files Browse the repository at this point in the history
  • Loading branch information
daytime-em committed Oct 19, 2024
1 parent 34a1b9c commit d702815
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ open class MuxStateCollector(
@Suppress("unused")
fun incrementDroppedFrames(droppedFrames: Int) {
this.droppedFrames += droppedFrames
muxStats.setDroppedFramesCount(this.droppedFrames.toLong())
}

/**
Expand Down Expand Up @@ -537,6 +538,8 @@ open class MuxStateCollector(
firstFrameRenderedAtMillis = FIRST_FRAME_NOT_RENDERED
playbackPositionMills = TIME_UNKNOWN
allowedHeaders.clear()
droppedFrames = 0
muxStats.setDroppedFramesCount(0)
}

@JvmSynthetic
Expand Down

0 comments on commit d702815

Please sign in to comment.