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 AudioCardParameters {
    audioDecibels: AudioDecibels[];
    participants: Participant[];
    socket: Socket<DefaultEventsMap, DefaultEventsMap>;
    coHostResponsibility: CoHostResponsibility[];
    roomName: string;
    showAlert?: ShowAlert;
    coHost: string;
    islevel: string;
    member: string;
    eventType: string;
    getUpdatedAllParams(): AudioCardParameters;
}

Hierarchy (view full)

Methods

Properties

audioDecibels: AudioDecibels[]

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

participants: Participant[]

Array of all participants in the session

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

islevel: string

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

member: string

Current user's member ID

eventType: string

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