From f89270e87457f6a3bcbe820634b0a83c0d793ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonin=20D=C3=A9cimo?= Date: Sat, 22 May 2021 16:58:09 +0200 Subject: [PATCH] Fix typos. --- README | 2 +- README.PROTOCOL | 7 ++++--- group/group_test.go | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README b/README index dd6a6eb..d315a8e 100644 --- a/README +++ b/README @@ -194,7 +194,7 @@ The definition for the group called *groupname* is in the file `groups/groupname.json`; it does not contain the group name, which makes it easy to copy or link group definitions. You may use subdirectories: a file `groups/teaching/networking.json` defines a group called -*teching/networking*. +*teaching/networking*. Every group definition file contains a JSON directory. All fields are optional, but unless you specify at least one user definition (`op`, diff --git a/README.PROTOCOL b/README.PROTOCOL index f1b09d6..50a9901 100644 --- a/README.PROTOCOL +++ b/README.PROTOCOL @@ -146,6 +146,7 @@ streams to a list containing either 'audio', or one of 'video' or '': ['audio', 'video'] } } +``` ## Pushing streams @@ -159,11 +160,11 @@ A stream is created by the sender with the `offer` message: replace: id, source: source-id, username: username, - sdp: sdp, + sdp: sdp } ``` -If a stream with the same id exists, then this is a renegotation; +If a stream with the same id exists, then this is a renegotiation; otherwise this message creates a new stream. If the field `replace` is not empty, then this request additionally requests that an existing stream with the given id should be closed, and the new stream should replace it; @@ -217,7 +218,7 @@ At any time after answering, the client may change the set of streams being offered by sending a 'requestStream' request: ```javascript { - type: 'answerStream' + type: 'requestStream' id: id, request: [audio, video] } diff --git a/group/group_test.go b/group/group_test.go index 1f53d37..4e4b220 100644 --- a/group/group_test.go +++ b/group/group_test.go @@ -55,7 +55,7 @@ func TestGroup(t *testing.T) { } if public := GetPublic(); len(public) != 1 || public[0].Name != "group/subgroup" { - t.Errorf("Expeced group/subgroup, got %v", public) + t.Errorf("Expected group/subgroup, got %v", public) } Expire()