Skip to content

Commit 1cb9f0c

Browse files
committed
Update README. Bump version to 0.3.0
1 parent 856ebd3 commit 1cb9f0c

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

README.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The package can be installed by adding `ex_libnice` to your list of dependencies
1515
```elixir
1616
def deps do
1717
[
18-
{:ex_libnice, "~> 0.2.0"}
18+
{:ex_libnice, "~> 0.3.0"}
1919
]
2020
end
2121
```
@@ -30,8 +30,16 @@ Example flow can look in the following way (this is not complete i.e. runnable e
3030
Listed functions must be invoked on both peers.
3131
```elixir
3232
# Init ExLibnice
33-
{:ok, ice} =
34-
ExLibnice.start_link(self(), ["64.233.161.127:19302"], [], controlling_mode, 0..65_535)
33+
{:ok, pid} =
34+
ExLibnice.start_link(
35+
parent: self(),
36+
stun_servers: [
37+
%{server_addr: {64, 233, 161, 127}, server_port: 19_302},
38+
%{server_addr: "stun1.l.google.com", server_port: 19_302}
39+
],
40+
controlling_mode: true,
41+
port_range: 0..0
42+
)
3543

3644
# Add stream, get local credentials
3745
{:ok, stream_id} = ExLibnice.add_stream(ice, 1, "audio")

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule ExLibnice.MixProject do
22
use Mix.Project
33

4-
@version "0.2.0"
4+
@version "0.3.0"
55
@github_url "https://github.com/membraneframework/ex_libnice"
66

77
def project do

0 commit comments

Comments
 (0)