mediasfu-angular 2.1.5 → 2.2.0

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.
@@ -0,0 +1,130 @@
1
+ /**
2
+ * Custom component injection types for MediaSFU Angular
3
+ * This file defines interfaces and types for custom component injection patterns
4
+ * similar to React's component injection but adapted for Angular's architecture
5
+ */
6
+ import { Type, Injector, TemplateRef } from '@angular/core';
7
+ /**
8
+ * Custom component structure for Angular component injection
9
+ * Can be either a traditional component with injector or a function that returns an element
10
+ */
11
+ export interface CustomComponent<T = any> {
12
+ component: Type<T>;
13
+ injector?: Injector;
14
+ }
15
+ /**
16
+ * Function-based custom component
17
+ */
18
+ export type CustomComponentFunction = () => HTMLElement;
19
+ /**
20
+ * Union type for all supported custom component types
21
+ */
22
+ export type CustomComponentType<T = any> = CustomComponent<T> | CustomComponentFunction | HTMLElement;
23
+ /**
24
+ * Options for PrejoinPage custom component injection
25
+ */
26
+ export interface PrejoinPageCustomOptions {
27
+ /** Custom welcome/prejoin page component */
28
+ customWelcomeComponent?: CustomComponentType;
29
+ /** Custom form component for room creation/joining */
30
+ customFormComponent?: CustomComponentType;
31
+ /** Custom branding/logo component */
32
+ customBrandingComponent?: CustomComponentType;
33
+ }
34
+ /**
35
+ * Options for VideoCard custom component injection
36
+ */
37
+ export interface VideoCardCustomOptions {
38
+ /** Custom info overlay component */
39
+ customInfoComponent?: CustomComponentType;
40
+ /** Custom controls overlay component */
41
+ customControlsComponent?: CustomComponentType;
42
+ /** Custom entire video card wrapper */
43
+ customVideoCardComponent?: CustomComponentType;
44
+ }
45
+ /**
46
+ * Options for AudioCard custom component injection
47
+ */
48
+ export interface AudioCardCustomOptions {
49
+ /** Custom info overlay component */
50
+ customInfoComponent?: CustomComponentType;
51
+ /** Custom controls overlay component */
52
+ customControlsComponent?: CustomComponentType;
53
+ /** Custom entire audio card wrapper */
54
+ customAudioCardComponent?: CustomComponentType;
55
+ }
56
+ /**
57
+ * Options for MiniCard custom component injection
58
+ */
59
+ export interface MiniCardCustomOptions {
60
+ /** Custom mini card component */
61
+ customMiniCardComponent?: CustomComponentType;
62
+ /** Custom overlay component */
63
+ customOverlayComponent?: CustomComponentType;
64
+ }
65
+ /**
66
+ * Options for main UI component customization
67
+ */
68
+ export interface MainUICustomOptions {
69
+ /** Custom main container component */
70
+ customMainContainerComponent?: CustomComponentType;
71
+ /** Custom main screen component */
72
+ customMainScreenComponent?: CustomComponentType;
73
+ /** Custom main aspect component */
74
+ customMainAspectComponent?: CustomComponentType;
75
+ /** Custom main grid component */
76
+ customMainGridComponent?: CustomComponentType;
77
+ /** Custom control buttons component */
78
+ customControlButtonsComponent?: CustomComponentType;
79
+ }
80
+ /**
81
+ * Comprehensive custom component options for MediaSFU
82
+ */
83
+ export interface MediaSFUCustomComponents {
84
+ prejoinPage?: PrejoinPageCustomOptions;
85
+ videoCard?: VideoCardCustomOptions;
86
+ audioCard?: AudioCardCustomOptions;
87
+ miniCard?: MiniCardCustomOptions;
88
+ mainUI?: MainUICustomOptions;
89
+ }
90
+ /**
91
+ * Component injection configuration
92
+ */
93
+ export interface ComponentInjectionConfig {
94
+ /** Enable/disable custom component injection */
95
+ enabled: boolean;
96
+ /** Override default components with custom ones */
97
+ overrideDefaults: boolean;
98
+ /** Fallback to default if custom component fails */
99
+ fallbackToDefault: boolean;
100
+ }
101
+ /**
102
+ * Parameters passed to custom components
103
+ */
104
+ export interface CustomComponentParameters {
105
+ /** Component-specific parameters */
106
+ [key: string]: any;
107
+ }
108
+ /**
109
+ * Custom component context for dependency injection
110
+ */
111
+ export interface CustomComponentContext {
112
+ /** Component parameters */
113
+ parameters: CustomComponentParameters;
114
+ /** Injector instance for dependency injection */
115
+ injector?: Injector;
116
+ /** Component configuration */
117
+ config?: ComponentInjectionConfig;
118
+ }
119
+ /**
120
+ * Angular equivalent of React CustomComponentType for full UI replacement
121
+ * Component that receives all MediaSFU parameters and replaces the entire interface
122
+ */
123
+ export type CustomFullUIComponentType = Type<any> | TemplateRef<any>;
124
+ /**
125
+ * Parameters passed to custom full UI components
126
+ */
127
+ export interface CustomFullUIParameters {
128
+ /** All MediaSFU parameters and functions */
129
+ [key: string]: any;
130
+ }
@@ -476,6 +476,8 @@ export interface CreateRoomOptions {
476
476
  safeRoomAction: 'warn' | 'kick' | 'ban';
477
477
  dataBuffer: boolean;
478
478
  bufferType: 'images' | 'audio' | 'all';
479
+ directionSIP: 'inbound' | 'outbound' | 'both';
480
+ preferPCMA: boolean;
479
481
  }
