@jellyfish-dev/membrane-webrtc-js
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -239,8 +239,3 @@ import TypedEmitter from 'typed-emitter'; | ||
/** | ||
* Returns a snapshot of currently received remote tracks. | ||
* | ||
* @example | ||
* if (webRTCEndpoint.getRemoteTracks()[trackId]?.simulcastConfig?.enabled) { | ||
* webRTCEndpoint.setTargetTrackEncoding(trackId, encoding); | ||
* } | ||
* Returns a snapshot of currently received remote endpoints. | ||
*/ | ||
@@ -247,0 +242,0 @@ getRemoteEndpoints(): Record<string, Endpoint>; |
@@ -531,8 +531,3 @@ var E = Object.defineProperty; | ||
/** | ||
* Returns a snapshot of currently received remote tracks. | ||
* | ||
* @example | ||
* if (webRTCEndpoint.getRemoteTracks()[trackId]?.simulcastConfig?.enabled) { | ||
* webRTCEndpoint.setTargetTrackEncoding(trackId, encoding); | ||
* } | ||
* Returns a snapshot of currently received remote endpoints. | ||
*/ | ||
@@ -625,3 +620,3 @@ getRemoteEndpoints() { | ||
const t = this.commandsQueue.shift(); | ||
t && (this.ongoingRenegotiation = !0, this.handleCommand(t)); | ||
t && this.handleCommand(t); | ||
} | ||
@@ -637,2 +632,3 @@ addTrackCommandHandler(t) { | ||
throw "Cannot add tracks before being accepted by the server"; | ||
this.ongoingRenegotiation = !0; | ||
const k = new g(this.localEndpoint, o, r, e); | ||
@@ -849,3 +845,3 @@ this.localEndpoint.tracks.set(o, k), k.track = i, k.stream = a, k.maxBandwidth = n, this.localTrackIdToTrack.set(o, k), this.connection && (this.addTrackToConnection(k), this.connection.getTransceivers().forEach( | ||
const { trackId: e } = t, n = this.localTrackIdToTrack.get(e), i = this.findSender(n.track.id); | ||
this.connection.removeTrack(i); | ||
this.ongoingRenegotiation = !0, this.connection.removeTrack(i); | ||
const a = l({ type: "renegotiateTracks" }); | ||
@@ -852,0 +848,0 @@ this.sendMediaEvent(a), this.localTrackIdToTrack.delete(e), this.localEndpoint.tracks.delete(e); |
{ | ||
"name": "@jellyfish-dev/membrane-webrtc-js", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "JS/TS client library for Membrane RTC Engine.", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
94792
1646