Octoroom.Cloudflare.Local (octoroom v0.1.0)

Copy Markdown View Source

An in-process, localhost-only Octoroom.Cloudflare SFU backed by ex_webrtc.

Intended for trying Octoroom locally without a Cloudflare Realtime SFU account. Each session runs an ExWebRTC.PeerConnection on host candidates (no STUN/TURN) and forwards audio (:opus) and video (:vp8) RTP packets between sessions through ETS.

Configure it in dev with:

config :octoroom,
  cloudflare: [client: Octoroom.Cloudflare.Local],
  ice_servers: []

Not for production: there is no TURN, no clustering, and sessions live only inside this BEAM node.

Summary

Functions

Returns a specification to start this module under a supervisor.

Returns a cloudflare config map targeting this local SFU instance.

Starts a local SFU instance (started automatically by Octoroom.Application).

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

config(name \\ Octoroom.Cloudflare.Local)

Returns a cloudflare config map targeting this local SFU instance.

start_link(opts \\ [])

Starts a local SFU instance (started automatically by Octoroom.Application).