opensips-js-vue 0.1.10 → 0.1.12
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 +1 -1
- package/library/super.mjs +7 -7
- package/library/super.mjs.map +1 -1
- package/library/super.umd.js +2 -2
- package/library/super.umd.js.map +1 -1
- package/package.json +2 -2
package/library/index.d.ts
CHANGED
|
@@ -243,6 +243,7 @@ export declare type NoiseReductionMode = 'disabled' | 'enabled' | 'dynamic'
|
|
|
243
243
|
|
|
244
244
|
export declare interface NoiseReductionOptions {
|
|
245
245
|
mode: NoiseReductionMode,
|
|
246
|
+
vadModule?: VADModule
|
|
246
247
|
vadConfig?: Partial<VADOptions>
|
|
247
248
|
noiseThreshold?: number
|
|
248
249
|
checkEveryMs?: number
|
|
@@ -413,7 +414,6 @@ export declare type UAConfigurationExtended = UAConfiguration & {
|
|
|
413
414
|
overrideUserAgent?: (userAgent: string) => string
|
|
414
415
|
noiseReductionOptions?: NoiseReductionOptions
|
|
415
416
|
onTransportCallback?: OnTransportCallback
|
|
416
|
-
vadModule?: VADModule
|
|
417
417
|
}
|
|
418
418
|
|
|
419
419
|
export declare type updateRoomListener = (value: RoomChangeEmitType_2) => void
|
package/library/super.mjs
CHANGED
|
@@ -23443,7 +23443,7 @@ const Qo = {
|
|
|
23443
23443
|
}, Vy = 0;
|
|
23444
23444
|
class By {
|
|
23445
23445
|
constructor(n) {
|
|
23446
|
-
var s;
|
|
23446
|
+
var s, i;
|
|
23447
23447
|
if (this.isAutoAnswer = !1, this.muteWhenJoinEnabled = !1, this.isDNDEnabled = !1, this.isCallWaitingEnabled = !0, this.muted = !1, this.microphoneInputLevelValue = 1, this.speakerVolumeValue = 1, this.activeRooms = {}, this.activeCalls = {}, this.extendedCalls = {}, this.conferenceNodes = {}, this.availableMediaDevices = [], this.selectedMediaDevices = {
|
|
23448
23448
|
input: "default",
|
|
23449
23449
|
output: "default"
|
|
@@ -23455,8 +23455,8 @@ class By {
|
|
|
23455
23455
|
), this.VUMeter = new jy({
|
|
23456
23456
|
onChangeFunction: this.emitVolumeChange.bind(this)
|
|
23457
23457
|
}), this.processVADConfiguration(), this.initializeMediaDevices(), ["enabled", "dynamic"].includes(this.noiseReduction.mode)) {
|
|
23458
|
-
const i = (s = this.context.options.configuration) == null ? void 0 : s.vadModule;
|
|
23459
|
-
|
|
23458
|
+
const a = (i = (s = this.context.options.configuration) == null ? void 0 : s.noiseReductionOptions) == null ? void 0 : i.vadModule;
|
|
23459
|
+
a && a.MicVAD ? (this.MicVAD = a.MicVAD, console.log("✅ VAD module loaded successfully")) : (console.warn("⚠️ Noise reduction is enabled but VAD module is not provided. To use VAD features, please install @ricky0123/vad-web and pass it via configuration.noiseReductionOptions.vadModule option."), this.noiseReduction.mode = "disabled");
|
|
23460
23460
|
}
|
|
23461
23461
|
}
|
|
23462
23462
|
processVADConfiguration() {
|
|
@@ -26157,11 +26157,11 @@ const rd = Ge(!1), id = Ge(!1), od = Ge(!1), u_ = Ge({}), ld = Ge({}), ad = Ge(!
|
|
|
26157
26157
|
xn(c_, (l) => {
|
|
26158
26158
|
!l.length && Ks.value && (Ks.value = void 0);
|
|
26159
26159
|
});
|
|
26160
|
-
xn(Lu, async (l) => {
|
|
26161
|
-
await cn.actions.setMicrophone(l);
|
|
26160
|
+
xn(Lu, async (l, n) => {
|
|
26161
|
+
l !== n && await cn.actions.setMicrophone(l);
|
|
26162
26162
|
});
|
|
26163
|
-
xn(xu, async (l) => {
|
|
26164
|
-
await cn.actions.setSpeaker(l);
|
|
26163
|
+
xn(xu, async (l, n) => {
|
|
26164
|
+
l !== n && await cn.actions.setSpeaker(l);
|
|
26165
26165
|
});
|
|
26166
26166
|
xn(Hu, (l) => {
|
|
26167
26167
|
cn.actions.setMuteWhenJoin(l);
|