From 94359ebf794d005c151d4fa801b825dace83aabd Mon Sep 17 00:00:00 2001 From: Thomas Mullen <14932492+t-mullen@users.noreply.github.com> Date: Wed, 15 Apr 2020 14:50:00 -0400 Subject: [PATCH 1/2] Add missing `replaceTrack` docs --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 0a343b18..0c676412 100644 --- a/README.md +++ b/README.md @@ -348,6 +348,10 @@ Add a `MediaStreamTrack` to the connection. Must also pass the `MediaStream` you Remove a `MediaStreamTrack` from the connection. Must also pass the `MediaStream` that it was attached to. +## `peer.replaceTrack(oldTrack, newTrack, stream)` + +Replace a `MediaStreamTrack` with another track. Must also pass the `MediaStream` that the old track was attached to. + ### `peer.addTransceiver(kind, init)` Add a `RTCRtpTransceiver` to the connection. Can be used to add transceivers before adding tracks. Automatically called as neccesary by `addTrack`. From 98b2335d5a591fb42998908afa7a475f81b860dd Mon Sep 17 00:00:00 2001 From: Thomas Mullen <14932492+t-mullen@users.noreply.github.com> Date: Wed, 15 Apr 2020 14:53:43 -0400 Subject: [PATCH 2/2] Add missing error code --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0c676412..dcc4da9b 100644 --- a/README.md +++ b/README.md @@ -462,6 +462,7 @@ Possible error codes: - `ERR_ICE_CONNECTION_FAILURE` - `ERR_SIGNALING` - `ERR_DATA_CHANNEL` +- `ERR_CONNECTION_FAILURE` ## connecting more than 2 peers?