mediasfu-angular
Version:
mediasfu-angular - Angular 17/18/19 WebRTC SDK for video conferencing, webinars, broadcasts, live streaming, chat, recording, whiteboard, and AI agents. Prebuilt rooms and fully custom UIs.
35 lines (34 loc) • 1.26 kB
TypeScript
import { Socket } from 'socket.io-client';
import { Participant, AutoAdjustType, ScreenState, EventType } from '../@types/types';
import * as i0 from "@angular/core";
export interface TriggerParameters {
socket: Socket;
localSocket?: Socket;
roomName: string;
screenStates: ScreenState[];
participants: Participant[];
updateDateState?: number | null;
lastUpdate: number | null;
nForReadjust: number;
eventType: EventType;
shared: boolean;
shareScreenStarted: boolean;
whiteboardStarted: boolean;
whiteboardEnded: boolean;
updateUpdateDateState: (timestamp: number | null) => void;
updateLastUpdate: (lastUpdate: number | null) => void;
updateNForReadjust: (nForReadjust: number) => void;
autoAdjust: AutoAdjustType;
getUpdatedAllParams: () => TriggerParameters;
[key: string]: any;
}
export interface TriggerOptions {
ref_ActiveNames: string[];
parameters: TriggerParameters;
}
export type TriggerType = (options: TriggerOptions) => Promise<void>;
export declare class Trigger {
trigger({ ref_ActiveNames, parameters }: TriggerOptions): Promise<void>;
static ɵfac: i0.ɵɵFactoryDeclaration<Trigger, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<Trigger>;
}