Class: ConversationCall

ConversationCall

Represents a call within the context of a conversation/conference.


new ConversationCall()

Extends

Methods


getCallId()

Returns the call id of the call represented by this one.

Returns:

Call id.

Type
string

getConversation()

Returns the conversation

Returns:
Type
Conversation

getStream()

Returns the stream at play in the call represented by this one.

Returns:

A stream.

Type
Stream

on(listener)

Adds a listener to a Observable event

Parameters:
Name Type Description
listener function
Inherited From:
Returns:

this instance for chaining

Type
Observable

removeListener(eventType, listener)

Remove existing listener to Observable event

Parameters:
Name Type Description
eventType String
listener function
Inherited From:
Returns:

this instance for chaining

Type
Observable

replacePublishedStream(newStream, callbacks, options)

Replaces the currently published stream by a given one.
If the first parameter is null then the second parameter must provides a property named
getStream. The getStream property shall be a function returning a Promise of a Stream.

Parameters:
Name Type Description
newStream Stream

A new stream.

callbacks object

Callbacks.

Properties
Name Type Description
getStream function

A function returning a promise of a stream.

options object

Options.

Returns:

The newly assigned stream.

Type
Promise.<Stream>

startRecordingPublishedStream(options)

Starts recording the currently published stream.

Parameters:
Name Type Description
options Object

Recording preferences.

Properties
Name Type Description
audioOnly boolean

Whether to record only audio.

videoOnly boolean

Whether to record only video.

customIdInFilename string

This string will be added to the name of the final file.

data object

User data.

Returns:
Type
Promise.<RecordingInfo>

stopRecordingPublishedStream()

Stops recording.

Returns:
Type
Promise