You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Applications that need CAT4MOQ or other MoQ authorization-token carriage configure tokens at the public API layer. Transport internals consume this config when encoding setup, namespace, and publish request messages.
`setup_token` is carried on the session setup message. `action_token` is carried on publisher action requests such as namespace publish and track publish. Leave either field empty when that part of the relay policy does not require a token.
75
+
76
+
Helper wrappers:
77
+
78
+
-`wrap_cat_token(...)`: wraps raw Catapult/CAT CWT bytes as a CAT authorization-token value.
79
+
-`wrap_out_of_band_token(...)`: wraps raw private token bytes with the out-of-band token type.
80
+
-`AuthorizationToken`: stores the encoded authorization-token value sent on the wire.
81
+
-`AuthorizationConfig`: groups setup-level and action-level tokens for `PublisherConfig`.
82
+
83
+
The runnable example in [examples/auth](../examples/auth/README.md) shows file-based tokens, Catapult command integration, and a deterministic `publish_live_objects(...)` flow against a moqx relay.
84
+
85
+
## 5. Prepare Media Once (Batch Mode)
56
86
57
87
For file or buffered stream workflows, prepare media first:
58
88
@@ -78,7 +108,7 @@ This is useful for larger apps that want to:
78
108
- store plan state
79
109
- publish the same prepared asset to multiple endpoints
80
110
81
-
## 5. Optional: Inspect or Emit the Plan
111
+
## 6. Optional: Inspect or Emit the Plan
82
112
83
113
Render the plan for logging/debug:
84
114
@@ -92,7 +122,7 @@ Emit generated catalog and media objects to disk:
Copy file name to clipboardExpand all lines: docs/quickstart.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,33 @@ When `--forward 0` is used, seeing a relay connection ID only confirms that the
169
169
170
170
The DASH ingest listener is currently supported on Unix-like platforms. Windows builds compile the CLI but report DASH ingest server startup as unsupported.
171
171
172
+
## CAT4MOQ Auth Example
173
+
174
+
Build the CAT4MOQ auth example when testing a relay that requires MoQ authorization tokens:
`moq-relay.red5.net:4433` currently accepts WebTransport on `/moq`; `/moq-relay` returns HTTP `404` during CONNECT. The moqx relay examples use a placeholder hostname because those relay hostnames are not public yet; moqx uses `/moq-relay`.
73
73
74
+
## CAT4MOQ Authorization with moqx
75
+
76
+
For moqx services with auth enabled, use the auth example instead of the generic CLI. It obtains CAT4MOQ token bytes from a file or Catapult command, configures `PublisherConfig::authorization`, and publishes a deterministic live-object track.
0 commit comments