Skip to content

Commit

Permalink
Show latency of video
Browse files Browse the repository at this point in the history
  • Loading branch information
irtimmer committed Jun 25, 2014
1 parent 0ce21aa commit 40fd97b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/limelight/binding/video/AbstractVideoRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public void run() {

if (System.currentTimeMillis()>last+2000) {
int bitrate = (dataSize/2)/1024;
System.out.println("Video " + bitrate + "kB/s");
long latency = System.currentTimeMillis()-decodeUnit.getReceiveTimestamp();
System.out.println("Video " + bitrate + "kB/s " + latency + "ms");
dataSize = 0;
last = System.currentTimeMillis();
}
Expand Down

0 comments on commit 40fd97b

Please sign in to comment.