@z-api/call 1.0.0-staging.0 → 1.0.0

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.
@@ -1593,7 +1593,7 @@ class ot {
1593
1593
  }
1594
1594
  class D extends B {
1595
1595
  constructor(t) {
1596
- super(), this.widget = null, this.audioConfig = { sampleRate: 16e3, channels: 1 }, this.connected = !1, this.micStarted = !1, this.cameraStarted = !1, this.destroyed = !1, this.sdkId = "", this.contacts = [], this.opts = t, this.state = new Z(), this.audio = new $(this.audioConfig.sampleRate), this.video = new J(), this.ws = new F("https://staging-call.z-api.io", t.instanceId, t.getToken), this.ws.onJson = (e) => this.handleJsonMessage(e), this.ws.onBinary = (e) => this.handleBinaryMessage(e), this.ws.onConnectionChange = (e) => this.handleConnectionChange(e), this.audio.onMicData = (e) => {
1596
+ super(), this.widget = null, this.audioConfig = { sampleRate: 16e3, channels: 1 }, this.connected = !1, this.micStarted = !1, this.cameraStarted = !1, this.destroyed = !1, this.sdkId = "", this.contacts = [], this.opts = t, this.state = new Z(), this.audio = new $(this.audioConfig.sampleRate), this.video = new J(), this.ws = new F("https://call.z-api.io", t.instanceId, t.getToken), this.ws.onJson = (e) => this.handleJsonMessage(e), this.ws.onBinary = (e) => this.handleBinaryMessage(e), this.ws.onConnectionChange = (e) => this.handleConnectionChange(e), this.audio.onMicData = (e) => {
1597
1597
  const a = new ArrayBuffer(1 + e.byteLength);
1598
1598
  new Uint8Array(a)[0] = 1, new Uint8Array(a, 1).set(new Uint8Array(e)), this.ws.send(a);
1599
1599
  }, this.audio.onAudioLevel = (e) => {