@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.umd.js
CHANGED
|
@@ -15662,7 +15662,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
15662
15662
|
const track = localStream.getTracks().find((track$1) => track$1.kind === kind);
|
|
15663
15663
|
if (track) {
|
|
15664
15664
|
this.transceiverController?.stopTrackSender(kind);
|
|
15665
|
-
this.
|
|
15665
|
+
this.localStreamController.removeTrack(track.id);
|
|
15666
15666
|
logger$16.debug(`[RTCPeerConnectionController] Stopped existing ${kind} track: ${track.id}`, localStream.getTracks());
|
|
15667
15667
|
if (!deviceInfo) {
|
|
15668
15668
|
logger$16.debug(`[RTCPeerConnectionController] ${kind} input device selected: none`);
|
|
@@ -15674,7 +15674,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
15674
15674
|
} })).getTracks().find((t) => t.kind === kind);
|
|
15675
15675
|
if (streamTrack) {
|
|
15676
15676
|
logger$16.debug(`[RTCPeerConnectionController] Adding new ${kind} track: ${streamTrack.id}`);
|
|
15677
|
-
this.
|
|
15677
|
+
this.localStreamController.addTrack(streamTrack);
|
|
15678
15678
|
await this.transceiverController?.replaceSenderTrack(kind, streamTrack);
|
|
15679
15679
|
logger$16.debug(`[RTCPeerConnectionController] Added new ${kind} track: ${streamTrack.id}`, this.localStream?.getTracks());
|
|
15680
15680
|
}
|
|
@@ -21897,6 +21897,7 @@ var EmbedTokenCredentialProvider = class {
|
|
|
21897
21897
|
try {
|
|
21898
21898
|
const response = await fetch(url, {
|
|
21899
21899
|
method: "POST",
|
|
21900
|
+
headers: { "Content-Type": "application/json" },
|
|
21900
21901
|
body: JSON.stringify({ token: this.embedToken }),
|
|
21901
21902
|
signal: controller.signal
|
|
21902
21903
|
});
|
|
@@ -22027,6 +22028,7 @@ exports.ClientPreferences = ClientPreferences;
|
|
|
22027
22028
|
exports.CollectionFetchError = CollectionFetchError;
|
|
22028
22029
|
exports.DPoPInitError = DPoPInitError;
|
|
22029
22030
|
exports.DeviceTokenError = DeviceTokenError;
|
|
22031
|
+
exports.EmbedTokenCredentialProvider = EmbedTokenCredentialProvider;
|
|
22030
22032
|
exports.InvalidCredentialsError = InvalidCredentialsError;
|
|
22031
22033
|
exports.MediaTrackError = MediaTrackError;
|
|
22032
22034
|
exports.MessageParseError = MessageParseError;
|
|
@@ -22044,6 +22046,7 @@ exports.UnexpectedError = UnexpectedError;
|
|
|
22044
22046
|
exports.VertoPongError = VertoPongError;
|
|
22045
22047
|
exports.WebRTCCall = WebRTCCall;
|
|
22046
22048
|
exports.embeddableCall = embeddableCall;
|
|
22049
|
+
exports.getLogger = getLogger;
|
|
22047
22050
|
exports.isSelfParticipant = isSelfParticipant;
|
|
22048
22051
|
exports.ready = ready;
|
|
22049
22052
|
exports.setDebugOptions = setDebugOptions;
|