Skip to content

Commit

Permalink
Merge pull request #623 from feross/replaceTrack-doc
Browse files Browse the repository at this point in the history
Add missing `replaceTrack` docs
  • Loading branch information
t-mullen authored Apr 15, 2020
2 parents bd3e9f5 + 98b2335 commit 8c9ecf4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,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`.
Expand Down Expand Up @@ -460,6 +464,7 @@ Possible error codes:
- `ERR_ICE_CONNECTION_FAILURE`
- `ERR_SIGNALING`
- `ERR_DATA_CHANNEL`
- `ERR_CONNECTION_FAILURE`


## connecting more than 2 peers?
Expand Down

0 comments on commit 8c9ecf4

Please sign in to comment.