@meshstream/p2p-web 1.0.1 → 1.0.3

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
@@ -53,6 +53,14 @@ The SDK fetches SaaS bootstrap configuration, selects trackers/reporting
53
53
  endpoints, detects browser capability, starts WebRTC P2P when possible, and
54
54
  keeps CDN playback as the automatic fallback path.
55
55
 
56
+ The SDK starts bootstrap immediately, but does not wait for a network round
57
+ trip before starting media playback. The player uses CDN while the control
58
+ plane is pending or unavailable; the request continues in the background and
59
+ transient failures are retried. A cached or already-resolved bootstrap can
60
+ enable P2P in the current session, while a later playback can use P2P after a
61
+ successful network bootstrap. This startup policy is internal and requires no
62
+ customer configuration.
63
+
56
64
  When MeshStream creates hls.js, use `hlsConfig` to retain normal player tuning
57
65
  such as `maxBufferLength`, ABR limits, or low-latency settings:
58
66
 
@@ -461,9 +469,11 @@ starting a fresh session for a different source or player lifecycle.
461
469
 
462
470
  `start()` returns `{ mode, capability, fallbackReason? }`. On a CDN fallback,
463
471
  `fallbackReason` is one of `CAPABILITY_UNSUPPORTED`, `P2P_DISABLED`,
464
- `SDK_CONFIG_UNAVAILABLE`, `TRACKER_UNAVAILABLE`, or
472
+ `SDK_CONFIG_PENDING`, `SDK_CONFIG_UNAVAILABLE`, `TRACKER_UNAVAILABLE`, or
465
473
  `P2P_INITIALIZATION_FAILED`. It is intended for customer telemetry and does
466
- not expose the server bootstrap configuration.
474
+ not expose the server bootstrap configuration. `SDK_CONFIG_PENDING` means
475
+ playback started on CDN before the first bootstrap request settled; it does
476
+ not trigger `onP2pUnavailable`.
467
477
 
468
478
  `addEventListener()` accepts `onPlaybackStateChanged`, `onP2pReady`,
469
479
  `onP2pUnavailable`, `onPeerCountChanged`, `onTrackerError`,