meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

Fix getBitrate() #3340

Closed avenal closed 7 months ago

avenal commented 8 months ago

Since "mediaType" property seems deprecated as it was renamed to "kind" (https://developer.mozilla.org/en-US/docs/Web/API/RTCInboundRtpStreamStats), i would like to introduce small change in janus.js getBitrate function, so that it will return the correct values when called on iPhones and iPads

januscla commented 8 months ago

Thanks for your contribution, @avenal! Please make sure you sign our CLA, as it's a required step before we can merge this.

lminiero commented 7 months ago

Merging, thanks!