Fires

UPDATED_CONFERENCE_EVENT

Fires

DESTROYED_CONFERENCE_EVENT

Fires

EXPEL_CONFERENCE_EVENT

Fires

LOCAL_STREAM_CHANGED

Fires

REMOTE_STREAM_CHANGED

Fires

TRANSFERING_CALL

Hierarchy

  • EventEmitter2
    • Conference

Constructors

Properties

_ice: any[] = []

Conference ice servers

_id: string = ''

Room identifier

_invite: null | Invite = null

Invitation when user doesn't joined the conference.

_left: boolean = false

True if leave method was called

_mediaUpdateInProgress: boolean = false
_participants: string[] = []

User identifiers that participate on a conference.

_pendingInvites: {} = {}

Contains a list of pending invitations (still not accepted/rejected by remote peer) transaction identifiers. Used to cancel a previous invitation and determine if an user has been invited.

Type declaration

    _record: boolean = false

    Indicates if conference is being recorded

    _room: any = null

    Janus client

    _server: string = ''

    Conference server

    _session: any = null

    Server client

    _token: string = ''

    Conference access token

    _uninitializingRoom: undefined | Promise<void>
    dependencies: Dependencies = {}
    parallelSipExtension: null = null
    sipUri: null = null
    transferingCall: boolean = false

    Accessors

    Methods

    • Accept inviting to other participant to make an unattended call transfer

      Parameters

      • callTransferID: string

        identifier of a call transfer

      Returns Promise<void>

    • Removes a participant from this conference.

      Returns

      resolved when remote user leaves conference.

      Parameters

      • participant: string

        user name to remove.

      Returns Promise<void>

    • Invite participants to this conference.

      Throws

      if participant is already present on conference or a pending invitation exists.

      Returns

      A promise with an array of objects with two properties: SIP code and whoAccepted the invite

      Property

      SIP code of the response

      Property

      User id of the participant that accepted the invite

      Parameters

      • participants: {
            inviteId: string;
            to: string;
        }[]

        participants that will be invited.

      • mediaTypes: MediaTypes

        the mediatypes requested to the new participant.

      • Optional context: Record<string, string>

        arbitrary context that can be sent to invites

      Returns Promise<{
          code: number;
          whoAccepted?: string;
      }[]>

    • Add participant to this conference.

      Throws

      if participant is already present on conference or a pending invitation exists.

      Returns

      resolved with a boolean value that indicates if remote accepts the invitation.

      Parameters

      • participant: string

        user name to add.

      • mediatypes: MediaTypes

        the mediatypes requested to the new participant.

      • Optional requestId: string

        the ID of the request that generated this invitation.

      • Optional context: Record<string, string>

        arbitrary context that can be sent to invites

      Returns Promise<{
          code: number;
          whoAccepted?: string;
      }>

    • Leaves this conference or rejects a previous invitation.

      Throws

      when already joined or a previous invitation was not received.

      Returns

      resolved on success with self reference.

      Parameters

      • errorCode: number

        the rejection cause when an invitation is received and the conference has not been joined.

      Returns Promise<Conference>

    • Callback called when a ConferenceMediaStream has changed.

      Parameters

      • stream: ConferenceMediaStream

      Returns void

    • Callback called when a ConferenceMediaStream is removed.

      Parameters

      • stream: ConferenceMediaStream

      Returns void

    • Create an unattended call transfer towards a user in the system

      Parameters

      • participant: string

        user name to call.

      • mediatypes: MediaTypes

        the mediatypes requested to the new participant.

      Returns Promise<void>

    • Stop local hold Republishes all previously published media, subscribes to previously subscribed media and notifies new status to other participants.

      Returns Promise<void>

    Generated using TypeDoc