mirror of
https://github.com/jech/galene.git
synced 2024-11-22 08:35:57 +01:00
Fix typos.
This commit is contained in:
parent
de78f3ce62
commit
f89270e874
3 changed files with 6 additions and 5 deletions
2
README
2
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
|
`groups/groupname.json`; it does not contain the group name, which makes
|
||||||
it easy to copy or link group definitions. You may use subdirectories:
|
it easy to copy or link group definitions. You may use subdirectories:
|
||||||
a file `groups/teaching/networking.json` defines a group called
|
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
|
Every group definition file contains a JSON directory. All fields are
|
||||||
optional, but unless you specify at least one user definition (`op`,
|
optional, but unless you specify at least one user definition (`op`,
|
||||||
|
|
|
@ -146,6 +146,7 @@ streams to a list containing either 'audio', or one of 'video' or
|
||||||
'': ['audio', 'video']
|
'': ['audio', 'video']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Pushing streams
|
## Pushing streams
|
||||||
|
|
||||||
|
@ -159,11 +160,11 @@ A stream is created by the sender with the `offer` message:
|
||||||
replace: id,
|
replace: id,
|
||||||
source: source-id,
|
source: source-id,
|
||||||
username: username,
|
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
|
otherwise this message creates a new stream. If the field `replace` is
|
||||||
not empty, then this request additionally requests that an existing stream
|
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;
|
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:
|
being offered by sending a 'requestStream' request:
|
||||||
```javascript
|
```javascript
|
||||||
{
|
{
|
||||||
type: 'answerStream'
|
type: 'requestStream'
|
||||||
id: id,
|
id: id,
|
||||||
request: [audio, video]
|
request: [audio, video]
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ func TestGroup(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if public := GetPublic(); len(public) != 1 || public[0].Name != "group/subgroup" {
|
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()
|
Expire()
|
||||||
|
|
Loading…
Reference in a new issue