2.7.2 (August 12, 2020)
Bug Fixes
-
Fixed a bug where a Participant in a large Group Room sometimes gets inadvertently disconnected with a MediaServerRemoteDescFailedError. (JSDK-2893)
-
Fixed a bug where
Room.getStats()
returned stats for only one of the temporal layers of a VP8 simulcast VideoTrack. Now, you will have aLocalVideoTrackStats
object for each temporal layer, which you can recognize by thetrackId
andtrackSid
properties. (JSDK-2920)
async function getBytesSentOnLocalVideoTrack(room, trackSid) {
const stats = await room.getStats();
let totalBytesSent = 0;
stats.forEach(stat => {
totalBytesSent += stat.localVideoTrackStats
.filter(localVideoTrackStats => trackSid === localVideoTrackStats.trackSid)
.reduce((bytesSent, localVideoTrackStats) => bytesSent + localVideoTrackStats.bytesSent, 0);
});
return totalBytesSent;
}
Changes
- Added metrics about signaling server connections. This is internal change, and has no effect on the SDK API.