Elixir WebRTC is an implementation of the W3C WebRTC API in the Elixir programming language.
Add ex_webrtc
to the list of dependencies in mix.exs
def deps do
[
{:ex_webrtc, "~> 0.5.0"}
]
end
Elixir WebRTC comes with optional support for DataChannels, but it must be explicitely turned on by
adding optional ex_sctp
dependency
def deps do
[
{:ex_webrtc, "~> 0.5.0"},
{:ex_sctp, "~> 0.1.0"}
]
end
Please note that ex_sctp
requires you to have Rust installed in order to compile.
To get started with Elixir WebRTC, check out:
- the Introduction to Elixir Webrtc tutorial
- the examples directory that contains a bunch of very simple usage examples of the library
- the
apps
repo with example applications built on top ofex_webrtc
- the documentation, especially the
PeerConnection
module page
If you have any questions, ideas or topics to discuss about Elixir WebRTC, head to the discussions page.