Interface SignalNewConsumerTransportParameters

Interface defining the parameters required by the AudioCard component.

These parameters provide the context and state needed for audio display, participant management, and media controls.

AudioCardParameters

interface SignalNewConsumerTransportParameters {
    socket: Socket<DefaultEventsMap, DefaultEventsMap>;
    coHostResponsibility: CoHostResponsibility[];
    roomName: string;
    showAlert?: ShowAlert;
    coHost: string;
    updateAddAltGrid: ((addAltGrid: boolean) => void);
    otherGridStreams: Element[][];
    updateOtherGridStreams: ((otherGridStreams: Element[][]) => void);
    updateMiniCardsGrid: UpdateMiniCardsGridType;
    p_activeNames: string[];
    activeNames: string[];
    dispActiveNames: string[];
    shareScreenStarted: boolean;
    shared: boolean;
    non_alVideoStreams: Participant[];
    ref_participants: Participant[];
    eventType: EventType;
    islevel: string;
    member: string;
    sortAudioLoudness: boolean;
    audioDecibels: AudioDecibels[];
    mixed_alVideoStreams: (Stream | Participant)[];
    non_alVideoStreams_muted: Participant[];
    remoteProducerId?: string;
    localStreamVideo: MediaStream;
    screenPageLimit: number;
    meetingDisplayType: string;
    meetingVideoOptimized: boolean;
    recordingVideoOptimized: boolean;
    recordingDisplayType: "video" | "media" | "all";
    paginatedStreams: (Stream | Participant)[][];
    itemPageLimit: number;
    doPaginate: boolean;
    prevDoPaginate: boolean;
    currentUserPage: number;
    breakoutRooms: BreakoutParticipant[][];
    hostNewRoom: number;
    breakOutRoomStarted: boolean;
    breakOutRoomEnded: boolean;
    virtualStream: MediaStream;
    mainRoomsLength: number;
    memberRoom: number;
    updateP_activeNames: ((names: string[]) => void);
    updateActiveNames: ((names: string[]) => void);
    updateDispActiveNames: ((names: string[]) => void);
    updateNon_alVideoStreams: ((participants: Participant[]) => void);
    updateRef_participants: ((participants: Participant[]) => void);
    updateSortAudioLoudness: ((sort: boolean) => void);
    updateMixed_alVideoStreams: ((streams: (Stream | Participant)[]) => void);
    updateNon_alVideoStreams_muted: ((participants: Participant[]) => void);
    updatePaginatedStreams: ((streams: (Stream | Participant)[][]) => void);
    updateDoPaginate: ((paginate: boolean) => void);
    updatePrevDoPaginate: ((paginate: boolean) => void);
    updateCurrentUserPage: ((page: number) => void);
    updateNumberPages: ((pages: number) => void);
    updateMainRoomsLength: ((length: number) => void);
    updateMemberRoom: ((room: number) => void);
    mixStreams: MixStreamsType;
    dispStreams: DispStreamsType;
    prevActiveNames: string[];
    updatePrevActiveNames: ((prevActiveNames: string[]) => void);
    trigger: TriggerType;
    updateConsumerTransports: ((transports: Transport[]) => void);
    consumerResume: ConsumerResumeType;
    nStream: MediaStream;
    audioOnlyStreams: Element[];
    gotAllVids: boolean;
    defer_receive: boolean;
    miniAudioComponent?: ComponentType<MiniAudioOptions>;
    miniAudioPlayerComponent?: ComponentType<MiniAudioPlayerOptions>;
    updateAllAudioStreams: ((value: (Stream | Participant)[]) => void);
    updateAllVideoStreams: ((value: (Stream | Participant)[]) => void);
    updateStreamNames: ((value: Stream[]) => void);
    updateAudStreamNames: ((value: Stream[]) => void);
    updateNStream: ((value: MediaStream) => void);
    updateLock_screen: ((value: boolean) => void);
    updateFirstAll: ((value: boolean) => void);
    updateRemoteScreenStream: ((value: Stream[]) => void);
    updateOldAllStreams: ((value: (Stream | Participant)[]) => void);
    updateAudioOnlyStreams: ((value: Element[]) => void);
    updateShareScreenStarted: ((value: boolean) => void);
    updateGotAllVids: ((value: boolean) => void);
    updateScreenId: ((value: string) => void);
    updateDefer_receive: ((value: boolean) => void);
    consumerTransports: Transport[];
    streamNames: Stream[];
    audStreamNames: Stream[];
    hostLabel: string;
    mainHeightWidth: number;
    prevMainHeightWidth: number;
    firstAll: boolean;
    shareEnded: boolean;
    updateMainWindow: boolean;
    p_dispActiveNames: string[];
    nForReadjustRecord: number;
    first_round: boolean;
    chatRefStreams: (Stream | Participant)[];
    keepBackground: boolean;
    updateLStreams: ((streams: (Stream | Participant)[]) => void);
    updateChatRefStreams: ((streams: (Stream | Participant)[]) => void);
    updateNForReadjustRecord: ((n: number) => void);
    updateUpdateMainWindow: ((value: boolean) => void);
    updateShowMiniView: ((value: boolean) => void);
    prepopulateUserMedia: PrepopulateUserMediaType;
    rePort: RePortType;
    processConsumerTransports: ProcessConsumerTransportsType;
    resumePauseStreams: ResumePauseStreamsType;
    readjust: ReadjustType;
    addVideosGrid: AddVideosGridType;
    getEstimate: GetEstimateType;
    checkGrid: CheckGridType;
    resumePauseAudioStreams: ResumePauseAudioStreamsType;
    fixedPageLimit: number;
    removeAltGrid: boolean;
    isMediumScreen: boolean;
    updateRemoveAltGrid: ((value: boolean) => void);
    calculateRowsAndColumns: CalculateRowsAndColumnsType;
    addForBasic: boolean;
    updateAddForBasic: ((value: boolean) => void);
    updateItemPageLimit: ((value: number) => void);
    forceFullDisplay: boolean;
    mainScreenFilled: boolean;
    adminOnMainScreen: boolean;
    mainScreenPerson: string;
    videoAlreadyOn: boolean;
    audioAlreadyOn: boolean;
    checkOrientation: (() => string);
    screenForceFullDisplay: boolean;
    localStreamScreen: MediaStream;
    remoteScreenStream: Stream[];
    isWideScreen: boolean;
    localUIMode: boolean;
    whiteboardStarted: boolean;
    whiteboardEnded: boolean;
    annotateScreenStream: boolean;
    updateMainScreenPerson: ((person: string) => void);
    updateMainScreenFilled: ((filled: boolean) => void);
    updateAdminOnMainScreen: ((admin: boolean) => void);
    updateMainHeightWidth: ((heightWidth: number) => void);
    updateScreenForceFullDisplay: ((force: boolean) => void);
    updateMainGridStream: ((components: Element[]) => void);
    customVideoCard?: CustomVideoCardType;
    customAudioCard?: CustomAudioCardType;
    customMiniCard?: CustomMiniCardType;
    videoCardComponent?: ComponentType<VideoCardOptions>;
    audioCardComponent?: ComponentType<AudioCardOptions>;
    miniCardComponent?: ComponentType<MiniCardOptions>;
    sleep: SleepType;
    recordStarted: boolean;
    recordStopped: boolean;
    recordPaused: boolean;
    recordResumed: boolean;
    screenStates: ScreenState[];
    prevScreenStates: ScreenState[];
    updateScreenStates: ((states: ScreenState[]) => void);
    updatePrevScreenStates: ((states: ScreenState[]) => void);
    compareActiveNames: CompareActiveNamesType;
    compareScreenStates: CompareScreenStatesType;
    reorderInterval: number;
    fastReorderInterval: number;
    lastReorderTime: number;
    oldSoundIds: string[];
    updateLastReorderTime: ((value: number) => void);
    updateOldSoundIds: ((ids: string[]) => void);
    onScreenChanges: OnScreenChangesType;
    allVideoStreams: (Stream | Participant)[];
    participants: Participant[];
    oldAllStreams: (Stream | Participant)[];
    screenId?: string;
    adminVidID?: string;
    newLimitedStreams: (Stream | Participant)[];
    newLimitedStreamsIDs: string[];
    activeSounds: string[];
    screenShareIDStream?: string;
    screenShareNameStream?: string;
    adminIDStream?: string;
    adminNameStream?: string;
    updateNewLimitedStreams: ((streams: (Stream | Participant)[]) => void);
    updateNewLimitedStreamsIDs: ((ids: string[]) => void);
    updateActiveSounds: ((sounds: string[]) => void);
    updateScreenShareIDStream: ((id: string) => void);
    updateScreenShareNameStream: ((name: string) => void);
    updateAdminIDStream: ((id: string) => void);
    updateAdminNameStream: ((name: string) => void);
    updateYouYouStream: ((streams: (Stream | Participant)[]) => void);
    changeVids: ChangeVidsType;
    allAudioStreams: (Stream | Participant)[];
    limitedBreakRoom: BreakoutParticipant[];
    updateLimitedBreakRoom: ((limitedBreakRoom: BreakoutParticipant[]) => void);
    processConsumerTransportsAudio: ProcessConsumerTransportsAudioType;
    device: Device;
    consumingTransports: string[];
    lock_screen: boolean;
    updateConsumingTransports: ((transports: string[]) => void);
    connectRecvTransport: ConnectRecvTransportType;
    reorderStreams: ReorderStreamsType;
    getUpdatedAllParams: (() => SignalNewConsumerTransportParameters);
    localSocket?: Socket<DefaultEventsMap, DefaultEventsMap>;
    updateDateState?: number;
    lastUpdate: number;
    nForReadjust: number;
    updateUpdateDateState: ((timestamp: number) => void);
    updateLastUpdate: ((lastUpdate: number) => void);
    updateNForReadjust: ((nForReadjust: number) => void);
    autoAdjust: AutoAdjustType;
    updateGridRows: ((rows: number) => void);
    updateGridCols: ((cols: number) => void);
    updateAltGridRows: ((rows: number) => void);
    updateAltGridCols: ((cols: number) => void);
    updateGridSizes: ((gridSizes: GridSizes) => void);
    gridSizes: GridSizes;
    paginationDirection: string;
    paginationHeightWidth: number;
    componentSizes: ComponentSizes;
    reUpdateInter: ReUpdateInterType;
    updateParticipantAudioDecibels: UpdateParticipantAudioDecibelsType;
    [key: string]: any;
}

