mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
update readme
This commit is contained in:
parent
4bad36345a
commit
f9bf62ef0a
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
|
@ -94,6 +94,7 @@ Features:
|
|||
* [Decreasing latency](#decreasing-latency)
|
||||
* [WebRTC protocol](#webrtc-protocol)
|
||||
* [General usage](#general-usage-3)
|
||||
* [TURN servers](#turn-servers)
|
||||
* [Links](#links)
|
||||
|
||||
## Installation
|
||||
|
|
@ -995,6 +996,24 @@ Every stream published to the server can be read with WebRTC by visiting:
|
|||
https://localhost:8889/mystream
|
||||
```
|
||||
|
||||
### TURN servers
|
||||
|
||||
The server can be configured in order to communicate to clients through a TURN server. The server must be set in the configuration file:
|
||||
|
||||
```yml
|
||||
webrtcICEServers: [turn:user:pass:host:ip]
|
||||
```
|
||||
|
||||
Where `user` and `pass` are the username and password of the server.
|
||||
|
||||
If the server uses a secret-based authentication (for instance, coturn with the `use-auth-secret` option), it must be configured in this way:
|
||||
|
||||
```yml
|
||||
webrtcICEServers: [turn:AUTH_SECRET:secret:host:ip]
|
||||
```
|
||||
|
||||
where `secret` is the secret of the TURN server. rtsp_simple_server will generate a set of credentials by using the secret, and credentials will be sent to clients before the WebRTC connection begins.
|
||||
|
||||
## Links
|
||||
|
||||
Related projects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue