@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/browser.mjs
CHANGED
|
@@ -15658,7 +15658,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
15658
15658
|
const track = localStream.getTracks().find((track$1) => track$1.kind === kind);
|
|
15659
15659
|
if (track) {
|
|
15660
15660
|
this.transceiverController?.stopTrackSender(kind);
|
|
15661
|
-
this.
|
|
15661
|
+
this.localStreamController.removeTrack(track.id);
|
|
15662
15662
|
logger$16.debug(`[RTCPeerConnectionController] Stopped existing ${kind} track: ${track.id}`, localStream.getTracks());
|
|
15663
15663
|
if (!deviceInfo) {
|
|
15664
15664
|
logger$16.debug(`[RTCPeerConnectionController] ${kind} input device selected: none`);
|
|
@@ -15670,7 +15670,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
15670
15670
|
} })).getTracks().find((t) => t.kind === kind);
|
|
15671
15671
|
if (streamTrack) {
|
|
15672
15672
|
logger$16.debug(`[RTCPeerConnectionController] Adding new ${kind} track: ${streamTrack.id}`);
|
|
15673
|
-
this.
|
|
15673
|
+
this.localStreamController.addTrack(streamTrack);
|
|
15674
15674
|
await this.transceiverController?.replaceSenderTrack(kind, streamTrack);
|
|
15675
15675
|
logger$16.debug(`[RTCPeerConnectionController] Added new ${kind} track: ${streamTrack.id}`, this.localStream?.getTracks());
|
|
15676
15676
|
}
|
|
@@ -21893,6 +21893,7 @@ var EmbedTokenCredentialProvider = class {
|
|
|
21893
21893
|
try {
|
|
21894
21894
|
const response = await fetch(url, {
|
|
21895
21895
|
method: "POST",
|
|
21896
|
+
headers: { "Content-Type": "application/json" },
|
|
21896
21897
|
body: JSON.stringify({ token: this.embedToken }),
|
|
21897
21898
|
signal: controller.signal
|
|
21898
21899
|
});
|
|
@@ -22017,5 +22018,5 @@ emitReadyEvent();
|
|
|
22017
22018
|
if (typeof process === "undefined") globalThis.process = { env: { NODE_ENV: "production" } };
|
|
22018
22019
|
|
|
22019
22020
|
//#endregion
|
|
22020
|
-
export { Address, CallCreateError, ClientPreferences, CollectionFetchError, DPoPInitError, DeviceTokenError, InvalidCredentialsError, MediaTrackError, MessageParseError, OverconstrainedFallbackError, Participant, PreflightError, RecoveryError, SelfCapabilities, SelfParticipant, SignalWire, StaticCredentialProvider, Subscriber, TokenRefreshError, UnexpectedError, VertoPongError, WebRTCCall, embeddableCall, isSelfParticipant, ready, setDebugOptions, setLogLevel, setLogger, version };
|
|
22021
|
+
export { Address, CallCreateError, ClientPreferences, CollectionFetchError, DPoPInitError, DeviceTokenError, EmbedTokenCredentialProvider, InvalidCredentialsError, MediaTrackError, MessageParseError, OverconstrainedFallbackError, Participant, PreflightError, RecoveryError, SelfCapabilities, SelfParticipant, SignalWire, StaticCredentialProvider, Subscriber, TokenRefreshError, UnexpectedError, VertoPongError, WebRTCCall, embeddableCall, getLogger, isSelfParticipant, ready, setDebugOptions, setLogLevel, setLogger, version };
|
|
22021
22022
|
//# sourceMappingURL=browser.mjs.map
|