@ikonai/sdk 0.0.14 → 0.0.16
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/assets/{audio-capture-worker-DbFwKRTJ.js → audio-capture-worker-C5hNMTF7.js} +1991 -1883
- package/assets/{audio-worker-BFOOU5sk.js → audio-worker-CdScgwWe.js} +1503 -1305
- package/assets/{protocol-worker-DIwctOUY.js → protocol-worker-DZqyPqA2.js} +1498 -1396
- package/assets/{video-capture-worker-CJhKrZYf.js → video-capture-worker-OBl3bsvx.js} +591 -489
- package/assets/{video-worker-BhoZnZ1o.js → video-worker-BoOfB8qz.js} +1232 -1130
- package/client/ikon-client-config.d.ts +2 -23
- package/client/ikon-client.d.ts +0 -2
- package/index.js +3165 -2680
- package/media/ikon-audio-playback.d.ts +19 -26
- package/media/ikon-image-capture.d.ts +0 -6
- package/media/ikon-video-capture.d.ts +0 -1
- package/media/ikon-video-playback.d.ts +0 -1
- package/media/ring-buffer.d.ts +1 -0
- package/package.json +1 -1
|
@@ -246,14 +246,10 @@ export interface IkonClientConfig {
|
|
|
246
246
|
/**
|
|
247
247
|
* When enabled, the SDK prepares the audio pipeline and starts decoding as soon as possible.
|
|
248
248
|
*
|
|
249
|
-
* Audio output still depends on browser autoplay policies
|
|
250
|
-
*
|
|
249
|
+
* Audio output still depends on browser autoplay policies. The SDK automatically resumes
|
|
250
|
+
* the AudioContext on the first user gesture (click, touch, keypress, etc.).
|
|
251
251
|
*/
|
|
252
252
|
enabled?: boolean;
|
|
253
|
-
/**
|
|
254
|
-
* Callback fired when audio playback requires a user gesture (autoplay restriction).
|
|
255
|
-
*/
|
|
256
|
-
onAudioUnlockRequired?: () => void;
|
|
257
253
|
/**
|
|
258
254
|
* Output format for mixing and rendering.
|
|
259
255
|
*/
|
|
@@ -274,23 +270,6 @@ export interface IkonClientConfig {
|
|
|
274
270
|
threading?: IkonVideoPlaybackConfig['threading'];
|
|
275
271
|
};
|
|
276
272
|
};
|
|
277
|
-
/**
|
|
278
|
-
* Media capture configuration (microphone/camera/screen/image).
|
|
279
|
-
*
|
|
280
|
-
* The SDK does not render any UI. When browser policies require a user gesture
|
|
281
|
-
* to start capture, the SDK notifies the host app via `onUserGestureRequired`.
|
|
282
|
-
*
|
|
283
|
-
* The app should show its own overlay and call `request.resume()` directly
|
|
284
|
-
* from a user gesture handler (e.g. button click) so the browser treats the
|
|
285
|
-
* subsequent getUserMedia/getDisplayMedia call as user-initiated.
|
|
286
|
-
*/
|
|
287
|
-
mediaCapture?: {
|
|
288
|
-
onUserGestureRequired?: (request: {
|
|
289
|
-
kind: 'microphone' | 'camera' | 'screen' | 'image';
|
|
290
|
-
resume: () => void;
|
|
291
|
-
cancel?: () => void;
|
|
292
|
-
}) => void;
|
|
293
|
-
};
|
|
294
273
|
/**
|
|
295
274
|
* Callback when a protocol message is received.
|
|
296
275
|
* The SDK handles keepalive internally; other messages are passed to this callback.
|
package/client/ikon-client.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { GlobalState, ProtocolMessage } from '../../../../shared/generated/src/i
|
|
|
2
2
|
import { FunctionRegistry } from '../functions/function-registry';
|
|
3
3
|
import { IkonMedia } from '../media/ikon-media';
|
|
4
4
|
import { IkonMediaCapture } from '../media/ikon-media-capture';
|
|
5
|
-
import { UserGestureRequest } from '../utils/user-gesture';
|
|
6
5
|
import { ConnectionState } from './connection-state';
|
|
7
6
|
import { IkonClientConfig } from './ikon-client-config';
|
|
8
7
|
/**
|
|
@@ -122,7 +121,6 @@ export declare class IkonClient {
|
|
|
122
121
|
*/
|
|
123
122
|
get mediaCapture(): IkonMediaCapture | null;
|
|
124
123
|
constructor(config: IkonClientConfig);
|
|
125
|
-
requestUserGesture(request: UserGestureRequest): void;
|
|
126
124
|
private _lastError;
|
|
127
125
|
/**
|
|
128
126
|
* Get the error that caused 'offlineError' state, if any.
|