@snapcall/stream-ui 1.25.1 → 1.26.1
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/dist/stream-ui.esm.js +292 -123
- package/dist/stream-ui.js +291 -122
- package/dist/types.d.ts +10 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ interface Profile {
|
|
|
11
11
|
image?: string;
|
|
12
12
|
}
|
|
13
13
|
interface Step {
|
|
14
|
-
|
|
14
|
+
types: Array<'video' | 'audio' | 'screen' | 'image'>;
|
|
15
|
+
default_type: 'video' | 'audio' | 'screen' | 'image';
|
|
15
16
|
token: string;
|
|
16
17
|
title: string;
|
|
17
18
|
description: string;
|
|
@@ -38,6 +39,8 @@ interface FlowV0 {
|
|
|
38
39
|
interface InitResult {
|
|
39
40
|
flow?: Flow;
|
|
40
41
|
flowV0?: FlowV0;
|
|
42
|
+
videoUpload?: boolean;
|
|
43
|
+
hideStreamInvite?: boolean;
|
|
41
44
|
}
|
|
42
45
|
interface JoinOptions {
|
|
43
46
|
languageCode?: string;
|
|
@@ -88,6 +91,7 @@ interface StreamerState extends PeerState {
|
|
|
88
91
|
waitingRoomAccess: boolean;
|
|
89
92
|
peers: Array<PeerState>;
|
|
90
93
|
joinOptions: JoinOptions;
|
|
94
|
+
clientId: string;
|
|
91
95
|
}
|
|
92
96
|
interface ProducerData {
|
|
93
97
|
producerId: string;
|
|
@@ -512,6 +516,11 @@ declare class StreamerClient extends StreamerEventTargetType implements AudioLev
|
|
|
512
516
|
url: string;
|
|
513
517
|
assetId: number;
|
|
514
518
|
}>;
|
|
519
|
+
uploadEvent(file: any): Promise<{
|
|
520
|
+
url?: string;
|
|
521
|
+
id?: number;
|
|
522
|
+
success: boolean;
|
|
523
|
+
}>;
|
|
515
524
|
deleteCapture(assetId: number): Promise<number>;
|
|
516
525
|
captureVideo(videoElement?: HTMLVideoElement): Promise<string>;
|
|
517
526
|
requestLocalVideo(element: HTMLVideoElement): {
|