MOQX.Event.PublicationTrackRequestDone (moqx v0.10.0)

Copy Markdown View Source

One track metadata request reached its terminal outcome.

:registered means the transport admitted the immutable metadata reply, not that the peer received it or media was authorized or delivered. :reply_failed carries the transport failure in error; other outcomes leave error nil. Owner exit terminates the connection; no event can be delivered to an owner which has exited.

Terminal handles cannot be decided again. Each request has one outcome even if its reply or best-effort stream cleanup fails. A failed reply does not roll back track registration or prevent sibling metadata replies.

Summary

Types

reason()

@type reason() ::
  :registered
  | :reply_failed
  | :rejected
  | :timed_out
  | :peer_cancelled
  | :invalid_request
  | :publication_finished
  | :connection_closed

t()

@type t() :: %MOQX.Event.PublicationTrackRequestDone{
  error: term(),
  reason: reason(),
  request: MOQX.PublicationTrackRequest.t()
}