Hierarchy (view full)

Indexable

  • [key: string]: any

Properties

socket coHostResponsibility roomName showAlert? coHost updateAddAltGrid otherGridStreams updateOtherGridStreams updateMiniCardsGrid p_activeNames activeNames dispActiveNames shareScreenStarted shared non_alVideoStreams ref_participants eventType islevel member sortAudioLoudness audioDecibels mixed_alVideoStreams non_alVideoStreams_muted remoteProducerId? localStreamVideo screenPageLimit meetingDisplayType meetingVideoOptimized recordingVideoOptimized recordingDisplayType paginatedStreams itemPageLimit doPaginate prevDoPaginate currentUserPage breakoutRooms hostNewRoom breakOutRoomStarted breakOutRoomEnded virtualStream mainRoomsLength memberRoom updateP_activeNames updateActiveNames updateDispActiveNames updateNon_alVideoStreams updateRef_participants updateSortAudioLoudness updateMixed_alVideoStreams updateNon_alVideoStreams_muted updatePaginatedStreams updateDoPaginate updatePrevDoPaginate updateCurrentUserPage updateNumberPages updateMainRoomsLength updateMemberRoom mixStreams dispStreams prevActiveNames updatePrevActiveNames trigger updateConsumerTransports consumerResume nStream audioOnlyStreams gotAllVids defer_receive miniAudioComponent? miniAudioPlayerComponent? updateAllAudioStreams updateAllVideoStreams updateStreamNames updateAudStreamNames updateNStream updateLock_screen updateFirstAll updateRemoteScreenStream updateOldAllStreams updateAudioOnlyStreams updateShareScreenStarted updateGotAllVids updateScreenId updateDefer_receive consumerTransports streamNames audStreamNames hostLabel mainHeightWidth prevMainHeightWidth firstAll shareEnded updateMainWindow p_dispActiveNames nForReadjustRecord first_round chatRefStreams keepBackground updateLStreams updateChatRefStreams updateNForReadjustRecord updateUpdateMainWindow updateShowMiniView prepopulateUserMedia rePort processConsumerTransports resumePauseStreams readjust addVideosGrid getEstimate checkGrid resumePauseAudioStreams fixedPageLimit removeAltGrid isMediumScreen updateRemoveAltGrid calculateRowsAndColumns addForBasic updateAddForBasic updateItemPageLimit forceFullDisplay mainScreenFilled adminOnMainScreen mainScreenPerson videoAlreadyOn audioAlreadyOn checkOrientation screenForceFullDisplay localStreamScreen remoteScreenStream isWideScreen localUIMode whiteboardStarted whiteboardEnded annotateScreenStream updateMainScreenPerson updateMainScreenFilled updateAdminOnMainScreen updateMainHeightWidth updateScreenForceFullDisplay updateMainGridStream customVideoCard? customAudioCard? customMiniCard? videoCardComponent? audioCardComponent? miniCardComponent? sleep recordStarted recordStopped recordPaused recordResumed screenStates prevScreenStates updateScreenStates updatePrevScreenStates compareActiveNames compareScreenStates reorderInterval fastReorderInterval lastReorderTime oldSoundIds updateLastReorderTime updateOldSoundIds onScreenChanges allVideoStreams participants oldAllStreams screenId? adminVidID? newLimitedStreams newLimitedStreamsIDs activeSounds screenShareIDStream? screenShareNameStream? adminIDStream? adminNameStream? updateNewLimitedStreams updateNewLimitedStreamsIDs updateActiveSounds updateScreenShareIDStream updateScreenShareNameStream updateAdminIDStream updateAdminNameStream updateYouYouStream changeVids allAudioStreams limitedBreakRoom updateLimitedBreakRoom processConsumerTransportsAudio device consumingTransports lock_screen updateConsumingTransports connectRecvTransport reorderStreams getUpdatedAllParams localSocket? updateDateState? lastUpdate nForReadjust updateUpdateDateState updateLastUpdate updateNForReadjust autoAdjust updateGridRows updateGridCols updateAltGridRows updateAltGridCols updateGridSizes gridSizes paginationDirection paginationHeightWidth componentSizes reUpdateInter updateParticipantAudioDecibels

