Skip to content

Commit

Permalink
Fix getBitrate() in janus.js for iOS devices (#3340)
Browse files Browse the repository at this point in the history
  • Loading branch information
avenal committed Apr 16, 2024
1 parent ffecb2d commit bc04499
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion html/demos/janus.js
Expand Up @@ -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;
Expand Down

0 comments on commit bc04499

Please sign in to comment.