Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/js/rtc_session.js
Original file line number Diff line number Diff line change
Expand Up @@ -964,6 +964,16 @@ export default class RtcSession {
}

}
/**
* Get a promise containing raw object all RTCPeerConnection stats.
* @return Rejected promise if failed to get MediaRtpStats. The promise is never resolved with null value.
*/
async getStatsRaw() {
if (this._pc && this._pc.signalingState === 'stable') {
return await this._pc.getStats(null);
}
return Promise.reject(new IllegalState());
}

/**
* Get a promise of MediaRtpStats object for remote audio (from Amazon Connect to client).
Expand Down