@touchcastllc/napster-companion-api-dev 1.0.0-alpha.81 → 1.0.0-alpha.82

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.
@@ -13,12 +13,6 @@ export interface AvatarOptions {
13
13
  onScreenShareToggle?: () => void;
14
14
  isScreenSharing?: boolean;
15
15
  isScreenShareSupported?: boolean;
16
- /**
17
- * `targetOrigin` for messages relayed to `window.parent`. Defaults to the
18
- * current origin (same-origin only). Set to a specific embedder origin to
19
- * allow a trusted cross-origin parent, or `"*"` to broadcast (insecure).
20
- */
21
- parentOrigin?: string;
22
16
  }
23
17
  export interface StreamsUpdate {
24
18
  videoStream?: MediaStream | null;
@@ -13,8 +13,6 @@ export interface EmbedOptions {
13
13
  onScreenShareToggle?: () => void;
14
14
  isScreenSharing?: boolean;
15
15
  isScreenShareSupported?: boolean;
16
- /** `targetOrigin` for messages relayed to `window.parent`. See {@link NapsterCompanionApiConfig.parentOrigin}. */
17
- parentOrigin?: string;
18
16
  }
19
17
  export interface EmbedController extends BaseController<EmbedOptions> {
20
18
  updateStreams: (streams: StreamsUpdate) => void;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Fallback ICE servers (STUN/TURN) for the WebRTC peer connection.
3
+ *
4
+ * Used only when no ICE servers are supplied by the connection token or the
5
+ * SDK config. Prefer short-lived, per-session TURN credentials minted by the
6
+ * backend over these static ones, which ship in the client bundle.
7
+ *
8
+ * TODO: extracted here to make swapping the source out easier later — e.g.
9
+ * inject via build-time env vars or fetch from the backend, so credentials no
10
+ * longer live in the repo.
11
+ */
12
+ export declare const DEFAULT_ICE_SERVERS: RTCIceServer[];
@@ -3,3 +3,4 @@
3
3
  */
4
4
  export * from "./greenscreen";
5
5
  export * from "./events";
6
+ export * from "./iceServers";