-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
55 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
# Settings | ||
|
||
|
||
TODO: Show how to change nat, pres, and registration settings. | ||
|
||
|
||
|
||
|
||
# Codecs | ||
|
||
|
||
# Connectivity settings | ||
TODO | ||
|
||
# Network settings | ||
TODO | ||
|
||
|
||
# Codecs settings | ||
Print codec settings | ||
```javascript | ||
let endpoint = new Endpoint(); | ||
let state = await endpoint.start(); | ||
let {accounts, calls, settings, connectivity} = state; | ||
|
||
console.log("codecs", settings.codecs); // Shows a list of available codecs with priority | ||
``` | ||
|
||
Change codec configuration | ||
```javascript | ||
// Not listed codecs are automatically will have zero priority | ||
endpoint.changeCodecSettings({ | ||
"PCMA/8000/1": 0, | ||
"G722/16000/1": 0, // Zero means to disable the codec. | ||
"iLBC/8000/1": 210, | ||
"speex/8000/1": 0, | ||
"speex/16000/1": 0, | ||
"speex/32000/1": 0 | ||
}) | ||
``` |