From bc044995a94c623b747bb35ecb9f059190903803 Mon Sep 17 00:00:00 2001 From: avenal Date: Tue, 16 Apr 2024 16:42:33 +0200 Subject: [PATCH] Fix getBitrate() in janus.js for iOS devices (#3340) --- html/demos/janus.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;