@twilio/webrtc
Advanced tools
Comparing version 4.5.1 to 4.5.2
@@ -0,1 +1,9 @@ | ||
4.5.2 (January 4, 2022) | ||
========================= | ||
Bug Fixes | ||
--------- | ||
- Fixed a bug where `audioLevel`, `frameRate`, and `captureDimensions` WebRTC stats are returning null on certain browsers. With this release, these stats are now populated whenever they are available. (VIDEO-3600) | ||
4.5.1 (September 1, 2021) | ||
@@ -2,0 +10,0 @@ ========================= |
@@ -461,2 +461,3 @@ 'use strict'; | ||
var codec = null; | ||
var localMedia = null; | ||
@@ -471,2 +472,5 @@ response.forEach(function(stat) { | ||
break; | ||
case 'media-source': | ||
localMedia = stat; | ||
break; | ||
case 'track': | ||
@@ -496,2 +500,3 @@ track = stat; | ||
source, // local rtp stats | ||
localMedia, | ||
track, | ||
@@ -540,2 +545,3 @@ codec, | ||
standardizedStats.frameWidthSent = frameWidth; | ||
standardizedStats.frameWidthInput = track.frameWidth; | ||
} | ||
@@ -550,2 +556,3 @@ } | ||
standardizedStats.frameHeightSent = frameHeight; | ||
standardizedStats.frameHeightInput = track.frameHeight; | ||
} | ||
@@ -556,3 +563,3 @@ } | ||
if (typeof framesPerSecond === 'number') { | ||
standardizedStats.frameRateSent = framesPerSecond; | ||
standardizedStats[isRemote ? 'frameRateReceived' : 'frameRateSent'] = framesPerSecond; | ||
} | ||
@@ -559,0 +566,0 @@ |
{ | ||
"name": "@twilio/webrtc", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "WebRTC-related APIs and shims used by twilio-video.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
139738
3062
1