@meshstream/p2p-web 1.0.3 → 1.0.5

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/dist/config.d.ts CHANGED
@@ -100,6 +100,8 @@ export interface PlaybackBootstrapResult {
100
100
  config?: SdkConfigResponse;
101
101
  /** True when playback continued before the control-plane request settled. */
102
102
  timedOut: boolean;
103
+ /** The in-flight request, when playback continued before bootstrap settled. */
104
+ pending?: Promise<SdkConfigResponse | undefined>;
103
105
  }
104
106
  export type SdkConfigFailureReason = "NETWORK" | "TRANSIENT_HTTP" | "REJECTED";
105
107
  export declare const DEFAULT_BOOTSTRAP_URL = "https://api.meshstream.net/config-api/v1/sdk/bootstrap";
package/dist/hls.d.ts CHANGED
@@ -125,6 +125,13 @@ export declare class HlsP2pClient {
125
125
  diagnostics(): P2pDiagnostics;
126
126
  dispose(): void;
127
127
  getHlsConfig(): ReturnType<HlsJsP2PEngine["getConfigForHlsJs"]>;
128
+ /**
129
+ * Completes the HLS bridge when the control-plane response arrives after
130
+ * CDN playback has already started. This intentionally keeps the existing
131
+ * media element and buffer; the next playlist/fragment request can then use
132
+ * the P2P loaders without reloading the source.
133
+ */
134
+ activateExistingHls(): void;
128
135
  private emit;
129
136
  private bindEvents;
130
137
  private createEngine;