Skip to content

Commit 589bf6d

Browse files
committed
fix: add debug logs
1 parent 2c15658 commit 589bf6d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/detectors/VideoDecoderIssueDetector.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,14 @@ class VideoDecoderIssueDetector extends BaseIssueDetector {
103103
(decodeTimePerFrame, index) => index === 0 || decodeTimePerFrame > allDecodeTimePerFrame[index - 1],
104104
);
105105

106+
console.log('THROTTLE', {
107+
isDecodeTimePerFrameIncrease,
108+
volatility,
109+
mean,
110+
});
111+
106112
if (volatility > this.#volatilityThreshold && isDecodeTimePerFrameIncrease) {
113+
console.log('THROTTLE DETECTED');
107114
return { ssrc: incomeVideoStream.ssrc, allDecodeTimePerFrame, volatility };
108115
}
109116

0 commit comments

Comments
 (0)