@ikonai/sdk 1.0.10 → 1.0.12
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-D0tD-mzj.js → audio-capture-worker-Ca53cEkv.js} +127 -121
- package/assets/{audio-playback-worker-CM2aCt54.js → audio-playback-worker-D0LDYB5W.js} +93 -83
- package/assets/{video-capture-worker-DZZ0ggvo.js → video-capture-worker-Odc_mLEl.js} +145 -141
- package/assets/{video-playback-worker-C7sQMgD-.js → video-playback-worker-OwSrJCnC.js} +220 -221
- package/index.js +1118 -1096
- package/media/ikon-audio-capture.d.ts +2 -0
- package/media/ikon-video-capture.d.ts +6 -4
- package/media/ikon-video-playback.d.ts +0 -1
- package/package.json +1 -1
- package/worker/video-capture-worker.d.ts +1 -0
- package/worker/video-playback-worker.d.ts +2 -0
|
@@ -14,10 +14,12 @@ export interface IkonAudioCaptureRequest {
|
|
|
14
14
|
constraints?: MediaTrackConstraints;
|
|
15
15
|
options?: {
|
|
16
16
|
bitrate?: number;
|
|
17
|
+
targetIds?: number[];
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
export interface IkonAudioCaptureHandle {
|
|
20
21
|
captureId: string;
|
|
22
|
+
streamId: string;
|
|
21
23
|
/** Whether the capture is still active (not stopped). On iOS, this becomes false after endSegment. */
|
|
22
24
|
readonly isActive: boolean;
|
|
23
25
|
startSegment(): void;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { IkonClient } from '../client/ikon-client';
|
|
2
2
|
import { VideoCaptureWorkerOptions } from '../worker/video-capture-worker';
|
|
3
3
|
export type VideoCaptureSource = 'camera' | 'screen';
|
|
4
|
+
export type IkonVideoCaptureOptions = VideoCaptureWorkerOptions;
|
|
4
5
|
export interface IkonVideoCaptureRequest {
|
|
5
|
-
|
|
6
|
-
options?:
|
|
6
|
+
sourceType: VideoCaptureSource;
|
|
7
|
+
options?: IkonVideoCaptureOptions;
|
|
7
8
|
userGesture?: boolean;
|
|
8
9
|
constraints?: MediaTrackConstraints;
|
|
9
10
|
}
|
|
10
11
|
export interface IkonVideoCaptureHandle {
|
|
11
12
|
captureId: string;
|
|
13
|
+
streamId: string;
|
|
12
14
|
stop(): Promise<void>;
|
|
13
15
|
}
|
|
14
16
|
export declare class IkonVideoCapture {
|
|
@@ -24,8 +26,8 @@ export declare class IkonVideoCapture {
|
|
|
24
26
|
private ensurePorts;
|
|
25
27
|
private getMediaStream;
|
|
26
28
|
start(request: IkonVideoCaptureRequest): Promise<IkonVideoCaptureHandle>;
|
|
27
|
-
startCamera(options?: Omit<IkonVideoCaptureRequest, '
|
|
28
|
-
startScreen(options?: Omit<IkonVideoCaptureRequest, '
|
|
29
|
+
startCamera(options?: Omit<IkonVideoCaptureRequest, 'sourceType'>): Promise<IkonVideoCaptureHandle>;
|
|
30
|
+
startScreen(options?: Omit<IkonVideoCaptureRequest, 'sourceType'>): Promise<IkonVideoCaptureHandle>;
|
|
29
31
|
stop(captureId: string): Promise<boolean>;
|
|
30
32
|
dispose(): void;
|
|
31
33
|
}
|
package/package.json
CHANGED