opensips-js-vue 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library/index.d.ts +7 -1
- package/library/super.mjs +12 -3
- package/library/super.mjs.map +1 -1
- package/library/super.umd.js +1 -1
- package/library/super.umd.js.map +1 -1
- package/package.json +2 -2
package/library/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ import type { Ref } from 'vue';
|
|
|
23
23
|
import { RoomChangeEmitType as RoomChangeEmitType_2 } from '@/types/rtc';
|
|
24
24
|
import { RTCSession } from 'jssip/lib/RTCSession';
|
|
25
25
|
import { RTCSessionEventMap } from 'jssip/lib/RTCSession';
|
|
26
|
+
import { RTCSessionExtended as RTCSessionExtended_2 } from '@/types/rtc';
|
|
26
27
|
import { SessionDirection } from 'jssip/lib/RTCSession';
|
|
27
28
|
import { StreamMediaType as StreamMediaType_2 } from '@/types/rtc';
|
|
28
29
|
import { UAConfiguration } from 'jssip/lib/UA';
|
|
@@ -98,7 +99,12 @@ export declare type conferenceStartListener = () => void
|
|
|
98
99
|
|
|
99
100
|
export declare type connectionListener = (value: boolean) => void
|
|
100
101
|
|
|
101
|
-
export declare type connectionStateChangeListener = (event:
|
|
102
|
+
export declare type connectionStateChangeListener = (event: ConnectionStateChangeType) => void
|
|
103
|
+
|
|
104
|
+
export declare type ConnectionStateChangeType = {
|
|
105
|
+
session: RTCSessionExtended_2,
|
|
106
|
+
connectionState: string
|
|
107
|
+
}
|
|
102
108
|
|
|
103
109
|
export declare interface CustomLoggerType {
|
|
104
110
|
log: CommonLogMethodType
|
package/library/super.mjs
CHANGED
|
@@ -24389,7 +24389,10 @@ class YI {
|
|
|
24389
24389
|
event: c
|
|
24390
24390
|
}), r.connection) {
|
|
24391
24391
|
const A = r.connection.connectionState;
|
|
24392
|
-
(A === "closed" || A === "disconnected") && this.context.emit("connectionStateChange",
|
|
24392
|
+
(A === "closed" || A === "disconnected") && this.context.emit("connectionStateChange", {
|
|
24393
|
+
session: r,
|
|
24394
|
+
connectionState: A
|
|
24395
|
+
});
|
|
24393
24396
|
}
|
|
24394
24397
|
["enabled", "dynamic"].includes(this.noiseReduction.mode) && this.stopSessionVad(r._id);
|
|
24395
24398
|
const d = this.getActiveCalls[r.id];
|
|
@@ -24409,7 +24412,10 @@ class YI {
|
|
|
24409
24412
|
event: c
|
|
24410
24413
|
}), r.connection) {
|
|
24411
24414
|
const A = r.connection.connectionState;
|
|
24412
|
-
(A === "closed" || A === "disconnected") && this.context.emit("connectionStateChange",
|
|
24415
|
+
(A === "closed" || A === "disconnected") && this.context.emit("connectionStateChange", {
|
|
24416
|
+
session: r,
|
|
24417
|
+
connectionState: A
|
|
24418
|
+
});
|
|
24413
24419
|
}
|
|
24414
24420
|
["enabled", "dynamic"].includes(this.noiseReduction.mode) && this.stopSessionVad(r._id), r.id === this.callAddingInProgress && (this.callAddingInProgress = void 0);
|
|
24415
24421
|
const d = this.getActiveCalls[r.id];
|
|
@@ -24424,7 +24430,10 @@ class YI {
|
|
|
24424
24430
|
});
|
|
24425
24431
|
const a = (c) => {
|
|
24426
24432
|
c && c.addEventListener("connectionstatechange", (e) => {
|
|
24427
|
-
this.context.emit("connectionStateChange",
|
|
24433
|
+
this.context.emit("connectionStateChange", {
|
|
24434
|
+
session: r,
|
|
24435
|
+
connectionState: c.connectionState
|
|
24436
|
+
});
|
|
24428
24437
|
});
|
|
24429
24438
|
};
|
|
24430
24439
|
if (r.connection && a(r.connection), r.on("peerconnection", ({ peerconnection: c }) => {
|