UNPKG

infobip-rtc

Version:

Infobip RTC JavaScript SDK - Infobip WebRTC API Implementation

39 lines 1.23 kB
export class Log { constructor(event, callId, data, timestamp = Date.now()) { this.event = event; this.callId = callId; this.data = data; this.timestamp = timestamp; } } export class IceConnectionChangeLog extends Log { constructor(callId, data) { super("ice-connection-change", callId, data); } } export class SelectedIceCandidatePairLog extends Log { constructor(callId, data) { super("ice-selected-candidate-pair", callId, data); } } export class CallMediaStatsLog extends Log { constructor(event, conferenceId, callId, name, data, timestamp) { super(event, callId, { stats: data, peerConnection: name, conferenceId: conferenceId }, timestamp); } } export class CallFeedbackLog extends Log { constructor(callId, data) { super("call-feedback", callId, data); } } export class ConferenceFeedbackLog extends Log { constructor(conferenceId, data) { super("conference-feedback", conferenceId, Object.assign(Object.assign({}, data), { conferenceId: conferenceId })); } } export class ErrorLog extends Log { constructor(callId, data) { super("error", callId, data); } } //# sourceMappingURL=Log.js.map