Properties

socket: Socket<DefaultEventsMap, DefaultEventsMap>

Socket.io client instance for real-time communication

coHostResponsibility: CoHostResponsibility[]

Array of responsibilities assigned to co-hosts

roomName: string

Name/ID of the current room session

showAlert?: ShowAlert

Optional function to display alerts/notifications

coHost: string

User ID of the co-host

updateAddAltGrid: ((addAltGrid: boolean) => void)
otherGridStreams: Element[][]
updateOtherGridStreams: ((otherGridStreams: Element[][]) => void)
updateMiniCardsGrid: UpdateMiniCardsGridType
p_activeNames: string[]
activeNames: string[]
dispActiveNames: string[]
shareScreenStarted: boolean
shared: boolean
non_alVideoStreams: Participant[]
ref_participants: Participant[]
eventType: EventType

Type of event ('conference', 'webinar', 'broadcast', etc.)

islevel: string

Current user's level/role (e.g., '0', '1', '2')

member: string

Current user's member ID

sortAudioLoudness: boolean
audioDecibels: AudioDecibels[]

Array of audio level data for all participants (used for waveform visualization)

mixed_alVideoStreams: (Stream | Participant)[]
non_alVideoStreams_muted: Participant[]
remoteProducerId?: string
localStreamVideo: MediaStream
screenPageLimit: number
meetingDisplayType: string
meetingVideoOptimized: boolean
recordingVideoOptimized: boolean
recordingDisplayType: "video" | "media" | "all"
paginatedStreams: (Stream | Participant)[][]
itemPageLimit: number
doPaginate: boolean
prevDoPaginate: boolean
currentUserPage: number
breakoutRooms: BreakoutParticipant[][]
hostNewRoom: number
breakOutRoomStarted: boolean
breakOutRoomEnded: boolean
virtualStream: MediaStream
mainRoomsLength: number
memberRoom: number
updateP_activeNames: ((names: string[]) => void)
updateActiveNames: ((names: string[]) => void)
updateDispActiveNames: ((names: string[]) => void)
updateNon_alVideoStreams: ((participants: Participant[]) => void)
updateRef_participants: ((participants: Participant[]) => void)
updateSortAudioLoudness: ((sort: boolean) => void)
updateMixed_alVideoStreams: ((streams: (Stream | Participant)[]) => void)
updateNon_alVideoStreams_muted: ((participants: Participant[]) => void)
updatePaginatedStreams: ((streams: (Stream | Participant)[][]) => void)
updateDoPaginate: ((paginate: boolean) => void)
updatePrevDoPaginate: ((paginate: boolean) => void)
updateCurrentUserPage: ((page: number) => void)
updateNumberPages: ((pages: number) => void)
updateMainRoomsLength: ((length: number) => void)
updateMemberRoom: ((room: number) => void)
mixStreams: MixStreamsType
dispStreams: DispStreamsType
prevActiveNames: string[]
updatePrevActiveNames: ((prevActiveNames: string[]) => void)
trigger: TriggerType
updateConsumerTransports: ((transports: Transport[]) => void)
consumerResume: ConsumerResumeType
nStream: MediaStream
audioOnlyStreams: Element[]
gotAllVids: boolean
defer_receive: boolean
miniAudioComponent?: ComponentType<MiniAudioOptions>
miniAudioPlayerComponent?: ComponentType<MiniAudioPlayerOptions>
updateAllAudioStreams: ((value: (Stream | Participant)[]) => void)
updateAllVideoStreams: ((value: (Stream | Participant)[]) => void)
updateStreamNames: ((value: Stream[]) => void)
updateAudStreamNames: ((value: Stream[]) => void)
updateNStream: ((value: MediaStream) => void)
updateLock_screen: ((value: boolean) => void)
updateFirstAll: ((value: boolean) => void)
updateRemoteScreenStream: ((value: Stream[]) => void)
updateOldAllStreams: ((value: (Stream | Participant)[]) => void)
updateAudioOnlyStreams: ((value: Element[]) => void)
updateShareScreenStarted: ((value: boolean) => void)
updateGotAllVids: ((value: boolean) => void)
updateScreenId: ((value: string) => void)
updateDefer_receive: ((value: boolean) => void)
consumerTransports: Transport[]
streamNames: Stream[]
audStreamNames: Stream[]
hostLabel: string
mainHeightWidth: number
prevMainHeightWidth: number
firstAll: boolean
shareEnded: boolean
updateMainWindow: boolean
p_dispActiveNames: string[]
nForReadjustRecord: number
first_round: boolean
chatRefStreams: (Stream | Participant)[]
keepBackground: boolean
updateLStreams: ((streams: (Stream | Participant)[]) => void)
updateChatRefStreams: ((streams: (Stream | Participant)[]) => void)
updateNForReadjustRecord: ((n: number) => void)
updateUpdateMainWindow: ((value: boolean) => void)
updateShowMiniView: ((value: boolean) => void)
prepopulateUserMedia: PrepopulateUserMediaType
rePort: RePortType
processConsumerTransports: ProcessConsumerTransportsType
resumePauseStreams: ResumePauseStreamsType
readjust: ReadjustType
addVideosGrid: AddVideosGridType
getEstimate: GetEstimateType
checkGrid: CheckGridType
resumePauseAudioStreams: ResumePauseAudioStreamsType
fixedPageLimit: number
removeAltGrid: boolean
isMediumScreen: boolean
updateRemoveAltGrid: ((value: boolean) => void)
calculateRowsAndColumns: CalculateRowsAndColumnsType
addForBasic: boolean
updateAddForBasic: ((value: boolean) => void)
updateItemPageLimit: ((value: number) => void)
forceFullDisplay: boolean
mainScreenFilled: boolean
adminOnMainScreen: boolean
mainScreenPerson: string
videoAlreadyOn: boolean
audioAlreadyOn: boolean
checkOrientation: (() => string)
screenForceFullDisplay: boolean
localStreamScreen: MediaStream
remoteScreenStream: Stream[]
isWideScreen: boolean
localUIMode: boolean
whiteboardStarted: boolean
whiteboardEnded: boolean
annotateScreenStream: boolean
updateMainScreenPerson: ((person: string) => void)
updateMainScreenFilled: ((filled: boolean) => void)
updateAdminOnMainScreen: ((admin: boolean) => void)
updateMainHeightWidth: ((heightWidth: number) => void)
updateScreenForceFullDisplay: ((force: boolean) => void)
updateMainGridStream: ((components: Element[]) => void)
customVideoCard?: CustomVideoCardType
customAudioCard?: CustomAudioCardType
customMiniCard?: CustomMiniCardType
videoCardComponent?: ComponentType<VideoCardOptions>
audioCardComponent?: ComponentType<AudioCardOptions>
miniCardComponent?: ComponentType<MiniCardOptions>
sleep: SleepType
recordStarted: boolean
recordStopped: boolean
recordPaused: boolean
recordResumed: boolean
screenStates: ScreenState[]
prevScreenStates: ScreenState[]
updateScreenStates: ((states: ScreenState[]) => void)
updatePrevScreenStates: ((states: ScreenState[]) => void)
compareActiveNames: CompareActiveNamesType
compareScreenStates: CompareScreenStatesType
reorderInterval: number
fastReorderInterval: number
lastReorderTime: number
oldSoundIds: string[]
updateLastReorderTime: ((value: number) => void)
updateOldSoundIds: ((ids: string[]) => void)
onScreenChanges: OnScreenChangesType
allVideoStreams: (Stream | Participant)[]
participants: Participant[]

