opensips-js 0.1.16 → 0.1.17
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/README.md +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/opensips-js.cjs.js +1 -1
- package/dist/opensips-js.es.js +3 -3
- package/dist/opensips-js.iife.js +1 -1
- package/dist/opensips-js.umd.js +1 -1
- package/package.json +1 -1
- package/src/types/rtc.d.ts +1 -1
package/dist/opensips-js.es.js
CHANGED
|
@@ -23458,7 +23458,7 @@ const da = {
|
|
|
23458
23458
|
}, cS = 0;
|
|
23459
23459
|
class fS {
|
|
23460
23460
|
constructor(t) {
|
|
23461
|
-
var n;
|
|
23461
|
+
var n, a;
|
|
23462
23462
|
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 = {
|
|
23463
23463
|
input: "default",
|
|
23464
23464
|
output: "default"
|
|
@@ -23470,8 +23470,8 @@ class fS {
|
|
|
23470
23470
|
), this.VUMeter = new oS({
|
|
23471
23471
|
onChangeFunction: this.emitVolumeChange.bind(this)
|
|
23472
23472
|
}), this.processVADConfiguration(), this.initializeMediaDevices(), ["enabled", "dynamic"].includes(this.noiseReduction.mode)) {
|
|
23473
|
-
const a = (n = this.context.options.configuration) == null ? void 0 : n.vadModule;
|
|
23474
|
-
|
|
23473
|
+
const o = (a = (n = this.context.options.configuration) == null ? void 0 : n.noiseReductionOptions) == null ? void 0 : a.vadModule;
|
|
23474
|
+
o && o.MicVAD ? (this.MicVAD = o.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");
|
|
23475
23475
|
}
|
|
23476
23476
|
}
|
|
23477
23477
|
processVADConfiguration() {
|