diff --git a/html/demos/janus.js b/html/demos/janus.js index b03ca961e2..b91c9c8344 100644 --- a/html/demos/janus.js +++ b/html/demos/janus.js @@ -3052,7 +3052,7 @@ function Janus(gatewayCallbacks) { return; let 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;