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: CallFeed | undefined): void
      • Parameters

        Returns void

  • calls_changed: ((calls: CallsByUserAndDevice) => void)
  • group_call_error: ((error: GroupCallError) => void)
      • (error: GroupCallError): 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.

        Example

        matrixCall.on("error", function(err){
        console.error(err.code, err);
        });

        Parameters

        Returns void

  • group_call_state_changed: ((newState: GroupCallState, oldState: GroupCallState) => void)
  • local_mute_state_changed: ((audioMuted: boolean, videoMuted: boolean) => void)
      • (audioMuted: boolean, videoMuted: boolean): void
      • Parameters

        • audioMuted: boolean
        • videoMuted: boolean

        Returns void

  • local_screenshare_state_changed: ((isScreensharing: boolean, feed?: CallFeed, sourceId?: string) => void)
      • (isScreensharing: boolean, feed?: CallFeed, sourceId?: string): void
      • Parameters

        • isScreensharing: boolean
        • Optional feed: CallFeed
        • Optional sourceId: string

        Returns void

  • participants_changed: ((participants: Map<RoomMember, Map<string, ParticipantState>>) => void)
  • screenshare_feeds_changed: ((feeds: CallFeed[]) => void)
  • user_media_feeds_changed: ((feeds: CallFeed[]) => void)

Generated using TypeDoc