From 40fd97b14a18c9766aa1ee8110e8b67da4d9526d Mon Sep 17 00:00:00 2001 From: Iwan Timmer Date: Wed, 25 Jun 2014 23:56:44 +0200 Subject: [PATCH] Show latency of video --- src/com/limelight/binding/video/AbstractVideoRenderer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/limelight/binding/video/AbstractVideoRenderer.java b/src/com/limelight/binding/video/AbstractVideoRenderer.java index a0e85553..5a35db7e 100644 --- a/src/com/limelight/binding/video/AbstractVideoRenderer.java +++ b/src/com/limelight/binding/video/AbstractVideoRenderer.java @@ -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(); }