@oddin-gg/havik-player 2.8.0 → 2.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -207,6 +207,29 @@ A ready-to-host template lives in the repo at [`embed/index.html`](embed/index.h
207
207
  > which is what havik-streams matches against; there is no `Origin` header on a
208
208
  > top-level iframe nav.
209
209
 
210
+ The injected config also takes `analytics`, forwarded to the managed player.
211
+ Set it when `baseUrl` is not a `feed` host, or QoE beacons stay off. See
212
+ [Analytics](#analytics-qoe-beacons).
213
+
214
+ ```js
215
+ window.HAVIK_EMBED_CONFIG = {
216
+ baseUrl: 'https://cdn.example.com',
217
+ matchUrn: 'od:match:1234',
218
+ apiKey: 'pk_test_…',
219
+ parentOrigin: 'https://your-site.example',
220
+ analytics: { endpoint: 'https://beacons.oddin-video.gg' },
221
+ };
222
+ ```
223
+
224
+ `analytics` is read from the injected config only. It names a telemetry sink,
225
+ so the query string is not allowed to set one.
226
+
227
+ That has a consequence worth knowing before you pick a Mode C path.
228
+ `mountEmbed` passes its config to the embed page as query parameters, so it
229
+ cannot carry `analytics` either. If your `baseUrl` is not a `feed` host and
230
+ you need beacons, host the embed page yourself and inject the config. A
231
+ `mountEmbed` integration on a non-feed base has no way to turn analytics on.
232
+
210
233
  ---
211
234
 
212
235
  ## Live pickup (`waitForLive`)