@signalwire/js 4.0.0-dev-20260427214255 → 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 +2 -2
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +2 -2
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- 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
|
}
|