obi-sdk 0.3.3 → 0.3.4
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/dist/obi-sdk.es.js +2 -2
- package/dist/obi-sdk.umd.js +1 -1
- package/package.json +3 -6
- package/dist/modular/chunks/obi-widget-93253f25.js +0 -11147
- package/dist/modular/chunks/obi-widget-93253f25.js.map +0 -1
- package/dist/modular/chunks/types-82772f00.js +0 -22431
- package/dist/modular/chunks/types-82772f00.js.map +0 -1
- package/dist/modular/core.js +0 -4086
- package/dist/modular/core.js.map +0 -1
- package/dist/modular/index.js +0 -59
- package/dist/modular/index.js.map +0 -1
- package/dist/modular/ui.js +0 -253
- package/dist/modular/ui.js.map +0 -1
- package/dist/obi-sdk.standalone.iife.js +0 -562
- package/dist/obi-sdk.standalone.iife.js.map +0 -1
package/dist/obi-sdk.es.js
CHANGED
|
@@ -16024,7 +16024,7 @@ class Lc {
|
|
|
16024
16024
|
this.room && (this.room.on(T.LocalTrackUnpublished, (e) => {
|
|
16025
16025
|
e.source === E.Source.ScreenShare && (this.screenStream = void 0);
|
|
16026
16026
|
}), this.room.on(T.Disconnected, () => {
|
|
16027
|
-
|
|
16027
|
+
this.disconnect();
|
|
16028
16028
|
}), this.room.on(T.ParticipantDisconnected, () => {
|
|
16029
16029
|
this.disconnect();
|
|
16030
16030
|
}), this.room.on(T.TrackSubscribed, (e, A, n) => {
|
|
@@ -16119,7 +16119,7 @@ class Lc {
|
|
|
16119
16119
|
var e, A, n;
|
|
16120
16120
|
this.room && (this.room.disconnect(!0), this.room.removeAllListeners(), this.room = void 0), (e = this.screenStream) != null && e.track && this.screenStream.track.stop(), this.microphoneStream && this.microphoneStream.getTracks().forEach((i) => i.stop()), this._userAudioTimer && (window.clearTimeout(this._userAudioTimer), this._userAudioTimer = null), this._assistantAudioTimer && (window.clearTimeout(this._assistantAudioTimer), this._assistantAudioTimer = null), await ((A = this.userAudioContext) == null ? void 0 : A.close().catch(() => {
|
|
16121
16121
|
})), this.userAudioContext = null, await ((n = this.assistantAudioContext) == null ? void 0 : n.close().catch(() => {
|
|
16122
|
-
})), this.assistantAudioContext = null, this.setState(H.READY);
|
|
16122
|
+
})), this.assistantAudioContext = null, this.setState(H.READY), this.emitter.emit("disconnected");
|
|
16123
16123
|
}
|
|
16124
16124
|
setState(e) {
|
|
16125
16125
|
e !== this.currentState && (this.currentState = e, this.emitter.emit("stateChanged", e));
|