Rate this page:

Conference

Represents audio or video conference.
Add the following line to your scenario code to use the class:

require(Modules.Conference);

Methods

add

Copy URL

Endpoint

add(

EndpointParameters

parameters
)

Creates a new Endpoint instance and adds it to the specified conference. IMPORTANT! You can only use this function for a conference with the “video conference” option checked in the routing rule. Otherwise, you receive the ConferenceEvents.ConferenceError event with code 102. The maximum number of endpoints is 100.

Parameters

Returns

addEventListener

Copy URL

void

addEventListener(

ConferenceEvents

event,

Function

callback
)

Adds a handler for the specified ConferenceEvents event. Use only functions as handlers; anything except a function leads to the error and scenario termination when a handler is called.

Parameters

Returns

  • type:

    void

get

Copy URL

Endpoint

get(

string

id
)

Gets the endpoint by the id.

Parameters

  • id:

    string

    Endpoint's id

Returns

getList

Copy URL

Endpoint[]

getList()

Gets the endpoint list for current conference.

Returns

id

Copy URL

string

id()

Returns the conference's id.

Returns

  • type:

    string

removeEventListener

Copy URL

void

removeEventListener(

ConferenceEvents

event,

Function

callback
)

Removes a handler for the specified ConferenceEvents event.

Parameters

Returns

  • type:

    void

sendMediaTo

Copy URL

void

sendMediaTo(

VoxMediaUnit

mediaUnit,

SendMediaParameters

parameters
)

Starts sending media (voice and video) from the conference to the media unit.

Parameters

Returns

  • type:

    void

stop

Copy URL

void

stop()

Stops the conference. Triggers the ConferenceEvents.Stopped event.

Returns

  • type:

    void

stopMediaTo

Copy URL

void

stopMediaTo(

VoxMediaUnit

mediaUnit
)

Stops sending media (voice and video) from the conference to the media unit.

Parameters

  • mediaUnit:

    VoxMediaUnit

    Media unit that does not need to receive media from this conference anymore

Returns

  • type:

    void