@signalwire/js 4.0.0-dev-20260427213711 → 4.0.0-dev-20260427214957
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/browser.mjs +4 -3
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +5 -2
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +47 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5145,7 +5145,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
5145
5145
|
const track = localStream.getTracks().find((track$1) => track$1.kind === kind);
|
|
5146
5146
|
if (track) {
|
|
5147
5147
|
this.transceiverController?.stopTrackSender(kind);
|
|
5148
|
-
this.
|
|
5148
|
+
this.localStreamController.removeTrack(track.id);
|
|
5149
5149
|
logger$16.debug(`[RTCPeerConnectionController] Stopped existing ${kind} track: ${track.id}`, localStream.getTracks());
|
|
5150
5150
|
if (!deviceInfo) {
|
|
5151
5151
|
logger$16.debug(`[RTCPeerConnectionController] ${kind} input device selected: none`);
|
|
@@ -5157,7 +5157,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
5157
5157
|
} })).getTracks().find((t) => t.kind === kind);
|
|
5158
5158
|
if (streamTrack) {
|
|
5159
5159
|
logger$16.debug(`[RTCPeerConnectionController] Adding new ${kind} track: ${streamTrack.id}`);
|
|
5160
|
-
this.
|
|
5160
|
+
this.localStreamController.addTrack(streamTrack);
|
|
5161
5161
|
await this.transceiverController?.replaceSenderTrack(kind, streamTrack);
|
|
5162
5162
|
logger$16.debug(`[RTCPeerConnectionController] Added new ${kind} track: ${streamTrack.id}`, this.localStream?.getTracks());
|
|
5163
5163
|
}
|
|
@@ -11371,6 +11371,7 @@ var EmbedTokenCredentialProvider = class {
|
|
|
11371
11371
|
try {
|
|
11372
11372
|
const response = await fetch(url, {
|
|
11373
11373
|
method: "POST",
|
|
11374
|
+
headers: { "Content-Type": "application/json" },
|
|
11374
11375
|
body: JSON.stringify({ token: this.embedToken }),
|
|
11375
11376
|
signal: controller.signal
|
|
11376
11377
|
});
|
|
@@ -11483,6 +11484,7 @@ exports.ClientPreferences = ClientPreferences;
|
|
|
11483
11484
|
exports.CollectionFetchError = require_operators.CollectionFetchError;
|
|
11484
11485
|
exports.DPoPInitError = require_operators.DPoPInitError;
|
|
11485
11486
|
exports.DeviceTokenError = require_operators.DeviceTokenError;
|
|
11487
|
+
exports.EmbedTokenCredentialProvider = EmbedTokenCredentialProvider;
|
|
11486
11488
|
exports.InvalidCredentialsError = require_operators.InvalidCredentialsError;
|
|
11487
11489
|
exports.MediaTrackError = require_operators.MediaTrackError;
|
|
11488
11490
|
exports.MessageParseError = require_operators.MessageParseError;
|
|
@@ -11500,6 +11502,7 @@ exports.UnexpectedError = require_operators.UnexpectedError;
|
|
|
11500
11502
|
exports.VertoPongError = require_operators.VertoPongError;
|
|
11501
11503
|
exports.WebRTCCall = WebRTCCall;
|
|
11502
11504
|
exports.embeddableCall = embeddableCall;
|
|
11505
|
+
exports.getLogger = require_operators.getLogger;
|
|
11503
11506
|
exports.isSelfParticipant = isSelfParticipant;
|
|
11504
11507
|
exports.ready = ready;
|
|
11505
11508
|
exports.setDebugOptions = require_operators.setDebugOptions;
|