Octoroom.Participant (octoroom v0.1.0)

Copy Markdown View Source

A connected client: its id, the metadata its room's join/2 returned, and the tracks it publishes.

tracks maps each live source ("mic", "camera", "screen", "screen_audio") to %{kind: :audio | :video, muted: boolean}. A source that isn't published, or isn't flowing yet, isn't there.

Summary

Types

t()

@type t() :: %Octoroom.Participant{
  id: String.t(),
  meta: map(),
  tracks: %{required(String.t()) => %{kind: :audio | :video, muted: boolean()}}
}