Skip to content

Commit

Permalink
chore(2.2.15): updated version to 2.2.15
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamjain-plivo authored Oct 3, 2024
1 parent d982753 commit 13a6135
Show file tree
Hide file tree
Showing 5 changed files with 432 additions and 10 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@

# Changelog
All notable GA release changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v2.2.15 (released@ 03-10-2024)

**Feature**
* Sending complete dump of getStats() API to call insights through newly introduced event named `CALL_STATS_DUMP`.

**Bug Fixes**
* Resolved the error when the logout is called just after the call is termintated.

## v2.2.14 (released@ 19-09-2024)

**Feature**
Expand Down
108 changes: 107 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1345,6 +1345,108 @@ declare module 'plivo-browser-sdk/constants' {
declare module 'plivo-browser-sdk/stats/rtpStats' {
import { Client, Storage } from 'plivo-browser-sdk/client';
import { AudioLevel } from 'plivo-browser-sdk/media/audioLevel';
export interface LocalCandidate {
id?: string;
address?: string;
port?: string;
relatedAddress?: string;
relatedPort?: string;
candidateType?: string;
usernameFragment?: string;
}
type LocalCandidateMap = {
[timestamp: string]: LocalCandidate;
};
export interface RemoteCandidate {
id?: string;
address?: string;
port?: string;
candidateType?: string;
usernameFragment?: string;
}
export interface CandidatePair {
availableOutgoingBitrate?: string;
consentRequestsSent?: number;
id?: string;
lastPacketReceivedTimestamp?: string;
lastPacketSentTimestamp?: string;
localCandidateId?: string;
nominated?: string;
packetsDiscardedOnSend?: string;
packetsReceived?: string;
packetsSent?: string;
remoteCandidateId?: string;
requestsReceived?: number;
requestsSent?: number;
responsesReceived?: number;
responsesSent?: number;
state?: string;
transportId?: string;
writable?: boolean;
}
export interface Transport {
id?: string;
dtlsRole?: string;
dtlsState?: string;
iceRole?: string;
iceState?: string;
packetsReceived?: string;
packetsSent?: string;
selectedCandidatePairChanges?: number;
selectedCandidatePairId?: string;
}
export interface OutboundRTP {
bytesSent?: number;
packetsSent?: number;
retransmittedBytesSent?: number;
retransmittedPacketsSent?: number;
transportId?: string;
}
export interface RemoteInboundRTP {
fractionLost?: number;
packetsLost?: number;
roundTripTime?: string;
roundTripTimeMeasurements?: number;
totalRoundTripTime?: string;
transportId?: string;
}
export interface InboundRTP {
bytesReceived?: number;
jitterBufferDelay?: string;
jitterBufferEmittedCount?: number;
jitterBufferMinimumDelay?: string;
jitterBufferTargetDelay?: string;
packetsDiscarded?: number;
packetsLost?: number;
packetsReceived?: number;
totalSamplesDuration?: string;
totalSamplesReceived?: string;
transportId?: string;
}
export interface RemoteOutboundRTP {
bytesSent?: number;
packetsSent?: number;
reportsSent?: number;
totalRoundTripTime?: string;
transportId?: string;
}
export interface StatsDump {
msg: string;
callUUID: string;
xcallUUID: string;
source: string;
timeStamp: number;
version: string;
changedCandidatedInfo: LocalCandidateMap;
localCandidate: LocalCandidate;
remoteCandidate: RemoteCandidate;
transport: Transport;
candidatePair: CandidatePair;
outboundRTP: OutboundRTP;
remoteInboundRTP: RemoteInboundRTP;
inboundRTP: InboundRTP;
remoteOutboundRTP: RemoteOutboundRTP;
}
export interface StatsLocalStream {
ssrc?: number;
packetsLost?: number;
Expand Down Expand Up @@ -1426,6 +1528,9 @@ declare module 'plivo-browser-sdk/stats/rtpStats' {
* @private
*/
pc: RTCPeerConnection;
rtpsender: RTCStatsReport;
rtpreceiver: RTCStatsReport;
localCandidateInfo: LocalCandidateMap;
/**
* Unique identifier generated for a call by server
* @private
Expand Down Expand Up @@ -1537,10 +1642,11 @@ declare module 'plivo-browser-sdk/stats/rtpStats' {
* @private
*/
constructor(client: Client);
sendCallStatsDump: (stream: StatsDump) => Promise<void>;
/**
* Stop analysing audio levels for local and remote streams.
*/
stop: () => void;
stop: () => Promise<void>;
}
export {};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@ export class Client extends EventEmitter {
this.isIncomingGrant = false;
this.accessToken = null;
}
if (this._currentSession) {
if (this._currentSession && !this._currentSession.session.isEnded()) {
this._currentSession.addConnectionStage(
`logout()@${new Date().getTime()}`,
);
Expand Down
Loading

0 comments on commit 13a6135

Please sign in to comment.