@ikonai/sdk 0.0.15 → 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/index.js +3275 -2693
- package/media/ikon-audio-playback.d.ts +19 -20
- package/media/ikon-video-playback.d.ts +0 -1
- package/media/ring-buffer.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,30 +1,23 @@
|
|
|
1
1
|
import { IkonClient } from '../client/ikon-client';
|
|
2
2
|
export interface IkonAudioOutputConfig {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Multi-stream normalization configuration.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* The decode worker resamples into the actual output rate used by the playback graph.
|
|
6
|
+
* When enabled, normalizes mixed output by the number of active streams.
|
|
8
7
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
* This is used to normalize decoded streams into a single mixing format.
|
|
14
|
-
*/
|
|
15
|
-
channels?: number;
|
|
16
|
-
/**
|
|
17
|
-
* Startup buffer size (seconds).
|
|
18
|
-
*
|
|
19
|
-
* This is the minimum buffered audio required before playback begins after a reset.
|
|
20
|
-
*/
|
|
21
|
-
minBufferSizeSeconds?: number;
|
|
8
|
+
multiStreamNormalization?: {
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
};
|
|
22
11
|
/**
|
|
23
|
-
*
|
|
12
|
+
* Audio debugging/diagnostics configuration.
|
|
24
13
|
*
|
|
25
|
-
*
|
|
14
|
+
* When enabled, logs audio events and periodic status information.
|
|
26
15
|
*/
|
|
27
|
-
|
|
16
|
+
diagnostics?: {
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
/** Interval for periodic status logs in seconds. Default: 5 */
|
|
19
|
+
statusInterval?: number;
|
|
20
|
+
};
|
|
28
21
|
}
|
|
29
22
|
export interface IkonAudioPlaybackConfig {
|
|
30
23
|
/**
|
|
@@ -42,7 +35,6 @@ export interface IkonAudioPlaybackConfig {
|
|
|
42
35
|
* All of these have fallbacks for restrictive embed environments.
|
|
43
36
|
*/
|
|
44
37
|
threading?: {
|
|
45
|
-
decodeWorker?: 'auto' | 'disabled';
|
|
46
38
|
preferSharedArrayBuffer?: boolean;
|
|
47
39
|
preferAudioWorklet?: boolean;
|
|
48
40
|
preferWebCodecs?: boolean;
|
|
@@ -74,9 +66,12 @@ export declare class IkonAudioPlayback {
|
|
|
74
66
|
/** Timeout for AudioContext.resume() - normally resolves instantly, but some browsers hang indefinitely */
|
|
75
67
|
private static readonly RESUME_TIMEOUT_MS;
|
|
76
68
|
private audioContext;
|
|
69
|
+
private outputSampleRateHz;
|
|
77
70
|
private audioWorkletNode;
|
|
78
71
|
private scriptProcessorNode;
|
|
72
|
+
private scriptDiagnosticsTimer;
|
|
79
73
|
private workletModuleUrl;
|
|
74
|
+
private workletModuleKey;
|
|
80
75
|
private workletReady;
|
|
81
76
|
private pendingWorkletMessages;
|
|
82
77
|
private audioWorker;
|
|
@@ -134,6 +129,10 @@ export declare class IkonAudioPlayback {
|
|
|
134
129
|
private resumeWithTimeout;
|
|
135
130
|
private ensureAudioWorklet;
|
|
136
131
|
private ensureScriptProcessor;
|
|
132
|
+
private skipFromFallbackQueue;
|
|
133
|
+
private trimFallbackQueue;
|
|
134
|
+
private stopScriptProcessorDiagnostics;
|
|
135
|
+
private ensureScriptProcessorDiagnostics;
|
|
137
136
|
private readFromFallbackQueue;
|
|
138
137
|
private resumeAudioContextIfPossible;
|
|
139
138
|
private recoverAudioContext;
|
package/media/ring-buffer.d.ts
CHANGED