480
482
  export interface CreateMediaSFURoomOptions {
481
483
  action: 'create';
@@ -493,6 +495,8 @@ export interface CreateMediaSFURoomOptions {
493
495
  safeRoomAction?: 'warn' | 'kick' | 'ban';
494
496
  dataBuffer?: boolean;
495
497
  bufferType?: 'images' | 'audio' | 'all';
498
+ directionSIP?: 'inbound' | 'outbound' | 'both';
499
+ preferPCMA?: boolean;
496
500
  }
497
501
  export interface JoinMediaSFURoomOptions {
498
502
  action: 'join';
@@ -676,3 +680,4 @@ export type CreateWebRTCTransportResponse = {
676
680
  iceParameters: IceParameters;
677
681
  error?: string;
678
682
  };
683
+ export * from './custom-component.types';
@@ -160,6 +160,10 @@ export type MediasfuBroadcastOptions = {
160
160
  * @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
161
161
  * @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
162
162
  * @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
163
+ * @input {any} customVideoCard - Custom component to replace the default VideoCard component.
164
+ * @input {any} customAudioCard - Custom component to replace the default AudioCard component.
165
+ * @input {any} customMiniCard - Custom component to replace the default MiniCard component.
166
+ * @input {any} customMainComponent - Custom component that provides complete control over the main UI, bypassing default MediaSFU styling.
163
167
  *
164
168
  * @property {string} title - The title of the component, defaults to "MediaSFU-Broadcast".
165
169
  *
@@ -183,13 +187,17 @@ export type MediasfuBroadcastOptions = {
183
187
  * [useLocalUIMode]="true"
184
188
  * [seedData]="seedDataObject"
185
189
  * [useSeed]="true"
186
- * [imgSrc]="https://example.com/logo.png">
190
+ * [imgSrc]="'https://example.com/logo.png'"
187
191
  * [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
188
192
  * [updateSourceParameters]="updateSourceParameters"
189
193
  * [returnUI]="true"
190
194
  * [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
191
195
  * [joinMediaSFURoom]="joinMediaSFURoom"
192
- * [createMediaSFURoom]="createMediaSFURoom">
196
+ * [createMediaSFURoom]="createMediaSFURoom"
197
+ * [customVideoCard]="CustomVideoCardComponent"
198
+ * [customAudioCard]="CustomAudioCardComponent"
199
+ * [customMiniCard]="CustomMiniCardComponent"
200
+ * [customMainComponent]="CustomMainComponent">
193
201
  * </app-mediasfu-broadcast>
194
202
  * ```
195
203
  */
@@ -312,6 +320,10 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
312
320
  noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
313
321
  joinMediaSFURoom?: JoinRoomOnMediaSFUType;
314
322
  createMediaSFURoom?: CreateRoomOnMediaSFUType;
323
+ customVideoCard: any;
324
+ customAudioCard: any;
325
+ customMiniCard: any;
326
+ customMainComponent: any;
315
327
  title: string;
316
328
  private mainHeightWidthSubscription;
317
329
  private validatedSubscription;
@@ -1719,6 +1731,9 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
1719
1731
  updateSocket: (value: Socket) => void;
1720
1732
  updateLocalSocket: (value: Socket | null) => void;
1721
1733
  updateValidated: (value: boolean) => void;
1734
+ customVideoCard: any;
1735
+ customAudioCard: any;
1736
+ customMiniCard: any;
1722
1737
  showAlert: ({ message, type, duration, }: {
1723
1738
  message: string;
1724
1739
  type: "success" | "danger";
@@ -2438,6 +2453,9 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
2438
2453
  updateSocket: (value: Socket) => void;
2439
2454
  updateLocalSocket: (value: Socket | null) => void;
2440
2455
  updateValidated: (value: boolean) => void;
2456
+ customVideoCard: any;
2457
+ customAudioCard: any;
2458
+ customMiniCard: any;
2441
2459
  showAlert: ({ message, type, duration, }: {
2442
2460
  message: string;
2443
2461
  type: "success" | "danger";
@@ -3160,6 +3178,9 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
3160
3178
  updateSocket: (value: Socket) => void;
3161
3179
  updateLocalSocket: (value: Socket | null) => void;
3162
3180
  updateValidated: (value: boolean) => void;
3181
+ customVideoCard: any;
3182
+ customAudioCard: any;
3183
+ customMiniCard: any;
3163
3184
  showAlert: ({ message, type, duration, }: {
3164
3185
  message: string;
3165
3186
  type: "success" | "danger";
@@ -3879,6 +3900,9 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
3879
3900
  updateSocket: (value: Socket) => void;
3880
3901
  updateLocalSocket: (value: Socket | null) => void;
3881
3902
  updateValidated: (value: boolean) => void;
3903
+ customVideoCard: any;
3904
+ customAudioCard: any;
3905
+ customMiniCard: any;
3882
3906
  showAlert: ({ message, type, duration, }: {
3883
3907
  message: string;
3884
3908
  type: "success" | "danger";
@@ -4601,6 +4625,9 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
4601
4625
  updateSocket: (value: Socket) => void;
4602
4626
  updateLocalSocket: (value: Socket | null) => void;
4603
4627
  updateValidated: (value: boolean) => void;
4628
+ customVideoCard: any;
4629
+ customAudioCard: any;
4630
+ customMiniCard: any;
4604
4631
  showAlert: ({ message, type, duration, }: {
4605
4632
  message: string;
4606
4633
  type: "success" | "danger";
@@ -5320,6 +5347,9 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
5320
5347
  updateSocket: (value: Socket) => void;
5321
5348
  updateLocalSocket: (value: Socket | null) => void;
5322
5349
  updateValidated: (value: boolean) => void;
5350
+ customVideoCard: any;
5351
+ customAudioCard: any;
5352
+ customMiniCard: any;
5323
5353
  showAlert: ({ message, type, duration, }: {
5324
5354
  message: string;
5325
5355
  type: "success" | "danger";
@@ -5445,5 +5475,5 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
5445
5475
  controlBroadcastButtonsArray: ButtonTouch[];
5446
5476
  connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
5447
5477
  static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuBroadcast, never>;
5448
- static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuBroadcast, "app-mediasfu-broadcast", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; }, {}, never, never, true, never>;
5478
+ static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuBroadcast, "app-mediasfu-broadcast", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; "customVideoCard": { "alias": "customVideoCard"; "required": false; }; "customAudioCard": { "alias": "customAudioCard"; "required": false; }; "customMiniCard": { "alias": "customMiniCard"; "required": false; }; "customMainComponent": { "alias": "customMainComponent"; "required": false; }; }, {}, never, never, true, never>;
5449
5479
  }
@@ -141,6 +141,10 @@ export type MediasfuChatOptions = {
141
141
  * @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
142
142
  * @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
143
143
  * @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
144
+ * @input {any} customVideoCard - Custom component to replace the default VideoCard component.
145
+ * @input {any} customAudioCard - Custom component to replace the default AudioCard component.
146
+ * @input {any} customMiniCard - Custom component to replace the default MiniCard component.
147
+ * @input {any} customMainComponent - Custom component that provides complete control over the main UI, bypassing default MediaSFU styling.
144
148
  *
145
149
  * @property {string} title - The title of the component, defaults to "MediaSFU-Chat".
146
150
  *
@@ -166,13 +170,17 @@ export type MediasfuChatOptions = {
166
170
  * [useLocalUIMode]="true"
167
171
  * [seedData]="seedDataObject"
168
172
  * [useSeed]="true"
169
- * [imgSrc]="https://example.com/logo.png">
173
+ * [imgSrc]="'https://example.com/logo.png'"
170
174
  * [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
171
175
  * [updateSourceParameters]="updateSourceParameters"
172
176
  * [returnUI]="true"
173
177
  * [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
174
178
  * [joinMediaSFURoom]="joinMediaSFURoom"
175
- * [createMediaSFURoom]="createMediaSFURoom">
179
+ * [createMediaSFURoom]="createMediaSFURoom"
180
+ * [customVideoCard]="CustomVideoCardComponent"
181
+ * [customAudioCard]="CustomAudioCardComponent"
182
+ * [customMiniCard]="CustomMiniCardComponent"
183
+ * [customMainComponent]="CustomMainComponent">
176
184
  * </app-mediasfu-chat>
177
185
  * ```
178
186
  */
@@ -281,6 +289,10 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
281
289
  noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
282
290
  joinMediaSFURoom?: JoinRoomOnMediaSFUType;
283
291
  createMediaSFURoom?: CreateRoomOnMediaSFUType;
292
+ customVideoCard?: any;
293
+ customAudioCard?: any;
294
+ customMiniCard?: any;
295
+ customMainComponent?: any;
284
296
  title: string;
285
297
  private mainHeightWidthSubscription;
286
298
  private validatedSubscription;
@@ -1687,6 +1699,9 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
1687
1699
  updateSocket: (value: Socket) => void;
1688
1700
  updateLocalSocket: (value: Socket | null) => void;
1689
1701
  updateValidated: (value: boolean) => void;
1702
+ customVideoCard: any;
1703
+ customAudioCard: any;
1704
+ customMiniCard: any;
1690
1705
  showAlert: ({ message, type, duration, }: {
1691
1706
  message: string;
1692
1707
  type: "success" | "danger";
@@ -2406,6 +2421,9 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
2406
2421
  updateSocket: (value: Socket) => void;
2407
2422
  updateLocalSocket: (value: Socket | null) => void;
2408
2423
  updateValidated: (value: boolean) => void;
2424
+ customVideoCard: any;
2425
+ customAudioCard: any;
2426
+ customMiniCard: any;
2409
2427
  showAlert: ({ message, type, duration, }: {
2410
2428
  message: string;
2411
2429
  type: "success" | "danger";
@@ -3128,6 +3146,9 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
3128
3146
  updateSocket: (value: Socket) => void;
3129
3147
  updateLocalSocket: (value: Socket | null) => void;
3130
3148
  updateValidated: (value: boolean) => void;
3149
+ customVideoCard: any;
3150
+ customAudioCard: any;
3151
+ customMiniCard: any;
3131
3152
  showAlert: ({ message, type, duration, }: {
3132
3153
  message: string;
3133
3154
  type: "success" | "danger";
@@ -3847,6 +3868,9 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
3847
3868
  updateSocket: (value: Socket) => void;
3848
3869
  updateLocalSocket: (value: Socket | null) => void;
3849
3870
  updateValidated: (value: boolean) => void;
3871
+ customVideoCard: any;
3872
+ customAudioCard: any;
3873
+ customMiniCard: any;
3850
3874
  showAlert: ({ message, type, duration, }: {
3851
3875
  message: string;
3852
3876
  type: "success" | "danger";
@@ -4569,6 +4593,9 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
4569
4593
  updateSocket: (value: Socket) => void;
4570
4594
  updateLocalSocket: (value: Socket | null) => void;
4571
4595
  updateValidated: (value: boolean) => void;
4596
+ customVideoCard: any;
4597
+ customAudioCard: any;
4598
+ customMiniCard: any;
4572
4599
  showAlert: ({ message, type, duration, }: {
4573
4600
  message: string;
4574
4601
  type: "success" | "danger";
@@ -5288,6 +5315,9 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
5288
5315
  updateSocket: (value: Socket) => void;
5289
5316
  updateLocalSocket: (value: Socket | null) => void;
5290
5317
  updateValidated: (value: boolean) => void;
5318
+ customVideoCard: any;
5319
+ customAudioCard: any;
5320
+ customMiniCard: any;
5291
5321
  showAlert: ({ message, type, duration, }: {
5292
5322
  message: string;
5293
5323
  type: "success" | "danger";
@@ -5375,5 +5405,5 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
5375
5405
  updateControlChatButtons(): void;
5376
5406
  connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
5377
5407
  static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuChat, never>;
5378
- static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuChat, "app-mediasfu-chat", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; }, {}, never, never, true, never>;
5408
+ static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuChat, "app-mediasfu-chat", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; "customVideoCard": { "alias": "customVideoCard"; "required": false; }; "customAudioCard": { "alias": "customAudioCard"; "required": false; }; "customMiniCard": { "alias": "customMiniCard"; "required": false; }; "customMainComponent": { "alias": "customMainComponent"; "required": false; }; }, {}, never, never, true, never>;
5379
5409
  }
@@ -183,6 +183,10 @@ export type MediasfuConferenceOptions = {
183
183
  * @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
184
184
  * @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
185
185
  * @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
186
+ * @input {any} customVideoCard - Custom component to replace the default VideoCard component.
187
+ * @input {any} customAudioCard - Custom component to replace the default AudioCard component.
188
+ * @input {any} customMiniCard - Custom component to replace the default MiniCard component.
189
+ * @input {any} customMainComponent - Custom component that provides complete control over the main UI, bypassing default MediaSFU styling.
186
190
  *
187
191
  * @property {string} title - The title of the component, defaults to "MediaSFU-Conference".
188
192
  *
@@ -208,13 +212,17 @@ export type MediasfuConferenceOptions = {
208
212
  * [useLocalUIMode]="true"
209
213
  * [seedData]="seedDataObject"
210
214
  * [useSeed]="true"
211
- * [imgSrc]="https://example.com/logo.png">
215
+ * [imgSrc]="'https://example.com/logo.png'"
212
216
  * [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
213
217
  * [updateSourceParameters]="updateSourceParameters"
214
218
  * [returnUI]="true"
215
219
  * [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
216
220
  * [joinMediaSFURoom]="joinMediaSFURoom"
217
- * [createMediaSFURoom]="createMediaSFURoom">
221
+ * [createMediaSFURoom]="createMediaSFURoom"
222
+ * [customVideoCard]="CustomVideoCardComponent"
223
+ * [customAudioCard]="CustomAudioCardComponent"
224
+ * [customMiniCard]="CustomMiniCardComponent"
225
+ * [customMainComponent]="CustomMainComponent">
218
226
  * </app-mediasfu-conference>
219
227
  * ```
220
228
  */
@@ -359,6 +367,10 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
359
367
  noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
360
368
  joinMediaSFURoom?: JoinRoomOnMediaSFUType;
361
369
  createMediaSFURoom?: CreateRoomOnMediaSFUType;
370
+ customVideoCard: any;
371
+ customAudioCard: any;
372
+ customMiniCard: any;
373
+ customMainComponent: any;
362
374
  title: string;
363
375
  private mainHeightWidthSubscription;
364
376
  private validatedSubscription;
@@ -1770,6 +1782,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
1770
1782
  updateSocket: (value: Socket) => void;
1771
1783
  updateLocalSocket: (value: Socket | null) => void;
1772
1784
  updateValidated: (value: boolean) => void;
1785
+ customVideoCard: any;
1786
+ customAudioCard: any;
1787
+ customMiniCard: any;
1773
1788
  showAlert: ({ message, type, duration, }: {
1774
1789
  message: string;
1775
1790
  type: "success" | "danger";
@@ -2491,6 +2506,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
2491
2506
  updateSocket: (value: Socket) => void;
2492
2507
  updateLocalSocket: (value: Socket | null) => void;
2493
2508
  updateValidated: (value: boolean) => void;
2509
+ customVideoCard: any;
2510
+ customAudioCard: any;
2511
+ customMiniCard: any;
2494
2512
  showAlert: ({ message, type, duration, }: {
2495
2513
  message: string;
2496
2514
  type: "success" | "danger";
@@ -3215,6 +3233,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
3215
3233
  updateSocket: (value: Socket) => void;
3216
3234
  updateLocalSocket: (value: Socket | null) => void;
3217
3235
  updateValidated: (value: boolean) => void;
3236
+ customVideoCard: any;
3237
+ customAudioCard: any;
3238
+ customMiniCard: any;
3218
3239
  showAlert: ({ message, type, duration, }: {
3219
3240
  message: string;
3220
3241
  type: "success" | "danger";
@@ -3936,6 +3957,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
3936
3957
  updateSocket: (value: Socket) => void;
3937
3958
  updateLocalSocket: (value: Socket | null) => void;
3938
3959
  updateValidated: (value: boolean) => void;
3960
+ customVideoCard: any;
3961
+ customAudioCard: any;
3962
+ customMiniCard: any;
3939
3963
  showAlert: ({ message, type, duration, }: {
3940
3964
  message: string;
3941
3965
  type: "success" | "danger";
@@ -4660,6 +4684,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
4660
4684
  updateSocket: (value: Socket) => void;
4661
4685
  updateLocalSocket: (value: Socket | null) => void;
4662
4686
  updateValidated: (value: boolean) => void;
4687
+ customVideoCard: any;
4688
+ customAudioCard: any;
4689
+ customMiniCard: any;
4663
4690
  showAlert: ({ message, type, duration, }: {
4664
4691
  message: string;
4665
4692
  type: "success" | "danger";
@@ -5381,6 +5408,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
5381
5408
  updateSocket: (value: Socket) => void;
5382
5409
  updateLocalSocket: (value: Socket | null) => void;
5383
5410
  updateValidated: (value: boolean) => void;
5411
+ customVideoCard: any;
5412
+ customAudioCard: any;
5413
+ customMiniCard: any;
5384
5414
  showAlert: ({ message, type, duration, }: {
5385
5415
  message: string;
5386
5416
  type: "success" | "danger";
@@ -6196,6 +6226,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
6196
6226
  updateSocket: (value: Socket) => void;
6197
6227
  updateLocalSocket: (value: Socket | null) => void;
6198
6228
  updateValidated: (value: boolean) => void;
6229
+ customVideoCard: any;
6230
+ customAudioCard: any;
6231
+ customMiniCard: any;
6199
6232
  showAlert: ({ message, type, duration, }: {
6200
6233
  message: string;
6201
6234
  type: "success" | "danger";
@@ -6917,6 +6950,9 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
6917
6950
  updateSocket: (value: Socket) => void;
6918
6951
  updateLocalSocket: (value: Socket | null) => void;
6919
6952
  updateValidated: (value: boolean) => void;
6953
+ customVideoCard: any;
6954
+ customAudioCard: any;
6955
+ customMiniCard: any;
6920
6956
  showAlert: ({ message, type, duration, }: {
6921
6957
  message: string;
6922
6958
  type: "success" | "danger";
@@ -7021,5 +7057,5 @@ export declare class MediasfuConference implements OnInit, OnDestroy {
7021
7057
  })[];
7022
7058
  connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
7023
7059
  static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuConference, never>;
7024
- static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuConference, "app-mediasfu-conference", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; }, {}, never, never, true, never>;
7060
+ static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuConference, "app-mediasfu-conference", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; "customVideoCard": { "alias": "customVideoCard"; "required": false; }; "customAudioCard": { "alias": "customAudioCard"; "required": false; }; "customMiniCard": { "alias": "customMiniCard"; "required": false; }; "customMainComponent": { "alias": "customMainComponent"; "required": false; }; }, {}, never, never, true, never>;
7025
7061
  }
@@ -184,6 +184,10 @@ export type MediasfuGenericOptions = {
184
184
  * @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
185
185
  * @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
186
186
  * @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
187
+ * @input {any} customVideoCard - Custom component to replace the default VideoCard component.
188
+ * @input {any} customAudioCard - Custom component to replace the default AudioCard component.
189
+ * @input {any} customMiniCard - Custom component to replace the default MiniCard component.
190
+ * @input {any} customMainComponent - Custom component that provides complete control over the main UI, bypassing default MediaSFU styling.
187
191
  *
188
192
  * @property {string} title - The title of the component, defaults to "MediaSFU-Generic".
189
193
  *
@@ -209,13 +213,17 @@ export type MediasfuGenericOptions = {
209
213
  * [useLocalUIMode]="true"
210
214
  * [seedData]="seedDataObject"
211
215
  * [useSeed]="true"
212
- * [imgSrc]="https://example.com/logo.png">
216
+ * [imgSrc]="'https://example.com/logo.png'"
213
217
  * [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
214
218
  * [updateSourceParameters]="updateSourceParameters"
215
219
  * [returnUI]="true"
216
220
  * [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
217
221
  * [joinMediaSFURoom]="joinMediaSFURoom"
218
- * [createMediaSFURoom]="createMediaSFURoom">
222
+ * [createMediaSFURoom]="createMediaSFURoom"
223
+ * [customVideoCard]="CustomVideoCardComponent"
224
+ * [customAudioCard]="CustomAudioCardComponent"
225
+ * [customMiniCard]="CustomMiniCardComponent"
226
+ * [customMainComponent]="CustomMainComponent">
219
227
  * </app-mediasfu-generic>
220
228
  * ```
221
229
  */
@@ -361,6 +369,10 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
361
369
  noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
362
370
  joinMediaSFURoom?: JoinRoomOnMediaSFUType;
363
371
  createMediaSFURoom?: CreateRoomOnMediaSFUType;
372
+ customVideoCard?: any;
373
+ customAudioCard?: any;
374
+ customMiniCard?: any;
375
+ customMainComponent?: any;
364
376
  title: string;
365
377
  private mainHeightWidthSubscription;
366
378
  private validatedSubscription;
@@ -1773,6 +1785,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
1773
1785
  updateSocket: (value: Socket) => void;
1774
1786
  updateLocalSocket: (value: Socket | null) => void;
1775
1787
  updateValidated: (value: boolean) => void;
1788
+ customVideoCard: any;
1789
+ customAudioCard: any;
1790
+ customMiniCard: any;
1776
1791
  showAlert: ({ message, type, duration, }: {
1777
1792
  message: string;
1778
1793
  type: "success" | "danger";
@@ -2495,6 +2510,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
2495
2510
  updateSocket: (value: Socket) => void;
2496
2511
  updateLocalSocket: (value: Socket | null) => void;
2497
2512
  updateValidated: (value: boolean) => void;
2513
+ customVideoCard: any;
2514
+ customAudioCard: any;
2515
+ customMiniCard: any;
2498
2516
  showAlert: ({ message, type, duration, }: {
2499
2517
  message: string;
2500
2518
  type: "success" | "danger";
@@ -3220,6 +3238,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
3220
3238
  updateSocket: (value: Socket) => void;
3221
3239
  updateLocalSocket: (value: Socket | null) => void;
3222
3240
  updateValidated: (value: boolean) => void;
3241
+ customVideoCard: any;
3242
+ customAudioCard: any;
3243
+ customMiniCard: any;
3223
3244
  showAlert: ({ message, type, duration, }: {
3224
3245
  message: string;
3225
3246
  type: "success" | "danger";
@@ -3942,6 +3963,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
3942
3963
  updateSocket: (value: Socket) => void;
3943
3964
  updateLocalSocket: (value: Socket | null) => void;
3944
3965
  updateValidated: (value: boolean) => void;
3966
+ customVideoCard: any;
3967
+ customAudioCard: any;
3968
+ customMiniCard: any;
3945
3969
  showAlert: ({ message, type, duration, }: {
3946
3970
  message: string;
3947
3971
  type: "success" | "danger";
@@ -4667,6 +4691,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
4667
4691
  updateSocket: (value: Socket) => void;
4668
4692
  updateLocalSocket: (value: Socket | null) => void;
4669
4693
  updateValidated: (value: boolean) => void;
4694
+ customVideoCard: any;
4695
+ customAudioCard: any;
4696
+ customMiniCard: any;
4670
4697
  showAlert: ({ message, type, duration, }: {
4671
4698
  message: string;
4672
4699
  type: "success" | "danger";
@@ -5389,6 +5416,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
5389
5416
  updateSocket: (value: Socket) => void;
5390
5417
  updateLocalSocket: (value: Socket | null) => void;
5391
5418
  updateValidated: (value: boolean) => void;
5419
+ customVideoCard: any;
5420
+ customAudioCard: any;
5421
+ customMiniCard: any;
5392
5422
  showAlert: ({ message, type, duration, }: {
5393
5423
  message: string;
5394
5424
  type: "success" | "danger";
@@ -6207,6 +6237,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
6207
6237
  updateSocket: (value: Socket) => void;
6208
6238
  updateLocalSocket: (value: Socket | null) => void;
6209
6239
  updateValidated: (value: boolean) => void;
6240
+ customVideoCard: any;
6241
+ customAudioCard: any;
6242
+ customMiniCard: any;
6210
6243
  showAlert: ({ message, type, duration, }: {
6211
6244
  message: string;
6212
6245
  type: "success" | "danger";
@@ -6929,6 +6962,9 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
6929
6962
  updateSocket: (value: Socket) => void;
6930
6963
  updateLocalSocket: (value: Socket | null) => void;
6931
6964
  updateValidated: (value: boolean) => void;
6965
+ customVideoCard: any;
6966
+ customAudioCard: any;
6967
+ customMiniCard: any;
6932
6968
  showAlert: ({ message, type, duration, }: {
6933
6969
  message: string;
6934
6970
  type: "success" | "danger";
@@ -7047,5 +7083,5 @@ export declare class MediasfuGeneric implements OnInit, OnDestroy {
7047
7083
  })[];
7048
7084
  connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
7049
7085
  static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuGeneric, never>;
7050
- static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuGeneric, "app-mediasfu-generic", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; }, {}, never, never, true, never>;
7086
+ static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuGeneric, "app-mediasfu-generic", never, { "PrejoinPage": { "alias": "PrejoinPage"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "useLocalUIMode": { "alias": "useLocalUIMode"; "required": false; }; "seedData": { "alias": "seedData"; "required": false; }; "useSeed": { "alias": "useSeed"; "required": false; }; "imgSrc": { "alias": "imgSrc"; "required": false; }; "sourceParameters": { "alias": "sourceParameters"; "required": false; }; "updateSourceParameters": { "alias": "updateSourceParameters"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; "customVideoCard": { "alias": "customVideoCard"; "required": false; }; "customAudioCard": { "alias": "customAudioCard"; "required": false; }; "customMiniCard": { "alias": "customMiniCard"; "required": false; }; "customMainComponent": { "alias": "customMainComponent"; "required": false; }; }, {}, never, never, true, never>;
7051
7087
  }