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
|
@@ -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>;
|
|
@@ -814,7 +844,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
814
844
|
recordingVideoOptions: BehaviorSubject<string>;
|
|
815
845
|
recordingVideoType: BehaviorSubject<string>;
|
|
816
846
|
recordingVideoOptimized: BehaviorSubject<boolean>;
|
|
817
|
-
recordingDisplayType: BehaviorSubject<"
|
|
847
|
+
recordingDisplayType: BehaviorSubject<"video" | "media" | "all">;
|
|
818
848
|
recordingAddHLS: BehaviorSubject<boolean>;
|
|
819
849
|
recordingNameTags: BehaviorSubject<boolean>;
|
|
820
850
|
recordingBackgroundColor: BehaviorSubject<string>;
|
|
@@ -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;
|
|
@@ -1038,7 +1070,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1038
1070
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
1039
1071
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
1040
1072
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
1041
|
-
checkOrientation: () => "
|
|
1073
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
1042
1074
|
showAlert: ({ message, type, duration, }: {
|
|
1043
1075
|
message: string;
|
|
1044
1076
|
type: "success" | "danger";
|
|
@@ -1281,7 +1313,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1281
1313
|
recordingVideoOptions: string;
|
|
1282
1314
|
recordingVideoType: string;
|
|
1283
1315
|
recordingVideoOptimized: boolean;
|
|
1284
|
-
recordingDisplayType: "
|
|
1316
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
1285
1317
|
recordingAddHLS: boolean;
|
|
1286
1318
|
recordingAddText: boolean;
|
|
1287
1319
|
recordingCustomText: string;
|
|
@@ -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;
|
|
@@ -1680,7 +1714,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1680
1714
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
1681
1715
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
1682
1716
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
1683
|
-
checkOrientation: () => "
|
|
1717
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
1684
1718
|
updateDevice: (value: Device | null) => void;
|
|
1685
1719
|
updateSocket: (value: Socket) => void;
|
|
1686
1720
|
updateLocalSocket: (value: Socket | null) => 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>;
|
|
@@ -1998,7 +2032,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
1998
2032
|
recordingVideoOptions: string;
|
|
1999
2033
|
recordingVideoType: string;
|
|
2000
2034
|
recordingVideoOptimized: boolean;
|
|
2001
|
-
recordingDisplayType: "
|
|
2035
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
2002
2036
|
recordingAddHLS: boolean;
|
|
2003
2037
|
recordingAddText: boolean;
|
|
2004
2038
|
recordingCustomText: string;
|
|
@@ -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;
|
|
@@ -2397,7 +2433,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
2397
2433
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
2398
2434
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
2399
2435
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
2400
|
-
checkOrientation: () => "
|
|
2436
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
2401
2437
|
updateDevice: (value: Device | null) => void;
|
|
2402
2438
|
updateSocket: (value: Socket) => void;
|
|
2403
2439
|
updateLocalSocket: (value: Socket | null) => 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>;
|
|
@@ -2718,7 +2754,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
2718
2754
|
recordingVideoOptions: string;
|
|
2719
2755
|
recordingVideoType: string;
|
|
2720
2756
|
recordingVideoOptimized: boolean;
|
|
2721
|
-
recordingDisplayType: "
|
|
2757
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
2722
2758
|
recordingAddHLS: boolean;
|
|
2723
2759
|
recordingAddText: boolean;
|
|
2724
2760
|
recordingCustomText: string;
|
|
@@ -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;
|
|
@@ -3117,7 +3155,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3117
3155
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
3118
3156
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
3119
3157
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
3120
|
-
checkOrientation: () => "
|
|
3158
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
3121
3159
|
updateDevice: (value: Device | null) => void;
|
|
3122
3160
|
updateSocket: (value: Socket) => void;
|
|
3123
3161
|
updateLocalSocket: (value: Socket | null) => 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>;
|
|
@@ -3435,7 +3473,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3435
3473
|
recordingVideoOptions: string;
|
|
3436
3474
|
recordingVideoType: string;
|
|
3437
3475
|
recordingVideoOptimized: boolean;
|
|
3438
|
-
recordingDisplayType: "
|
|
3476
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
3439
3477
|
recordingAddHLS: boolean;
|
|
3440
3478
|
recordingAddText: boolean;
|
|
3441
3479
|
recordingCustomText: string;
|
|
@@ -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;
|
|
@@ -3834,7 +3874,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
3834
3874
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
3835
3875
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
3836
3876
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
3837
|
-
checkOrientation: () => "
|
|
3877
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
3838
3878
|
updateDevice: (value: Device | null) => void;
|
|
3839
3879
|
updateSocket: (value: Socket) => void;
|
|
3840
3880
|
updateLocalSocket: (value: Socket | null) => 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>;
|
|
@@ -4155,7 +4195,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4155
4195
|
recordingVideoOptions: string;
|
|
4156
4196
|
recordingVideoType: string;
|
|
4157
4197
|
recordingVideoOptimized: boolean;
|
|
4158
|
-
recordingDisplayType: "
|
|
4198
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
4159
4199
|
recordingAddHLS: boolean;
|
|
4160
4200
|
recordingAddText: boolean;
|
|
4161
4201
|
recordingCustomText: string;
|
|
@@ -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;
|
|
@@ -4554,7 +4596,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4554
4596
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
4555
4597
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
4556
4598
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
4557
|
-
checkOrientation: () => "
|
|
4599
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
4558
4600
|
updateDevice: (value: Device | null) => void;
|
|
4559
4601
|
updateSocket: (value: Socket) => void;
|
|
4560
4602
|
updateLocalSocket: (value: Socket | null) => 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>;
|
|
@@ -4872,7 +4914,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
4872
4914
|
recordingVideoOptions: string;
|
|
4873
4915
|
recordingVideoType: string;
|
|
4874
4916
|
recordingVideoOptimized: boolean;
|
|
4875
|
-
recordingDisplayType: "
|
|
4917
|
+
recordingDisplayType: "video" | "media" | "all";
|
|
4876
4918
|
recordingAddHLS: boolean;
|
|
4877
4919
|
recordingAddText: boolean;
|
|
4878
4920
|
recordingCustomText: string;
|
|
@@ -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;
|
|
@@ -5271,7 +5315,7 @@ export declare class MediasfuBroadcast implements OnInit, OnDestroy {
|
|
|
5271
5315
|
updateAnnotateScreenStream: (value: boolean) => void;
|
|
5272
5316
|
updateMainScreenCanvas: (value: HTMLCanvasElement | null) => void;
|
|
5273
5317
|
updateIsScreenboardModalVisible: (value: boolean) => void;
|
|
5274
|
-
checkOrientation: () => "
|
|
5318
|
+
checkOrientation: () => "portrait" | "landscape";
|
|
5275
5319
|
updateDevice: (value: Device | null) => void;
|
|
5276
5320
|
updateSocket: (value: Socket) => void;
|
|
5277
5321
|
updateLocalSocket: (value: Socket | null) => 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
|
}
|