@ikonai/sdk 0.0.42 → 0.0.43

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.
@@ -199,15 +199,12 @@ export interface MediaSessionConfig {
199
199
  }
200
200
  /**
201
201
  * Audio playback pipeline configuration.
202
+ *
203
+ * Audio is always enabled by default. The SDK prepares the audio pipeline and starts
204
+ * decoding as soon as possible. Audio output still depends on browser autoplay policies.
205
+ * The SDK automatically resumes the AudioContext on the first user gesture (click, touch, keypress, etc.).
202
206
  */
203
207
  export interface AudioConfig {
204
- /**
205
- * When enabled, the SDK prepares the audio pipeline and starts decoding as soon as possible.
206
- *
207
- * Audio output still depends on browser autoplay policies. The SDK automatically resumes
208
- * the AudioContext on the first user gesture (click, touch, keypress, etc.).
209
- */
210
- enabled?: boolean;
211
208
  /**
212
209
  * Performance preferences for audio processing.
213
210
  */
@@ -224,11 +221,10 @@ export interface AudioConfig {
224
221
  /**
225
222
  * Video playback pipeline configuration.
226
223
  *
227
- * Video rendering requires an explicit surface (canvas) provided by the app.
228
- * The SDK can still prepare worker/decoder plumbing to reduce time-to-first-frame.
224
+ * Video is always enabled by default. Video rendering requires an explicit surface (canvas)
225
+ * provided by the app. The SDK prepares worker/decoder plumbing to reduce time-to-first-frame.
229
226
  */
230
227
  export interface VideoConfig {
231
- enabled?: boolean;
232
228
  performance?: IkonVideoPlaybackConfig['performance'];
233
229
  }
234
230
  /**
@@ -110,13 +110,12 @@ export declare class IkonClient {
110
110
  private readonly _media;
111
111
  private _mediaCapture;
112
112
  /**
113
- * Optional SDK-provided media pipelines (audio/video).
113
+ * SDK-provided media pipelines (audio/video).
114
114
  *
115
- * These are only created when `IkonClientConfig.media` is provided. Keeping media
116
- * optional avoids pulling in extra worker graphs and Web APIs for apps that only
117
- * need protocol + UI streaming.
115
+ * Audio and video are always enabled by default. Use this to access audio/video
116
+ * playback controls and attach rendering surfaces.
118
117
  */
119
- get media(): IkonMedia | null;
118
+ get media(): IkonMedia;
120
119
  /**
121
120
  * Optional SDK-provided media capture pipelines (audio/video/image).
122
121
  *