Type alias GroupCallEventHandlerMap

GroupCallEventHandlerMap: {
    active_speaker_changed: ((activeSpeaker) => void);
    calls_changed: ((calls) => void);
    group_call_error: ((error) => void);
    group_call_state_changed: ((newState, oldState) => void);
    local_mute_state_changed: ((audioMuted, videoMuted) => void);
    local_screenshare_state_changed: ((isScreensharing, feed?, sourceId?) => void);
    participants_changed: ((participants) => void);
    screenshare_feeds_changed: ((feeds) => void);
    user_media_feeds_changed: ((feeds) => void);
}

Type declaration

  • active_speaker_changed: ((activeSpeaker) => void)
      • (activeSpeaker): void
      • Parameters

        Returns void

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

        Parameters

        Returns void

        Example

        matrixCall.on("error", function(err){
        console.error(err.code, err);
        });
  • group_call_state_changed: ((newState, oldState) => void)
  • local_mute_state_changed: ((audioMuted, videoMuted) => void)
      • (audioMuted, videoMuted): void
      • Parameters

        • audioMuted: boolean
        • videoMuted: boolean

        Returns void

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

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

        Returns void

  • participants_changed: ((participants) => void)
  • screenshare_feeds_changed: ((feeds) => void)
      • (feeds): void
      • Parameters

        Returns void

  • user_media_feeds_changed: ((feeds) => void)
      • (feeds): void
      • Parameters

        Returns void

Generated using TypeDoc