Skip to content

Commit

Permalink
Merge pull request #96 from hintertupferbene/master
Browse files Browse the repository at this point in the history
Fix README description of parseSimulcastStreamList()
  • Loading branch information
clux committed Apr 23, 2021
2 parents d8b446d + 6011ae5 commit 0245542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ sdpTransform.parseImageAttributes(res.media[1].imageattrs[0].attrs2)

#### parseSimulcastStreamList()

Parses [simulcast](https://tools.ietf.org/html/draft-ietf-mmusic-sdp-simulcast) streams/formats. Must be provided with the `attrs1` or `attrs2` string of the `a=simulcast` line.
Parses [simulcast](https://tools.ietf.org/html/draft-ietf-mmusic-sdp-simulcast) streams/formats. Must be provided with the `list1` or `list2` string of the `a=simulcast` line.

Returns an array of simulcast streams. Each entry is an array of alternative simulcast formats, which are objects with two keys:

Expand All @@ -192,7 +192,7 @@ Returns an array of simulcast streams. Each entry is an array of alternative sim

```js
// a=simulcast:send 1,~4;2;3 recv c
sdpTransform.parseSimulcastStreamList(res.media[1].simulcast.attrs1);
sdpTransform.parseSimulcastStreamList(res.media[1].simulcast.list1);
// =>
[
// First simulcast stream (two alternative formats)
Expand Down

0 comments on commit 0245542

Please sign in to comment.