Expand description
Broadcasts: a namespace with its tracks, MSF event timelines and media
sources of encoded frames, published and followed as the browser SDK’s
moq-wasm/media and the Python SDK’s moq_wasm.media do.
Structs§
- Audio
Level - An RFC 6464 §3 audio level indication.
- Broadcast
Builder - The tracks registered before the PUBLISH_NAMESPACE, so that a SUBSCRIBE the relay forwards at once finds them.
- Catalog
- An independent draft-ietf-moq-msf-02 catalog (§5).
- Catalog
Track - Catalogs
- The catalogs of a
RemoteBroadcast; dropping it unsubscribes. - Event
Timeline - Writes a draft-ietf-moq-msf-02 §8 event timeline as one group: it opens
with an empty record list, and each record is one more object, so a late
joiner’s joining FETCH brings the records the track still keeps. A record
is the §8 JSON object, such as
{"T": milliseconds, "data": …}or{"L": [group, object], "data": …}. - Event
Timeline Options - How
RemoteBroadcast::event_timelinesubscribes.delivery_timeoutisNoneby default, so every record arrives. - Follow
Options - How
RemoteBroadcast::followsubscribes. - Followed
Track - A followed track, read with
next; dropping it unsubscribes. - Local
Broadcast - A published namespace; a media source’s tracks reach subscribers through
the MSF catalog.
add_media_sourceand dropping it withoutclosespawn tasks (the latter withdraws the namespace), so call both inside the tokio runtime. - Media
Source - A video track with its renditions and an audio track, fed with encoded frames and published as LOC with the MSF catalog and media timeline. Once its broadcast is closed or dropped, its pushes fail and its waits end with an error.
- Media
Source Options - Remote
Broadcast - A namespace another publisher publishes, handed to a
watch_broadcastshandler. - Remote
Event Timeline - The records of an event timeline track, read with
next; dropping it unsubscribes. - Rendition
- Another encoding of a
MediaSource’s video. - Track
Demand - Whether a subscription to a track published on demand is in Forward State
1, as
Origin::publish_on_demandreports it. - Track
Query - Which tracks
Catalog::selecttakes: every field given must match. - Watch
Options
Enums§
- Bitrate
Preference - Which bitrate
TrackQuery::preferpicks. A track without a bitrate, which draft-ietf-moq-msf-02 requires only of audio and video, counts as the highest. - Catalog
Parse Error - Known
Packaging - Known
Track Role - Media
Source Error - Packaging
- Track
Kind - Track
Role
Functions§
- create_
broadcast - A broadcast in
namespace, published byBroadcastBuilder::announce. - watch_
broadcasts - Runs
handleron a task for each namespace published underprefix, including those published before the call, except this session’s own. A withdrawal aborts the namespace’s task; publishing it again starts a new one. A handler’sErris logged.