Type Alias GroupCallEventHandlerMap
GroupCallEventHandlerMap: { active_speaker_changed: ((activeSpeaker: CallFeed | undefined) => void); calls_changed: ((calls: CallsByUserAndDevice) => void); group_call_error: ((error: GroupCallError) => void); group_call_state_changed: ((newState: GroupCallState,
oldState: GroupCallState) => void); local_mute_state_changed: ((audioMuted: boolean,
videoMuted: boolean) => void); local_screenshare_state_changed: ((isScreensharing: boolean,
feed?: CallFeed,
sourceId?: string) => void); participants_changed: ((participants: Map<RoomMember, Map<string, ParticipantState>>) => void); screenshare_feeds_changed: ((feeds: CallFeed[]) => void); user_media_feeds_changed: ((feeds: CallFeed[]) => void); } Type declaration
active_speaker_changed: ((activeSpeaker: CallFeed | undefined) => void)
- (activeSpeaker): void
Returns void
- (calls): void
Returns void
group_call_error: ((error: GroupCallError) => void)
- (error): void
Returns void
group_call_state_changed: ((newState: GroupCallState, oldState: GroupCallState) => void)
- (newState, oldState): void
Returns void
local_mute_state_changed: ((audioMuted: boolean, videoMuted: boolean) => void)
- (audioMuted, videoMuted): void
Parameters
- audioMuted: boolean
- videoMuted: boolean
Returns void
local_screenshare_state_changed: ((isScreensharing: boolean, feed?: CallFeed, sourceId?: string) => void)
- (isScreensharing, feed?, sourceId?): void
Parameters
- isScreensharing: boolean
Optional
feed: CallFeedOptional
sourceId: string
Returns void
- (participants): void
Returns void
screenshare_feeds_changed: ((feeds: CallFeed[]) => void)
- (feeds): void
Returns void
user_media_feeds_changed: ((feeds: CallFeed[]) => void)
- (feeds): void
Returns void
Fires whenever an error occurs when call.js encounters an issue with setting up the call.
The error given will have a code equal to either `MatrixCall.ERR_LOCAL_OFFER_FAILED` or `MatrixCall.ERR_NO_USER_MEDIA`. `ERR_LOCAL_OFFER_FAILED` is emitted when the local client fails to create an offer. `ERR_NO_USER_MEDIA` is emitted when the user has denied access to their audio/video hardware.