mediasfu-angular 2.0.1 → 2.1.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.
- package/README.md +528 -163
- package/dist/README.md +537 -163
- package/dist/fesm2022/mediasfu-angular.mjs +2369 -1797
- 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 +70 -26
- package/dist/lib/components/mediasfu-components/mediasfu-chat.component.d.ts +71 -23
- package/dist/lib/components/mediasfu-components/mediasfu-conference.component.d.ts +79 -29
- package/dist/lib/components/mediasfu-components/mediasfu-generic.component.d.ts +79 -29
- package/dist/lib/components/mediasfu-components/mediasfu-webinar.component.d.ts +82 -32
- 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 +5 -3
- package/dist/lib/methods/utils/join-room-on-media-sfu.service.d.ts +19 -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
|
@@ -9,7 +9,7 @@ import { MenuRecordWidget } from '../display-components/control-widgets/menu-rec
|
|
|
9
9
|
import { RecordTimerWidget } from '../display-components/control-widgets/record-timer-widget.component';
|
|
10
10
|
import { MenuParticipantsWidget } from '../display-components/control-widgets/menu-participants-widget.component';
|
|
11
11
|
import { ScreenShareWidget } from '../display-components/control-widgets/screenshare-widget.component';
|
|
12
|
-
import { 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, MainCustomButton, SeedData, PreJoinPageOptions } from '../../@types/types';
|
|
12
|
+
import { 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, MainCustomButton, SeedData, PreJoinPageOptions, CreateMediaSFURoomOptions, JoinMediaSFURoomOptions, JoinRoomOnMediaSFUType, CreateRoomOnMediaSFUType } from '../../@types/types';
|
|
13
13
|
import { LaunchMenuModal } from '../../methods/menu-methods/launch-menu-modal.service';
|
|
14
14
|
import { LaunchRecording } from '../../methods/recording-methods/launch-recording.service';
|
|
15
15
|
import { StartRecording } from '../../methods/recording-methods/start-recording.service';
|
|
@@ -143,6 +143,16 @@ export type MediasfuWebinarOptions = {
|
|
|
143
143
|
seedData?: SeedData;
|
|
144
144
|
useSeed?: boolean;
|
|
145
145
|
imgSrc?: string;
|
|
146
|
+
sourceParameters?: {
|
|
147
|
+
[key: string]: any;
|
|
148
|
+
};
|
|
149
|
+
updateSourceParameters?: (data: {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
}) => void;
|
|
152
|
+
returnUI?: boolean;
|
|
153
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
154
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
155
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
146
156
|
};
|
|
147
157
|
/**
|
|
148
158
|
* Component for managing webinars in the MediaSFU environment.
|
|
@@ -166,8 +176,14 @@ export type MediasfuWebinarOptions = {
|
|
|
166
176
|
* @input {SeedData} seedData - Seed data for initializing the component with specific configurations.
|
|
167
177
|
* @input {boolean} useSeed - Enable/disable use of seed data.
|
|
168
178
|
* @input {string} imgSrc - URL for branding images or logos.
|
|
179
|
+
* @input {object} sourceParameters - Additional parameters for the source.
|
|
180
|
+
* @input {Function} updateSourceParameters - Function to update the source parameters.
|
|
181
|
+
* @input {boolean} returnUI - Flag to return the UI elements.
|
|
182
|
+
* @input {CreateMediaSFURoomOptions | JoinMediaSFURoomOptions} noUIPreJoinOptions - Options for the prejoin page without UI.
|
|
183
|
+
* @input {JoinRoomOnMediaSFUType} joinMediaSFURoom - Function to join a room on MediaSFU.
|
|
184
|
+
* @input {CreateRoomOnMediaSFUType} createMediaSFURoom - Function to create a room on MediaSFU.
|
|
169
185
|
*
|
|
170
|
-
* @property {string} title -
|
|
186
|
+
* @property {string} title - The title of the component, defaults to "MediaSFU-Webinar".
|
|
171
187
|
*
|
|
172
188
|
* @styles
|
|
173
189
|
* Component-specific styles with full-screen properties and customizable modal colors.
|
|
@@ -182,15 +198,21 @@ export type MediasfuWebinarOptions = {
|
|
|
182
198
|
*
|
|
183
199
|
* @example
|
|
184
200
|
* ```html
|
|
185
|
-
* <app-mediasfu-
|
|
201
|
+
* <app-mediasfu-webinar
|
|
186
202
|
* [PrejoinPage]="CustomPrejoinComponent"
|
|
187
203
|
* [localLink]="'https://localhost:3000'"
|
|
188
204
|
* [connectMediaSFU]="true"
|
|
189
205
|
* [credentials]="{ apiUserName: 'username', apiKey: 'apikey' }"
|
|
190
206
|
* [useLocalUIMode]="true"
|
|
191
|
-
* [seedData]="
|
|
207
|
+
* [seedData]="seedDataObject"
|
|
192
208
|
* [useSeed]="true"
|
|
193
|
-
* imgSrc="https://example.com/logo.png">
|
|
209
|
+
* [imgSrc]="https://example.com/logo.png">
|
|
210
|
+
* [sourceParameters]="{ source: 'camera', width: 640, height: 480 }"
|
|
211
|
+
* [updateSourceParameters]="updateSourceParameters"
|
|
212
|
+
* [returnUI]="true"
|
|
213
|
+
* [noUIPreJoinOptions]="{ roomName: 'room1', userName: 'user1' }"
|
|
214
|
+
* [joinMediaSFURoom]="joinMediaSFURoom"
|
|
215
|
+
* [createMediaSFURoom]="createMediaSFURoom">
|
|
194
216
|
* </app-mediasfu-webinar>
|
|
195
217
|
* ```
|
|
196
218
|
*/
|
|
@@ -325,6 +347,16 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
325
347
|
seedData?: SeedData;
|
|
326
348
|
useSeed: boolean;
|
|
327
349
|
imgSrc: string;
|
|
350
|
+
sourceParameters?: {
|
|
351
|
+
[key: string]: any;
|
|
352
|
+
};
|
|
353
|
+
updateSourceParameters?: ((data: {
|
|
354
|
+
[key: string]: any;
|
|
355
|
+
}) => void) | undefined;
|
|
356
|
+
returnUI?: boolean | undefined;
|
|
357
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
358
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
359
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
328
360
|
title: string;
|
|
329
361
|
private mainHeightWidthSubscription;
|
|
330
362
|
private validatedSubscription;
|
|
@@ -351,7 +383,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
351
383
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
352
384
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
353
385
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
354
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
386
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
355
387
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
356
388
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
357
389
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -859,7 +891,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
859
891
|
recordingVideoOptions: BehaviorSubject<string>;
|
|
860
892
|
recordingVideoType: BehaviorSubject<string>;
|
|
861
893
|
recordingVideoOptimized: BehaviorSubject<boolean>;
|
|
862
|
-
recordingDisplayType: BehaviorSubject<"
|
|
894
|
+
recordingDisplayType: BehaviorSubject<"video" | "media" | "all">;
|
|
863
895
|
recordingAddHLS: BehaviorSubject<boolean>;
|
|
864
896
|
recordingNameTags: BehaviorSubject<boolean>;
|
|
865
897
|
recordingBackgroundColor: BehaviorSubject<string>;
|
|
@@ -894,6 +926,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
894
926
|
videoParams: BehaviorSubject<ProducerOptions>;
|
|
895
927
|
audioParams: BehaviorSubject<ProducerOptions>;
|
|
896
928
|
audioProducer: BehaviorSubject<Producer<import("mediasoup-client/lib/types").AppData> | null>;
|
|
929
|
+
audioLevel: BehaviorSubject<number>;
|
|
897
930
|
localAudioProducer: BehaviorSubject<Producer<import("mediasoup-client/lib/types").AppData> | null>;
|
|
898
931
|
consumerTransports: BehaviorSubject<TransportType[]>;
|
|
899
932
|
consumingTransports: BehaviorSubject<string[]>;
|
|
@@ -1036,6 +1069,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1036
1069
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
1037
1070
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
1038
1071
|
updateAudioProducer: (value: Producer | null) => void;
|
|
1072
|
+
updateAudioLevel: (value: number) => void;
|
|
1039
1073
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
1040
1074
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
1041
1075
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -1085,7 +1119,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1085
1119
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
1086
1120
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
1087
1121
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
1088
|
-
checkOrientation: () => "
|
|
1122
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
1089
1123
|
showAlert: ({ message, type, duration, }: {
|
|
1090
1124
|
message: string;
|
|
1091
1125
|
type: "success" | "danger";
|
|
@@ -1328,7 +1362,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1328
1362
|
recordingVideoOptions: string;
|
|
1329
1363
|
recordingVideoType: string;
|
|
1330
1364
|
recordingVideoOptimized: boolean;
|
|
1331
|
-
recordingDisplayType: "
|
|
1365
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
1332
1366
|
recordingAddHLS: boolean;
|
|
1333
1367
|
recordingAddText: boolean;
|
|
1334
1368
|
recordingCustomText: string;
|
|
@@ -1363,6 +1397,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1363
1397
|
videoParams: ProducerOptions;
|
|
1364
1398
|
audioParams: ProducerOptions;
|
|
1365
1399
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
1400
|
+
audioLevel: number;
|
|
1366
1401
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
1367
1402
|
consumerTransports: TransportType[];
|
|
1368
1403
|
consumingTransports: string[];
|
|
@@ -1678,6 +1713,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1678
1713
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
1679
1714
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
1680
1715
|
updateAudioProducer: (value: Producer | null) => void;
|
|
1716
|
+
updateAudioLevel: (value: number) => void;
|
|
1681
1717
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
1682
1718
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
1683
1719
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -1727,7 +1763,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1727
1763
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
1728
1764
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
1729
1765
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
1730
|
-
checkOrientation: () => "
|
|
1766
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
1731
1767
|
updateDevice: (value: Device | null) => void;
|
|
1732
1768
|
updateSocket: (value: Socket) => void;
|
|
1733
1769
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -1753,7 +1789,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
1753
1789
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
1754
1790
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
1755
1791
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
1756
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
1792
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
1757
1793
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
1758
1794
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
1759
1795
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -2047,7 +2083,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2047
2083
|
recordingVideoOptions: string;
|
|
2048
2084
|
recordingVideoType: string;
|
|
2049
2085
|
recordingVideoOptimized: boolean;
|
|
2050
|
-
recordingDisplayType: "
|
|
2086
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
2051
2087
|
recordingAddHLS: boolean;
|
|
2052
2088
|
recordingAddText: boolean;
|
|
2053
2089
|
recordingCustomText: string;
|
|
@@ -2082,6 +2118,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2082
2118
|
videoParams: ProducerOptions;
|
|
2083
2119
|
audioParams: ProducerOptions;
|
|
2084
2120
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2121
|
+
audioLevel: number;
|
|
2085
2122
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2086
2123
|
consumerTransports: TransportType[];
|
|
2087
2124
|
consumingTransports: string[];
|
|
@@ -2397,6 +2434,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2397
2434
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
2398
2435
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
2399
2436
|
updateAudioProducer: (value: Producer | null) => void;
|
|
2437
|
+
updateAudioLevel: (value: number) => void;
|
|
2400
2438
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
2401
2439
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
2402
2440
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -2446,7 +2484,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2446
2484
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
2447
2485
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
2448
2486
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
2449
|
-
checkOrientation: () => "
|
|
2487
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
2450
2488
|
updateDevice: (value: Device | null) => void;
|
|
2451
2489
|
updateSocket: (value: Socket) => void;
|
|
2452
2490
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -2475,7 +2513,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2475
2513
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
2476
2514
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
2477
2515
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
2478
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
2516
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
2479
2517
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
2480
2518
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
2481
2519
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -2769,7 +2807,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2769
2807
|
recordingVideoOptions: string;
|
|
2770
2808
|
recordingVideoType: string;
|
|
2771
2809
|
recordingVideoOptimized: boolean;
|
|
2772
|
-
recordingDisplayType: "
|
|
2810
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
2773
2811
|
recordingAddHLS: boolean;
|
|
2774
2812
|
recordingAddText: boolean;
|
|
2775
2813
|
recordingCustomText: string;
|
|
@@ -2804,6 +2842,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
2804
2842
|
videoParams: ProducerOptions;
|
|
2805
2843
|
audioParams: ProducerOptions;
|
|
2806
2844
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2845
|
+
audioLevel: number;
|
|
2807
2846
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
2808
2847
|
consumerTransports: TransportType[];
|
|
2809
2848
|
consumingTransports: string[];
|
|
@@ -3119,6 +3158,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3119
3158
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
3120
3159
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
3121
3160
|
updateAudioProducer: (value: Producer | null) => void;
|
|
3161
|
+
updateAudioLevel: (value: number) => void;
|
|
3122
3162
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
3123
3163
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
3124
3164
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -3168,7 +3208,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3168
3208
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
3169
3209
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
3170
3210
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
3171
|
-
checkOrientation: () => "
|
|
3211
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
3172
3212
|
updateDevice: (value: Device | null) => void;
|
|
3173
3213
|
updateSocket: (value: Socket) => void;
|
|
3174
3214
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -3194,7 +3234,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3194
3234
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
3195
3235
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
3196
3236
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
3197
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3237
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3198
3238
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
3199
3239
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
3200
3240
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -3488,7 +3528,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3488
3528
|
recordingVideoOptions: string;
|
|
3489
3529
|
recordingVideoType: string;
|
|
3490
3530
|
recordingVideoOptimized: boolean;
|
|
3491
|
-
recordingDisplayType: "
|
|
3531
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
3492
3532
|
recordingAddHLS: boolean;
|
|
3493
3533
|
recordingAddText: boolean;
|
|
3494
3534
|
recordingCustomText: string;
|
|
@@ -3523,6 +3563,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3523
3563
|
videoParams: ProducerOptions;
|
|
3524
3564
|
audioParams: ProducerOptions;
|
|
3525
3565
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
3566
|
+
audioLevel: number;
|
|
3526
3567
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
3527
3568
|
consumerTransports: TransportType[];
|
|
3528
3569
|
consumingTransports: string[];
|
|
@@ -3838,6 +3879,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3838
3879
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
3839
3880
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
3840
3881
|
updateAudioProducer: (value: Producer | null) => void;
|
|
3882
|
+
updateAudioLevel: (value: number) => void;
|
|
3841
3883
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
3842
3884
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
3843
3885
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -3887,7 +3929,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3887
3929
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
3888
3930
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
3889
3931
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
3890
|
-
checkOrientation: () => "
|
|
3932
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
3891
3933
|
updateDevice: (value: Device | null) => void;
|
|
3892
3934
|
updateSocket: (value: Socket) => void;
|
|
3893
3935
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -3916,7 +3958,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
3916
3958
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
3917
3959
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
3918
3960
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
3919
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3961
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
3920
3962
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
3921
3963
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
3922
3964
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -4210,7 +4252,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4210
4252
|
recordingVideoOptions: string;
|
|
4211
4253
|
recordingVideoType: string;
|
|
4212
4254
|
recordingVideoOptimized: boolean;
|
|
4213
|
-
recordingDisplayType: "
|
|
4255
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
4214
4256
|
recordingAddHLS: boolean;
|
|
4215
4257
|
recordingAddText: boolean;
|
|
4216
4258
|
recordingCustomText: string;
|
|
@@ -4245,6 +4287,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4245
4287
|
videoParams: ProducerOptions;
|
|
4246
4288
|
audioParams: ProducerOptions;
|
|
4247
4289
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4290
|
+
audioLevel: number;
|
|
4248
4291
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4249
4292
|
consumerTransports: TransportType[];
|
|
4250
4293
|
consumingTransports: string[];
|
|
@@ -4560,6 +4603,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4560
4603
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
4561
4604
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
4562
4605
|
updateAudioProducer: (value: Producer | null) => void;
|
|
4606
|
+
updateAudioLevel: (value: number) => void;
|
|
4563
4607
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
4564
4608
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
4565
4609
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -4609,7 +4653,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4609
4653
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
4610
4654
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
4611
4655
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
4612
|
-
checkOrientation: () => "
|
|
4656
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
4613
4657
|
updateDevice: (value: Device | null) => void;
|
|
4614
4658
|
updateSocket: (value: Socket) => void;
|
|
4615
4659
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -4635,7 +4679,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4635
4679
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
4636
4680
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
4637
4681
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
4638
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
4682
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
4639
4683
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
4640
4684
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
4641
4685
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -4929,7 +4973,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4929
4973
|
recordingVideoOptions: string;
|
|
4930
4974
|
recordingVideoType: string;
|
|
4931
4975
|
recordingVideoOptimized: boolean;
|
|
4932
|
-
recordingDisplayType: "
|
|
4976
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
4933
4977
|
recordingAddHLS: boolean;
|
|
4934
4978
|
recordingAddText: boolean;
|
|
4935
4979
|
recordingCustomText: string;
|
|
@@ -4964,6 +5008,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
4964
5008
|
videoParams: ProducerOptions;
|
|
4965
5009
|
audioParams: ProducerOptions;
|
|
4966
5010
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
5011
|
+
audioLevel: number;
|
|
4967
5012
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
4968
5013
|
consumerTransports: TransportType[];
|
|
4969
5014
|
consumingTransports: string[];
|
|
@@ -5279,6 +5324,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
5279
5324
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
5280
5325
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
5281
5326
|
updateAudioProducer: (value: Producer | null) => void;
|
|
5327
|
+
updateAudioLevel: (value: number) => void;
|
|
5282
5328
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
5283
5329
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
5284
5330
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -5328,7 +5374,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
5328
5374
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
5329
5375
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
5330
5376
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
5331
|
-
checkOrientation: () => "
|
|
5377
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
5332
5378
|
updateDevice: (value: Device | null) => void;
|
|
5333
5379
|
updateSocket: (value: Socket) => void;
|
|
5334
5380
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -5448,7 +5494,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
5448
5494
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
5449
5495
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
5450
5496
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
5451
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
5497
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
5452
5498
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
5453
5499
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
5454
5500
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -5742,7 +5788,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
5742
5788
|
recordingVideoOptions: string;
|
|
5743
5789
|
recordingVideoType: string;
|
|
5744
5790
|
recordingVideoOptimized: boolean;
|
|
5745
|
-
recordingDisplayType: "
|
|
5791
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
5746
5792
|
recordingAddHLS: boolean;
|
|
5747
5793
|
recordingAddText: boolean;
|
|
5748
5794
|
recordingCustomText: string;
|
|
@@ -5777,6 +5823,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
5777
5823
|
videoParams: ProducerOptions;
|
|
5778
5824
|
audioParams: ProducerOptions;
|
|
5779
5825
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
5826
|
+
audioLevel: number;
|
|
5780
5827
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
5781
5828
|
consumerTransports: TransportType[];
|
|
5782
5829
|
consumingTransports: string[];
|
|
@@ -6092,6 +6139,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6092
6139
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
6093
6140
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
6094
6141
|
updateAudioProducer: (value: Producer | null) => void;
|
|
6142
|
+
updateAudioLevel: (value: number) => void;
|
|
6095
6143
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
6096
6144
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
6097
6145
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -6141,7 +6189,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6141
6189
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
6142
6190
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
6143
6191
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
6144
|
-
checkOrientation: () => "
|
|
6192
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
6145
6193
|
updateDevice: (value: Device | null) => void;
|
|
6146
6194
|
updateSocket: (value: Socket) => void;
|
|
6147
6195
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -6167,7 +6215,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6167
6215
|
getVideos: ({ participants, allVideoStreams, oldAllStreams, adminVidID, updateAllVideoStreams, updateOldAllStreams, }: import("../../consumers/get-videos.service").GetVideosOptions) => Promise<void>;
|
|
6168
6216
|
rePort: ({ restart, parameters }: import("../../consumers/re-port.service").RePortOptions) => Promise<void>;
|
|
6169
6217
|
trigger: ({ ref_ActiveNames, parameters }: import("../../consumers/trigger.service").TriggerOptions) => Promise<void>;
|
|
6170
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
6218
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: import("../../consumers/consumer-resume.service").ConsumerResumeOptions) => Promise<void>;
|
|
6171
6219
|
connectSendTransport: ({ option, targetOption, parameters }: import("../../consumers/connect-send-transport.service").ConnectSendTransportOptions) => Promise<void>;
|
|
6172
6220
|
connectSendTransportAudio: ({ targetOption, audioParams, parameters, }: import("../../consumers/connect-send-transport-audio.service").ConnectSendTransportAudioOptions) => Promise<void>;
|
|
6173
6221
|
connectSendTransportVideo: ({ videoParams, parameters, targetOption, }: import("../../consumers/connect-send-transport-video.service").ConnectSendTransportVideoOptions) => Promise<void>;
|
|
@@ -6461,7 +6509,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6461
6509
|
recordingVideoOptions: string;
|
|
6462
6510
|
recordingVideoType: string;
|
|
6463
6511
|
recordingVideoOptimized: boolean;
|
|
6464
|
-
recordingDisplayType: "
|
|
6512
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
6465
6513
|
recordingAddHLS: boolean;
|
|
6466
6514
|
recordingAddText: boolean;
|
|
6467
6515
|
recordingCustomText: string;
|
|
@@ -6496,6 +6544,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6496
6544
|
videoParams: ProducerOptions;
|
|
6497
6545
|
audioParams: ProducerOptions;
|
|
6498
6546
|
audioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
6547
|
+
audioLevel: number;
|
|
6499
6548
|
localAudioProducer: Producer<import("mediasoup-client/lib/types").AppData> | null;
|
|
6500
6549
|
consumerTransports: TransportType[];
|
|
6501
6550
|
consumingTransports: string[];
|
|
@@ -6811,6 +6860,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6811
6860
|
updateVideoParams: (value: ProducerOptions) => void;
|
|
6812
6861
|
updateAudioParams: (value: ProducerOptions) => void;
|
|
6813
6862
|
updateAudioProducer: (value: Producer | null) => void;
|
|
6863
|
+
updateAudioLevel: (value: number) => void;
|
|
6814
6864
|
updateLocalAudioProducer: (value: Producer | null) => void;
|
|
6815
6865
|
updateConsumerTransports: (value: TransportType[]) => void;
|
|
6816
6866
|
updateConsumingTransports: (value: string[]) => void;
|
|
@@ -6860,7 +6910,7 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6860
6910
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
6861
6911
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
6862
6912
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
6863
|
-
checkOrientation: () => "
|
|
6913
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
6864
6914
|
updateDevice: (value: Device | null) => void;
|
|
6865
6915
|
updateSocket: (value: Socket) => void;
|
|
6866
6916
|
updateLocalSocket: (value: Socket | null) => void;
|
|
@@ -6969,5 +7019,5 @@ export declare class MediasfuWebinar implements OnInit, OnDestroy {
|
|
|
6969
7019
|
})[];
|
|
6970
7020
|
connect_Socket(apiUserName: string, token: string, skipSockets?: boolean): Promise<Socket | null>;
|
|
6971
7021
|
static ɵfac: i0.ɵɵFactoryDeclaration<MediasfuWebinar, never>;
|
|
6972
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuWebinar, "app-mediasfu-webinar", 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>;
|
|
7022
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediasfuWebinar, "app-mediasfu-webinar", 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>;
|
|
6973
7023
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { Socket } from 'socket.io-client';
|
|
4
|
-
import { ConnectSocketType, ShowAlert, ConnectLocalSocketType, ResponseLocalConnectionData, RecordingParams, MeetingRoomParams } from '../../../@types/types';
|
|
4
|
+
import { ConnectSocketType, ShowAlert, ConnectLocalSocketType, ResponseLocalConnectionData, RecordingParams, MeetingRoomParams, CreateMediaSFURoomOptions, JoinMediaSFURoomOptions } from '../../../@types/types';
|
|
5
5
|
import { CheckLimitsAndMakeRequest } from '../../../methods/utils/check-limits-and-make-request.service';
|
|
6
6
|
import { CreateRoomOnMediaSFU } from '../../../methods/utils/create-room-on-media-sfu.service';
|
|
7
|
-
import { JoinRoomOnMediaSFU } from '../../../methods/utils/join-room-on-media-sfu.service';
|
|
7
|
+
import { CreateRoomOnMediaSFUType, JoinRoomOnMediaSFUType, JoinRoomOnMediaSFU } from '../../../methods/utils/join-room-on-media-sfu.service';
|
|
8
|
+
import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export interface JoinLocalEventRoomParameters {
|
|
10
11
|
eventID: string;
|
|
@@ -67,6 +68,10 @@ export interface PreJoinPageOptions {
|
|
|
67
68
|
connectMediaSFU?: boolean;
|
|
68
69
|
parameters: PreJoinPageParameters;
|
|
69
70
|
credentials?: Credentials;
|
|
71
|
+
returnUI?: boolean;
|
|
72
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
73
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
74
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
70
75
|
}
|
|
71
76
|
export type PreJoinPageType = (options: PreJoinPageOptions) => HTMLElement;
|
|
72
77
|
/**
|
|
@@ -146,6 +151,10 @@ export declare class PreJoinPage implements OnInit {
|
|
|
146
151
|
credentials: Credentials;
|
|
147
152
|
localLink: string | undefined;
|
|
148
153
|
connectMediaSFU: boolean | undefined;
|
|
154
|
+
returnUI?: boolean;
|
|
155
|
+
noUIPreJoinOptions?: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions;
|
|
156
|
+
createMediaSFURoom?: CreateRoomOnMediaSFUType;
|
|
157
|
+
joinMediaSFURoom?: JoinRoomOnMediaSFUType;
|
|
149
158
|
isCreateMode: boolean;
|
|
150
159
|
preJoinForm: FormGroup;
|
|
151
160
|
error: string;
|
|
@@ -153,9 +162,11 @@ export declare class PreJoinPage implements OnInit {
|
|
|
153
162
|
localConnected: boolean;
|
|
154
163
|
localData: ResponseLocalConnectionData | undefined;
|
|
155
164
|
initSocket: Socket | undefined;
|
|
156
|
-
|
|
165
|
+
pending: BehaviorSubject<boolean>;
|
|
166
|
+
constructor(fb: FormBuilder, injectedParameters: PreJoinPageParameters, injectedCredentials: Credentials, injectedLocalLink: string, injectedConnectMediaSFU: boolean, injectedReturnUI: boolean, injectedNoUIPreJoinOptions: CreateMediaSFURoomOptions | JoinMediaSFURoomOptions, injectedCreateMediaSFURoom: CreateRoomOnMediaSFUType, injectedJoinMediaSFURoom: JoinRoomOnMediaSFUType, checkLimitsService: CheckLimitsAndMakeRequest, createRoomService: CreateRoomOnMediaSFU, joinRoomService: JoinRoomOnMediaSFU);
|
|
157
167
|
ngOnInit(): void;
|
|
158
168
|
private connectLocalSocket;
|
|
169
|
+
private checkProceed;
|
|
159
170
|
toggleMode(): void;
|
|
160
171
|
joinLocalRoom(options: JoinLocalEventRoomOptions): Promise<void>;
|
|
161
172
|
createLocalRoom(options: CreateLocalRoomOptions): Promise<void>;
|
|
@@ -167,6 +178,6 @@ export declare class PreJoinPage implements OnInit {
|
|
|
167
178
|
}): Promise<any>;
|
|
168
179
|
handleCreateRoom(): Promise<void>;
|
|
169
180
|
handleJoinRoom(): Promise<void>;
|
|
170
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PreJoinPage, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
171
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PreJoinPage, "app-pre-join-page", never, { "parameters": { "alias": "parameters"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; }, {}, never, never, true, never>;
|
|
181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreJoinPage, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null]>;
|
|
182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreJoinPage, "app-pre-join-page", never, { "parameters": { "alias": "parameters"; "required": false; }; "credentials": { "alias": "credentials"; "required": false; }; "localLink": { "alias": "localLink"; "required": false; }; "connectMediaSFU": { "alias": "connectMediaSFU"; "required": false; }; "returnUI": { "alias": "returnUI"; "required": false; }; "noUIPreJoinOptions": { "alias": "noUIPreJoinOptions"; "required": false; }; "createMediaSFURoom": { "alias": "createMediaSFURoom"; "required": false; }; "joinMediaSFURoom": { "alias": "joinMediaSFURoom"; "required": false; }; }, {}, never, never, true, never>;
|
|
172
183
|
}
|
|
@@ -9,6 +9,9 @@ export interface ConnectSendTransportAudioParameters {
|
|
|
9
9
|
updateProducerTransport: (transport: Transport | null) => void;
|
|
10
10
|
updateLocalAudioProducer?: (localProducer: Producer | null) => void;
|
|
11
11
|
updateLocalProducerTransport?: (localTransport: Transport | null) => void;
|
|
12
|
+
updateAudioLevel: (level: number) => void;
|
|
13
|
+
getUpdatedAllParams: () => ConnectSendTransportAudioParameters;
|
|
14
|
+
[key: string]: any;
|
|
12
15
|
}
|
|
13
16
|
export interface ConnectSendTransportAudioOptions {
|
|
14
17
|
audioParams: ProducerOptions;
|
|
@@ -16,6 +19,7 @@ export interface ConnectSendTransportAudioOptions {
|
|
|
16
19
|
targetOption?: 'all' | 'local' | 'remote';
|
|
17
20
|
}
|
|
18
21
|
export type ConnectSendTransportAudioType = (options: ConnectSendTransportAudioOptions) => Promise<void>;
|
|
22
|
+
export declare const updateMicLevel: (audioProducer: Producer, updateAudioLevel: (level: number) => void) => Promise<void>;
|
|
19
23
|
export declare const connectLocalSendTransportAudio: ({ parameters, audioParams }: ConnectSendTransportAudioOptions) => Promise<void>;
|
|
20
24
|
/**
|
|
21
25
|
* Connects the send transport for audio by producing audio data and updating the audio producer and producer transport objects.
|
|
@@ -27,6 +31,9 @@ export declare const connectLocalSendTransportAudio: ({ parameters, audioParams
|
|
|
27
31
|
* @param {Transport} options.parameters.producerTransport - The transport used to produce audio data.
|
|
28
32
|
* @param {Function} options.parameters.updateAudioProducer - Function to update the audio producer.
|
|
29
33
|
* @param {Function} options.parameters.updateProducerTransport - Function to update the producer transport.
|
|
34
|
+
* @param {Function} [options.parameters.updateLocalAudioProducer] - Function to update the local audio producer.
|
|
35
|
+
* @param {Function} [options.parameters.updateLocalProducerTransport] - Function to update the local producer transport.
|
|
36
|
+
* @param {Function} options.parameters.updateAudioLevel - Function to update the audio level.
|
|
30
37
|
*
|
|
31
38
|
* @returns {Promise<void>} A promise that resolves when the audio transport is successfully connected.
|
|
32
39
|
*
|
|
@@ -44,6 +51,9 @@ export declare const connectLocalSendTransportAudio: ({ parameters, audioParams
|
|
|
44
51
|
* producerTransport: transport,
|
|
45
52
|
* updateAudioProducer: (producer) => { console.log(updated) },
|
|
46
53
|
* updateProducerTransport: (transport) => { console.log(updated) },
|
|
54
|
+
* updateLocalAudioProducer: (localProducer) => { console.log(updated) },
|
|
55
|
+
* updateLocalProducerTransport: (localTransport) => { console.log(updated) },
|
|
56
|
+
* updateAudioLevel: (level) => { console.log(level) },
|
|
47
57
|
* };
|
|
48
58
|
*
|
|
49
59
|
* connectSendTransportAudio({ audioParams, parameters })
|
|
@@ -69,6 +79,8 @@ export declare class ConnectSendTransportAudio {
|
|
|
69
79
|
* @param {(producer: Producer | null) => void} options.parameters.updateAudioProducer - The function to update the audio producer object.
|
|
70
80
|
* @param {(transport: Transport | null) => void} options.parameters.updateProducerTransport - The function to update the producer transport object.
|
|
71
81
|
* @param {(localProducer: Producer | null) => void} [options.parameters.updateLocalAudioProducer] - The function to update the local audio producer object.
|
|
82
|
+
* @param {(localTransport: Transport | null) => void} [options.parameters.updateLocalProducerTransport] - The function to update the local producer transport object.
|
|
83
|
+
* @param {(level: number) => void} options.parameters.updateAudioLevel - The function to update the audio level.
|
|
72
84
|
* @returns {Promise<void>} A promise that resolves when the connection is established.
|
|
73
85
|
*
|
|
74
86
|
* @throws Will throw an error if the connection fails.
|
|
@@ -13,6 +13,7 @@ export interface ConnectSendTransportParameters extends ConnectSendTransportAudi
|
|
|
13
13
|
connectSendTransportAudio: ConnectSendTransportAudioType;
|
|
14
14
|
connectSendTransportVideo: ConnectSendTransportVideoType;
|
|
15
15
|
connectSendTransportScreen: ConnectSendTransportScreenType;
|
|
16
|
+
getUpdatedAllParams: () => ConnectSendTransportParameters;
|
|
16
17
|
[key: string]: any;
|
|
17
18
|
}
|
|
18
19
|
export interface ConnectSendTransportOptions {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Socket } from 'socket.io-client';
|
|
2
2
|
import { ReorderStreamsType, ReorderStreamsParameters, Participant, PrepopulateUserMediaType, PrepopulateUserMediaParameters, Stream, EventType } from '../@types/types';
|
|
3
|
+
import { Consumer } from 'mediasoup-client/lib/types';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface ConsumerResumeParameters extends ReorderStreamsParameters, PrepopulateUserMediaParameters {
|
|
5
6
|
nStream: MediaStream | null;
|
|
@@ -63,6 +64,7 @@ export interface ConsumerResumeOptions {
|
|
|
63
64
|
params: ResumeParams;
|
|
64
65
|
parameters: ConsumerResumeParameters;
|
|
65
66
|
nsock: Socket;
|
|
67
|
+
consumer: Consumer;
|
|
66
68
|
}
|
|
67
69
|
export type ConsumerResumeType = (options: ConsumerResumeOptions) => Promise<void>;
|
|
68
70
|
/**
|
|
@@ -75,6 +77,7 @@ export type ConsumerResumeType = (options: ConsumerResumeOptions) => Promise<voi
|
|
|
75
77
|
* @param {ResumeParams} options.params - Additional parameters related to the resumed consumer.
|
|
76
78
|
* @param {ConsumerResumeParameters} options.parameters - The parameters object containing various utility functions and state.
|
|
77
79
|
* @param {Socket} options.nsock - The socket associated with the consumer.
|
|
80
|
+
* @param {Consumer} options.consumer - The consumer to resume.
|
|
78
81
|
* @throws Will throw an error if an issue occurs during the consumer resumption.
|
|
79
82
|
*
|
|
80
83
|
* @example
|
|
@@ -90,6 +93,7 @@ export type ConsumerResumeType = (options: ConsumerResumeOptions) => Promise<voi
|
|
|
90
93
|
* },
|
|
91
94
|
* parameters: consumerResumeParameters, // Parameters for the consumer
|
|
92
95
|
* nsock: socket, // Socket for communication
|
|
96
|
+
* consumer: consumer, // Consumer to resume
|
|
93
97
|
* };
|
|
94
98
|
*
|
|
95
99
|
* consumerResume(options)
|
|
@@ -112,9 +116,10 @@ export declare class ConsumerResume {
|
|
|
112
116
|
* @param {Object} options.params - Additional parameters related to the resumed consumer.
|
|
113
117
|
* @param {Object} options.parameters - The parameters object containing various utility functions and state.
|
|
114
118
|
* @param {Object} options.nsock - The socket associated with the consumer.
|
|
119
|
+
* @param {Object} options.consumer - The consumer to resume.
|
|
115
120
|
* @throws Throws an error if an issue occurs during the consumer resumption.
|
|
116
121
|
*/
|
|
117
|
-
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, }: ConsumerResumeOptions) => Promise<void>;
|
|
122
|
+
consumerResume: ({ track, remoteProducerId, params, parameters, nsock, consumer, }: ConsumerResumeOptions) => Promise<void>;
|
|
118
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConsumerResume, never>;
|
|
119
124
|
static ɵprov: i0.ɵɵInjectableDeclaration<ConsumerResume>;
|
|
120
125
|
}
|