# `Octoroom.Track`
[🔗](https://github.com/samrat/octoroom/blob/v0.1.0/lib/octoroom/track.ex#L1)

A subscription to a room-scoped track, such as `"alice/mic"` or
`"alice/camera"`.

`kind` is `:audio` or `:video`. Audio is played at `gain` (0.0 to 1.0) in
the listener's browser; gain doesn't apply to video.

A participant publishes up to one track per source (see `sources/0`),
named `"<participant id>/<source>"`. Worker outputs are audio.

# `t`

```elixir
@type t() :: %Octoroom.Track{gain: float(), kind: :audio | :video, name: String.t()}
```

# `kind`

The kind of a source: `:audio`, `:video` or nil for an unknown source.

# `new`

A track by room-scoped name. Participants' camera and screen tracks are video.

# `parse`

`{participant_id, source}` for a participant's track, or nil (a worker output).

# `sources`

The sources a participant may publish, each with its kind.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
