mediasfu-angular 2.0.2 → 2.1.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/README.md +527 -162
- package/dist/README.md +530 -162
- package/dist/fesm2022/mediasfu-angular.mjs +2373 -1801
- package/dist/fesm2022/mediasfu-angular.mjs.map +1 -1
- package/dist/lib/@types/types.d.ts +23 -1
- package/dist/lib/components/mediasfu-components/mediasfu-broadcast.component.d.ts +56 -12
- package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +57 -9
- package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +61 -11
- package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +61 -11
- package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +64 -14
- package/dist/lib/components/misc-components/pre-join-page/pre-join-page.component.d.ts +16 -5
- package/dist/lib/consumers/connect-send-transport-audio.service.d.ts +12 -0
- package/dist/lib/consumers/connect-send-transport.service.d.ts +1 -0
- package/dist/lib/consumers/consumer-resume.service.d.ts +6 -1
- package/dist/lib/methods/utils/create-room-on-media-sfu.service.d.ts +4 -3
- package/dist/lib/methods/utils/join-room-on-media-sfu.service.d.ts +18 -5
- package/dist/lib/methods/utils/mini-audio-player/mini-audio-player.component.d.ts +10 -6
- package/dist/lib/producers/producer-emits/join-local-room.service.d.ts +15 -1
- package/package.json +1 -1
|
@@ -208,7 +208,7 @@ export type { WaitingRoomModalOptions, WaitingRoomModalType, WaitingRoomModalPar
|
|
|
208
208
|
export type { ConfigureWhiteboardModalOptions, ConfigureWhiteboardModalType, } from '../components/whiteboard-components/configure-whiteboard-modal/configure-whiteboard-modal.component';
|
|
209
209
|
export type { WhiteboardOptions, WhiteboardType, WhiteboardParameters, Shape, } from '../components/whiteboard-components/whiteboard/whiteboard.component';
|
|
210
210
|
export type { CustomButton } from '../components/menu-components/custom-buttons/custom-buttons.component';
|
|
211
|
-
export type { CreateJoinRoomType, CreateRoomOnMediaSFUType, CreateJoinRoomResponse, CreateJoinRoomError } from '../methods/utils/join-room-on-media-sfu.service';
|
|
211
|
+
export type { CreateJoinRoomType, CreateRoomOnMediaSFUType, CreateJoinRoomResponse, CreateJoinRoomError, JoinRoomOnMediaSFUType } from '../methods/utils/join-room-on-media-sfu.service';
|
|
212
212
|
export interface Participant {
|
|
213
213
|
id?: string;
|
|
214
214
|
audioID: string;
|
|
@@ -476,6 +476,28 @@ export interface CreateRoomOptions {
|
|
|
476
476
|
dataBuffer: boolean;
|
|
477
477
|
bufferType: 'images' | 'audio' | 'all';
|
|
478
478
|
}
|
|
479
|
+
export interface CreateMediaSFURoomOptions {
|
|
480
|
+
action: 'create';
|
|
481
|
+
duration: number;
|
|
482
|
+
capacity: number;
|
|
483
|
+
userName: string;
|
|
484
|
+
scheduledDate?: number;
|
|
485
|
+
secureCode?: string;
|
|
486
|
+
eventType?: 'conference' | 'webinar' | 'chat' | 'broadcast';
|
|
487
|
+
meetingRoomParams?: MeetingRoomParams;
|
|
488
|
+
recordingParams?: RecordingParams;
|
|
489
|
+
recordOnly?: boolean;
|
|
490
|
+
safeRoom?: boolean;
|
|
491
|
+
autoStartSafeRoom?: boolean;
|
|
492
|
+
safeRoomAction?: 'warn' | 'kick' | 'ban';
|
|
493
|
+
dataBuffer?: boolean;
|
|
494
|
+
bufferType?: 'images' | 'audio' | 'all';
|
|
495
|
+
}
|
|
496
|
+
export interface JoinMediaSFURoomOptions {
|
|
497
|
+
action: 'join';
|
|
498
|
+
meetingID: string;
|
|
499
|
+
userName: string;
|
|
500
|
+
}
|
|
479
501
|
export interface ResponseJoinLocalRoom {
|
|
480
502
|
rtpCapabilities?: RtpCapabilities | null;
|
|
481
503
|
isHost: boolean;
|
|
@@ -6,7 +6,7 @@ import { MessageWidget } from '../display-components/control-widgets/message-wid
|
|
|
6
6
|
import { MenuRecordWidget } from '../display-components/control-widgets/menu-record-widget.component';
|
|
7
7
|
import { RecordTimerWidget } from '../display-components/control-widgets/record-timer-widget.component';
|
|
8
8
|
import { MenuParticipantsWidget } from '../display-components/control-widgets/menu-participants-widget.component';
|
|
9
|
-
import { ButtonTouch, ResponseJoinRoom, CoHostResponsibility, EventType, Participant, ConsumeSocket, MeetingRoomParams, VidCons, HParamsType, VParamsType, ScreenParamsType, AParamsType, UserRecordingParams, Stream, AudioDecibels, ScreenState, GridSizes, CustomMediaComponent, Message, WaitingRoomParticipant, ComponentSizes, Transport as TransportType, Shape, Poll, BreakoutParticipant, WhiteboardUser, Request, MainButtonAlt, SeedData, PreJoinPageOptions } from '../../@types/types';
|
|
9
|
+
import { ButtonTouch, ResponseJoinRoom, CoHostResponsibility, EventType, Participant, ConsumeSocket, MeetingRoomParams, VidCons, HParamsType, VParamsType, ScreenParamsType, AParamsType, UserRecordingParams, Stream, AudioDecibels, ScreenState, GridSizes, CustomMediaComponent, Message, WaitingRoomParticipant, ComponentSizes, Transport as TransportType, Shape, Poll, BreakoutParticipant, WhiteboardUser, Request, MainButtonAlt, SeedData, PreJoinPageOptions, CreateMediaSFURoomOptions, JoinMediaSFURoomOptions, JoinRoomOnMediaSFUType, CreateRoomOnMediaSFUType } from '../../@types/types';
|
|
10
10
|
import { LaunchRecording } from '../../methods/recording-methods/launch-recording.service';
|
|
11
11
|
import { StartRecording } from '../../methods/recording-methods/start-recording.service';
|
|
12
12
|
import { ConfirmRecording } from '../../methods/recording-methods/confirm-recording.service';
|
|
@@ -118,6 +118,16 @@ export type MediasfuBroadcastOptions = {
|
|
|
118
118
|
seedData?: SeedData;
|
|
119
119
|
useSeed?: boolean;
|
|
120
120
|
imgSrc?: string;
|
|
121
|
+
sourceParameters?: {
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
};
|
|
124
|
+
updateSourceParameters?: (data: {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
}) => void;
|
|
127
|
+
returnUI?: boolean;
|
|
128
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
129
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
130
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
121
131
|
};
|
|
122
132
|
/**
|
|
123
133
|
* MediasfuBroadcast component provides a streaming broadcast interface with various UI components and settings.
|
|
@@ -144,10 +154,14 @@ export type MediasfuBroadcastOptions = {
|
|
|
144
154
|
* @input {SeedData} seedData - Seed data for initializing the component with specific configurations.
|
|
145
155
|
* @input {boolean} useSeed - Enable/disable use of seed data.
|
|
146
156
|
* @input {string} imgSrc - URL for branding images or logos.
|
|
157
|
+
* @input {object} sourceParameters - Additional parameters for the source.
|
|
158
|
+
* @input {Function} updateSourceParameters - Function to update the source parameters.
|
|
159
|
+
* @input {boolean} returnUI - Flag to return the UI elements.
|
|
160
|
+
* @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
|
|
161
|
+
* @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
|
|
162
|
+
* @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
|
|
147
163
|
*
|
|
148
|
-
* @property {string} title - The title of the
|
|
149
|
-
*
|
|
150
|
-
* @providers [CookieService] - Service for managing cookies within the component.
|
|
164
|
+
* @property {string} title - The title of the component, defaults to "MediaSFU-Broadcast".
|
|
151
165
|
*
|
|
152
166
|
* @styles
|
|
153
167
|
* Custom styles specific to MediaSFU layout and interactions.
|
|
@@ -169,7 +183,13 @@ export type MediasfuBroadcastOptions = {
|
|
|
169
183
|
* [useLocalUIMode]="true"
|
|
170
184
|
* [seedData]="seedDataObject"
|
|
171
185
|
* [useSeed]="true"
|
|
172
|
-
* imgSrc="https://example.com/logo.png">
|
|
186
|
+
* [imgSrc]="https://example.com/logo.png">
|
|
187
|
+
* [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
|
|
188
|
+
* [updateSourceParameters]="updateSourceParameters"
|
|
189
|
+
* [returnUI]="true"
|
|
190
|
+
* [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
|
|
191
|
+
* [joinMediaSFURoom]="joinMediaSFURoom"
|
|
192
|
+
* [createMediaSFURoom]="createMediaSFURoom">
|
|
173
193
|
* </app-mediasfu-broadcast>
|
|
174
194
|
* ```
|
|
175
195
|
*/
|
|
@@ -282,6 +302,16 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
282
302
|
seedData?: SeedData;
|
|
283
303
|
useSeed: boolean;
|
|
284
304
|
imgSrc: string;
|
|
305
|
+
sourceParameters?: {
|
|
306
|
+
[key: string]: any;
|
|
307
|
+
};
|
|
308
|
+
updateSourceParameters?: ((data: {
|
|
309
|
+
[key: string]: any;
|
|
310
|
+
}) => void) | undefined;
|
|
311
|
+
returnUI?: boolean | undefined;
|
|
312
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
313
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
314
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
285
315
|
title: string;
|
|
286
316
|
private mainHeightWidthSubscription;
|
|
287
317
|
private validatedSubscription;
|
|
@@ -308,7 +338,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
308
338
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
309
339
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
310
340
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
311
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
341
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
312
342
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
313
343
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
314
344
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -849,6 +879,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
849
879
|
videoParams: BehaviorSubject<ProducerOptions>;
|
|
850
880
|
audioParams: BehaviorSubject<ProducerOptions>;
|
|
851
881
|
audioProducer: BehaviorSubject<Producer<import("mediasoup-client/lib/types").AppData> | null>;
|
|
882
|
+
audioLevel: BehaviorSubject<number>;
|
|
852
883
|
localAudioProducer: BehaviorSubject<Producer<import("mediasoup-client/lib/types").AppData> | null>;
|
|
853
884
|
consumerTransports: BehaviorSubject<TransportType[]>;
|
|
854
885
|
consumingTransports: BehaviorSubject<string[]>;
|
|
@@ -989,6 +1020,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
989
1020
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
990
1021
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
991
1022
|
updateAudioProducer: (value: Producer | null) => void;
|
|
1023
|
+
updateAudioLevel: (value: number) => void;
|
|
992
1024
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
993
1025
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
994
1026
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -1316,6 +1348,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1316
1348
|
videoParams: ProducerOptions;
|
|
1317
1349
|
audioParams: ProducerOptions;
|
|
1318
1350
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
1351
|
+
audioLevel: number;
|
|
1319
1352
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
1320
1353
|
consumerTransports: TransportType[];
|
|
1321
1354
|
consumingTransports: string[];
|
|
@@ -1631,6 +1664,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1631
1664
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
1632
1665
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
1633
1666
|
updateAudioProducer: (value: Producer | null) => void;
|
|
1667
|
+
updateAudioLevel: (value: number) => void;
|
|
1634
1668
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
1635
1669
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
1636
1670
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -1706,7 +1740,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1706
1740
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
1707
1741
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
1708
1742
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
1709
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
1743
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
1710
1744
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
1711
1745
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
1712
1746
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -2033,6 +2067,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
2033
2067
|
videoParams: ProducerOptions;
|
|
2034
2068
|
audioParams: ProducerOptions;
|
|
2035
2069
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2070
|
+
audioLevel: number;
|
|
2036
2071
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2037
2072
|
consumerTransports: TransportType[];
|
|
2038
2073
|
consumingTransports: string[];
|
|
@@ -2348,6 +2383,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
2348
2383
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
2349
2384
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
2350
2385
|
updateAudioProducer: (value: Producer | null) => void;
|
|
2386
|
+
updateAudioLevel: (value: number) => void;
|
|
2351
2387
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
2352
2388
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
2353
2389
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -2426,7 +2462,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
2426
2462
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
2427
2463
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
2428
2464
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
2429
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
2465
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
2430
2466
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
2431
2467
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
2432
2468
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -2753,6 +2789,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
2753
2789
|
videoParams: ProducerOptions;
|
|
2754
2790
|
audioParams: ProducerOptions;
|
|
2755
2791
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2792
|
+
audioLevel: number;
|
|
2756
2793
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2757
2794
|
consumerTransports: TransportType[];
|
|
2758
2795
|
consumingTransports: string[];
|
|
@@ -3068,6 +3105,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3068
3105
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
3069
3106
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
3070
3107
|
updateAudioProducer: (value: Producer | null) => void;
|
|
3108
|
+
updateAudioLevel: (value: number) => void;
|
|
3071
3109
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
3072
3110
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
3073
3111
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -3143,7 +3181,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3143
3181
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
3144
3182
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
3145
3183
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
3146
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3184
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3147
3185
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
3148
3186
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
3149
3187
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -3470,6 +3508,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3470
3508
|
videoParams: ProducerOptions;
|
|
3471
3509
|
audioParams: ProducerOptions;
|
|
3472
3510
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
3511
|
+
audioLevel: number;
|
|
3473
3512
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
3474
3513
|
consumerTransports: TransportType[];
|
|
3475
3514
|
consumingTransports: string[];
|
|
@@ -3785,6 +3824,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3785
3824
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
3786
3825
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
3787
3826
|
updateAudioProducer: (value: Producer | null) => void;
|
|
3827
|
+
updateAudioLevel: (value: number) => void;
|
|
3788
3828
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
3789
3829
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
3790
3830
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -3863,7 +3903,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3863
3903
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
3864
3904
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
3865
3905
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
3866
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3906
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3867
3907
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
3868
3908
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
3869
3909
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -4190,6 +4230,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4190
4230
|
videoParams: ProducerOptions;
|
|
4191
4231
|
audioParams: ProducerOptions;
|
|
4192
4232
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4233
|
+
audioLevel: number;
|
|
4193
4234
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4194
4235
|
consumerTransports: TransportType[];
|
|
4195
4236
|
consumingTransports: string[];
|
|
@@ -4505,6 +4546,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4505
4546
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
4506
4547
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
4507
4548
|
updateAudioProducer: (value: Producer | null) => void;
|
|
4549
|
+
updateAudioLevel: (value: number) => void;
|
|
4508
4550
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
4509
4551
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
4510
4552
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -4580,7 +4622,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4580
4622
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
4581
4623
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
4582
4624
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
4583
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
4625
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
4584
4626
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
4585
4627
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
4586
4628
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -4907,6 +4949,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4907
4949
|
videoParams: ProducerOptions;
|
|
4908
4950
|
audioParams: ProducerOptions;
|
|
4909
4951
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4952
|
+
audioLevel: number;
|
|
4910
4953
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4911
4954
|
consumerTransports: TransportType[];
|
|
4912
4955
|
consumingTransports: string[];
|
|
@@ -5222,6 +5265,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
5222
5265
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
5223
5266
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
5224
5267
|
updateAudioProducer: (value: Producer | null) => void;
|
|
5268
|
+
updateAudioLevel: (value: number) => void;
|
|
5225
5269
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
5226
5270
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
5227
5271
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -5401,5 +5445,5 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
5401
5445
|
controlBroadcastButtonsArray: ButtonTouch[];
|
|
5402
5446
|
connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
|
|
5403
5447
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuBroadcast, never>;
|
|
5404
|
-
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; }; }, {}, never, never, true, 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>;
|
|
5405
5449
|
}
|
|
@@ -3,7 +3,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
3
3
|
import { Socket } from 'socket.io-client';
|
|
4
4
|
import { WelcomePageOptions } from '../misc-components/welcome-page/welcome-page.component';
|
|
5
5
|
import { MessageWidget } from '../display-components/control-widgets/message-widget.component';
|
|
6
|
-
import { ButtonTouch, ResponseJoinRoom, CoHostResponsibility, EventType, Participant, ConsumeSocket, MeetingRoomParams, VidCons, HParamsType, VParamsType, ScreenParamsType, AParamsType, UserRecordingParams, Stream, AudioDecibels, ScreenState, GridSizes, CustomMediaComponent, Message, WaitingRoomParticipant, ComponentSizes, Transport as TransportType, Shape, Poll, BreakoutParticipant, WhiteboardUser, Request, SeedData, PreJoinPageOptions } from '../../@types/types';
|
|
6
|
+
import { ButtonTouch, ResponseJoinRoom, CoHostResponsibility, EventType, Participant, ConsumeSocket, MeetingRoomParams, VidCons, HParamsType, VParamsType, ScreenParamsType, AParamsType, UserRecordingParams, Stream, AudioDecibels, ScreenState, GridSizes, CustomMediaComponent, Message, WaitingRoomParticipant, ComponentSizes, Transport as TransportType, Shape, Poll, BreakoutParticipant, WhiteboardUser, Request, SeedData, PreJoinPageOptions, CreateMediaSFURoomOptions, JoinMediaSFURoomOptions, JoinRoomOnMediaSFUType, CreateRoomOnMediaSFUType } from '../../@types/types';
|
|
7
7
|
import { LaunchMessages } from '../../methods/message-methods/launch-messages.service';
|
|
8
8
|
import { LaunchConfirmExit } from '../../methods/exit-methods/launch-confirm-exit.service';
|
|
9
9
|
import { SocketManager } from '../../sockets/socket-manager.service';
|
|
@@ -101,6 +101,16 @@ export type MediasfuChatOptions = {
|
|
|
101
101
|
seedData?: SeedData;
|
|
102
102
|
useSeed?: boolean;
|
|
103
103
|
imgSrc?: string;
|
|
104
|
+
sourceParameters?: {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
};
|
|
107
|
+
updateSourceParameters?: (data: {
|
|
108
|
+
[key: string]: any;
|
|
109
|
+
}) => void;
|
|
110
|
+
returnUI?: boolean;
|
|
111
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
112
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
113
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
104
114
|
};
|
|
105
115
|
/**
|
|
106
116
|
* MediasfuChat component provides an interface for chat-based streaming events. It includes a conditional prejoin screen, main content with flexible grids and modals, and supports chat-related settings.
|
|
@@ -125,6 +135,12 @@ export type MediasfuChatOptions = {
|
|
|
125
135
|
* @input {SeedData} seedData - Seed data for initializing the component with specific configurations.
|
|
126
136
|
* @input {boolean} useSeed - Enable/disable use of seed data.
|
|
127
137
|
* @input {string} imgSrc - URL for branding images or logos.
|
|
138
|
+
* @input {object} sourceParameters - Additional parameters for the source.
|
|
139
|
+
* @input {Function} updateSourceParameters - Function to update the source parameters.
|
|
140
|
+
* @input {boolean} returnUI - Flag to return the UI elements.
|
|
141
|
+
* @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
|
|
142
|
+
* @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
|
|
143
|
+
* @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
|
|
128
144
|
*
|
|
129
145
|
* @property {string} title - The title of the component, defaults to "MediaSFU-Chat".
|
|
130
146
|
*
|
|
@@ -144,11 +160,19 @@ export type MediasfuChatOptions = {
|
|
|
144
160
|
* ```html
|
|
145
161
|
* <app-mediasfu-chat
|
|
146
162
|
* [PrejoinPage]="CustomPrejoinComponent"
|
|
163
|
+
* [localLink]="'https://localhost:3000'"
|
|
164
|
+
* [connectMediaSFU]="true"
|
|
147
165
|
* [credentials]="{ apiUserName: 'username', apiKey: 'apikey' }"
|
|
148
166
|
* [useLocalUIMode]="true"
|
|
149
167
|
* [seedData]="seedDataObject"
|
|
150
168
|
* [useSeed]="true"
|
|
151
|
-
* imgSrc="https://example.com/logo.png">
|
|
169
|
+
* [imgSrc]="https://example.com/logo.png">
|
|
170
|
+
* [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
|
|
171
|
+
* [updateSourceParameters]="updateSourceParameters"
|
|
172
|
+
* [returnUI]="true"
|
|
173
|
+
* [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
|
|
174
|
+
* [joinMediaSFURoom]="joinMediaSFURoom"
|
|
175
|
+
* [createMediaSFURoom]="createMediaSFURoom">
|
|
152
176
|
* </app-mediasfu-chat>
|
|
153
177
|
* ```
|
|
154
178
|
*/
|
|
@@ -247,6 +271,16 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
247
271
|
seedData?: SeedData;
|
|
248
272
|
useSeed: boolean;
|
|
249
273
|
imgSrc: string;
|
|
274
|
+
sourceParameters?: {
|
|
275
|
+
[key: string]: any;
|
|
276
|
+
};
|
|
277
|
+
updateSourceParameters?: ((data: {
|
|
278
|
+
[key: string]: any;
|
|
279
|
+
}) => void) | undefined;
|
|
280
|
+
returnUI?: boolean | undefined;
|
|
281
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
282
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
283
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
250
284
|
title: string;
|
|
251
285
|
private mainHeightWidthSubscription;
|
|
252
286
|
private validatedSubscription;
|
|
@@ -272,7 +306,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
272
306
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
273
307
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
274
308
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
275
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
309
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
276
310
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
277
311
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
278
312
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -813,6 +847,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
813
847
|
videoParams: BehaviorSubject<ProducerOptions>;
|
|
814
848
|
audioParams: BehaviorSubject<ProducerOptions>;
|
|
815
849
|
audioProducer: BehaviorSubject<Producer<import("mediasoup-client/lib/types").AppData> | null>;
|
|
850
|
+
audioLevel: BehaviorSubject<number>;
|
|
816
851
|
localAudioProducer: BehaviorSubject<Producer<import("mediasoup-client/lib/types").AppData> | null>;
|
|
817
852
|
consumerTransports: BehaviorSubject<TransportType[]>;
|
|
818
853
|
consumingTransports: BehaviorSubject<string[]>;
|
|
@@ -953,6 +988,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
953
988
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
954
989
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
955
990
|
updateAudioProducer: (value: Producer | null) => void;
|
|
991
|
+
updateAudioLevel: (value: number) => void;
|
|
956
992
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
957
993
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
958
994
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -1280,6 +1316,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
1280
1316
|
videoParams: ProducerOptions;
|
|
1281
1317
|
audioParams: ProducerOptions;
|
|
1282
1318
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
1319
|
+
audioLevel: number;
|
|
1283
1320
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
1284
1321
|
consumerTransports: TransportType[];
|
|
1285
1322
|
consumingTransports: string[];
|
|
@@ -1595,6 +1632,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
1595
1632
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
1596
1633
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
1597
1634
|
updateAudioProducer: (value: Producer | null) => void;
|
|
1635
|
+
updateAudioLevel: (value: number) => void;
|
|
1598
1636
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
1599
1637
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
1600
1638
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -1670,7 +1708,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
1670
1708
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
1671
1709
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
1672
1710
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
1673
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
1711
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
1674
1712
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
1675
1713
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
1676
1714
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -1997,6 +2035,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
1997
2035
|
videoParams: ProducerOptions;
|
|
1998
2036
|
audioParams: ProducerOptions;
|
|
1999
2037
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2038
|
+
audioLevel: number;
|
|
2000
2039
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2001
2040
|
consumerTransports: TransportType[];
|
|
2002
2041
|
consumingTransports: string[];
|
|
@@ -2312,6 +2351,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
2312
2351
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
2313
2352
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
2314
2353
|
updateAudioProducer: (value: Producer | null) => void;
|
|
2354
|
+
updateAudioLevel: (value: number) => void;
|
|
2315
2355
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
2316
2356
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
2317
2357
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -2390,7 +2430,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
2390
2430
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
2391
2431
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
2392
2432
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
2393
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
2433
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
2394
2434
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
2395
2435
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
2396
2436
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -2717,6 +2757,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
2717
2757
|
videoParams: ProducerOptions;
|
|
2718
2758
|
audioParams: ProducerOptions;
|
|
2719
2759
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2760
|
+
audioLevel: number;
|
|
2720
2761
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2721
2762
|
consumerTransports: TransportType[];
|
|
2722
2763
|
consumingTransports: string[];
|
|
@@ -3032,6 +3073,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
3032
3073
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
3033
3074
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
3034
3075
|
updateAudioProducer: (value: Producer | null) => void;
|
|
3076
|
+
updateAudioLevel: (value: number) => void;
|
|
3035
3077
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
3036
3078
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
3037
3079
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -3107,7 +3149,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
3107
3149
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
3108
3150
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
3109
3151
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
3110
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3152
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3111
3153
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
3112
3154
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
3113
3155
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -3434,6 +3476,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
3434
3476
|
videoParams: ProducerOptions;
|
|
3435
3477
|
audioParams: ProducerOptions;
|
|
3436
3478
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
3479
|
+
audioLevel: number;
|
|
3437
3480
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
3438
3481
|
consumerTransports: TransportType[];
|
|
3439
3482
|
consumingTransports: string[];
|
|
@@ -3749,6 +3792,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
3749
3792
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
3750
3793
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
3751
3794
|
updateAudioProducer: (value: Producer | null) => void;
|
|
3795
|
+
updateAudioLevel: (value: number) => void;
|
|
3752
3796
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
3753
3797
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
3754
3798
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -3827,7 +3871,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
3827
3871
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
3828
3872
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
3829
3873
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
3830
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3874
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3831
3875
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
3832
3876
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
3833
3877
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -4154,6 +4198,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
4154
4198
|
videoParams: ProducerOptions;
|
|
4155
4199
|
audioParams: ProducerOptions;
|
|
4156
4200
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4201
|
+
audioLevel: number;
|
|
4157
4202
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4158
4203
|
consumerTransports: TransportType[];
|
|
4159
4204
|
consumingTransports: string[];
|
|
@@ -4469,6 +4514,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
4469
4514
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
4470
4515
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
4471
4516
|
updateAudioProducer: (value: Producer | null) => void;
|
|
4517
|
+
updateAudioLevel: (value: number) => void;
|
|
4472
4518
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
4473
4519
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
4474
4520
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -4544,7 +4590,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
4544
4590
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
4545
4591
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
4546
4592
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
4547
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
4593
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
4548
4594
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
4549
4595
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
4550
4596
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -4871,6 +4917,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
4871
4917
|
videoParams: ProducerOptions;
|
|
4872
4918
|
audioParams: ProducerOptions;
|
|
4873
4919
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4920
|
+
audioLevel: number;
|
|
4874
4921
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4875
4922
|
consumerTransports: TransportType[];
|
|
4876
4923
|
consumingTransports: string[];
|
|
@@ -5186,6 +5233,7 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
5186
5233
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
5187
5234
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
5188
5235
|
updateAudioProducer: (value: Producer | null) => void;
|
|
5236
|
+
updateAudioLevel: (value: number) => void;
|
|
5189
5237
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
5190
5238
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
5191
5239
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -5327,5 +5375,5 @@ export declare class MediasfuChat implements OnInit, OnDestroy {
|
|
|
5327
5375
|
updateControlChatButtons(): void;
|
|
5328
5376
|
connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
|
|
5329
5377
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuChat, never>;
|
|
5330
|
-
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; }; }, {}, never, never, true, 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>;
|
|
5331
5379
|
}
|