Array of all participants in the session

oldAllStreams: (Stream | Participant)[]
screenId?: string
adminVidID?: string
newLimitedStreams: (Stream | Participant)[]
newLimitedStreamsIDs: string[]
activeSounds: string[]
screenShareIDStream?: string
screenShareNameStream?: string
adminIDStream?: string
adminNameStream?: string
updateNewLimitedStreams: ((streams: (Stream | Participant)[]) => void)
updateNewLimitedStreamsIDs: ((ids: string[]) => void)
updateActiveSounds: ((sounds: string[]) => void)
updateScreenShareIDStream: ((id: string) => void)
updateScreenShareNameStream: ((name: string) => void)
updateAdminIDStream: ((id: string) => void)
updateAdminNameStream: ((name: string) => void)
updateYouYouStream: ((streams: (Stream | Participant)[]) => void)
changeVids: ChangeVidsType
allAudioStreams: (Stream | Participant)[]
limitedBreakRoom: BreakoutParticipant[]
updateLimitedBreakRoom: ((limitedBreakRoom: BreakoutParticipant[]) => void)
processConsumerTransportsAudio: ProcessConsumerTransportsAudioType
device: Device
consumingTransports: string[]
lock_screen: boolean
updateConsumingTransports: ((transports: string[]) => void)
connectRecvTransport: ConnectRecvTransportType
reorderStreams: ReorderStreamsType
getUpdatedAllParams: (() => SignalNewConsumerTransportParameters)

Function to retrieve latest parameter state

localSocket?: Socket<DefaultEventsMap, DefaultEventsMap>
updateDateState?: number
lastUpdate: number
nForReadjust: number
updateUpdateDateState: ((timestamp: number) => void)
updateLastUpdate: ((lastUpdate: number) => void)
updateNForReadjust: ((nForReadjust: number) => void)
autoAdjust: AutoAdjustType
updateGridRows: ((rows: number) => void)
updateGridCols: ((cols: number) => void)
updateAltGridRows: ((rows: number) => void)
updateAltGridCols: ((cols: number) => void)
updateGridSizes: ((gridSizes: GridSizes) => void)
gridSizes: GridSizes
paginationDirection: string
paginationHeightWidth: number
componentSizes: ComponentSizes
reUpdateInter: ReUpdateInterType
updateParticipantAudioDecibels: UpdateParticipantAudioDecibelsType