@signalwire/js 4.0.0-dev-20260318132643 → 4.0.0-dev-20260318145605
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 +7 -2
- package/dist/browser.mjs.map +1 -1
- package/dist/browser.umd.js +7 -2
- package/dist/browser.umd.js.map +1 -1
- package/dist/index.cjs +7 -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 +7 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser.mjs
CHANGED
|
@@ -13519,7 +13519,7 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
13519
13519
|
};
|
|
13520
13520
|
}
|
|
13521
13521
|
get inputVideoDeviceConstraints() {
|
|
13522
|
-
if (this.options.video
|
|
13522
|
+
if (!this.options.video && !this.options.inputVideoDeviceConstraints) return false;
|
|
13523
13523
|
return {
|
|
13524
13524
|
...this.options.inputVideoDeviceConstraints,
|
|
13525
13525
|
...this.deviceController.selectedVideoInputDeviceConstraints
|
|
@@ -13829,7 +13829,12 @@ var RTCPeerConnectionController = class extends Destroyable {
|
|
|
13829
13829
|
if (!this.peerConnection) throw new DependencyError("RTCPeerConnection is not initialized");
|
|
13830
13830
|
this.peerConnection.ontrack = (event) => {
|
|
13831
13831
|
logger$11.debug("[RTCPeerConnectionController] Remote track received:", event.track.kind);
|
|
13832
|
-
this._remoteStream$.next(event.streams[0]);
|
|
13832
|
+
if (event.streams[0]) this._remoteStream$.next(event.streams[0]);
|
|
13833
|
+
else {
|
|
13834
|
+
const existingTracks = this._remoteStream$.value?.getTracks() ?? [];
|
|
13835
|
+
const newStream = new MediaStream([...existingTracks, event.track]);
|
|
13836
|
+
this._remoteStream$.next(newStream);
|
|
13837
|
+
}
|
|
13833
13838
|
};
|
|
13834
13839
|
await this.transceiverController?.setupRemoteTransceivers(this.type);
|
|
13835
13840
|
}
|