diff --git a/html/janus.js b/html/janus.js
index 6511a7e79b..ae68d33b75 100644
--- a/html/janus.js
+++ b/html/janus.js
@@ -3231,7 +3231,7 @@ function Janus(gatewayCallbacks) {
return;
var inStats = false;
// Check if these are statistics on incoming media
- if((res.mediaType === "video" || res.id.toLowerCase().indexOf("video") > -1) &&
+ if((res.mediaType === "video" || res.kind === "video" || res.id.toLowerCase().indexOf("video") > -1) &&
res.type === "inbound-rtp" && res.id.indexOf("rtcp") < 0) {
// New stats
inStats = true;