Expand description
A broadcast is a named collection of tracks, split into a Producer and Consumer handle.
A Producer creates tracks on demand: a Consumer subscribes by name, and the
producer either serves a track it already has or is handed a track::Request to
fill. Both handles are refcounted clones of one broadcast, which ends on
Producer::close or when the last producer drops. A broadcast has no finished state:
a publisher ends its content by finishing its tracks, and goes offline by closing.
Info is the broadcast’s static metadata, fixed for its lifetime.
Structs§
- Consumer
- Subscribe to arbitrary broadcast/tracks.
- Datagram
Requests - Handles on-demand datagram tracks for a broadcast, like
Requestsdoes stream tracks. - Demand
- A cloneable, watch-only handle to whether anyone reads a broadcast.
- Info
- A collection of media tracks that can be published and subscribed to.
- Lister
- A handler’s answer to the broadcast’s listings, from
Requests::lister. - Producer
- Manages tracks within a broadcast.
- Requests
- Handles on-demand track creation for a broadcast.
- Tracks
- The tracks a broadcast lists, from
Consumer::tracks.
Enums§
- Kind
- Which of a broadcast’s two namespaces a listed track is in.
- Listed
- A listed track’s fixed properties, whose variant is its
Kind. - Tracks
Event - What a
Trackslisting reports, in order.