new ConversationCall()
Extends
Methods
-
changeStreamPriority(priority)
-
Changes the priority of the stream represented by this one.
Parameters:
Name Type Description prioritynumber Returns:
- Type
- Promise
-
getCallId()
-
Returns the call id of the call represented by this one.
Returns:
Call id.
- Type
- string
-
getConversation()
-
Returns the conversation
Returns:
- Type
- Conversation
-
getRecordingInfo()
-
Returns the recoding information, if any.
Returns:
- Type
- RecordingInfo | null
-
getStream()
-
Returns the stream at play in the call represented by this one.
Returns:
A stream.
- Type
- Stream
-
getStreamingInfo()
-
Returns the streaming information, if any.
Returns:
- Type
- StreamingInfo | null
-
isRecorded()
-
Tests whether the call represented by this one is recorded.
Returns:
- Type
- boolean
-
isStreamed()
-
Tests whether the call represented by this one is streamed.
Returns:
- Type
- boolean
-
on(listener)
-
Adds a listener to a Observable event
Parameters:
Name Type Description listenerfunction - Inherited From:
- Overrides:
Returns:
this instance for chaining
- Type
- Observable
-
removeListener(eventType, listener)
-
Remove existing listener to Observable event
Parameters:
Name Type Description eventTypeString listenerfunction - Inherited From:
- Overrides:
Returns:
this instance for chaining
- Type
- Observable
-
replacePublishedStream(newStream, callbacks)
-
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 newStreamStream A new stream.
callbacksobject Callbacks.
Properties
Name Type Description getStreamfunction A function returning a promise of a stream.
Returns:
The newly assigned stream.
- Type
- Promise.<Stream>
-
startRecordingPublishedStream(options)
-
Starts recording the currently published stream.
Parameters:
Name Type Description optionsObject Recording preferences.
Properties
Name Type Description audioOnlyboolean Whether to record only audio.
videoOnlyboolean Whether to record only video.
customIdInFilenamestring This string will be added to the name of the final file.
dataobject User data.
ttlnumber The time to live (in seconds) of the recording after being successfully created. By default, the data is persistent.
Returns:
- Type
- Promise.<RecordingInfo>
-
startStreaming(options)
-
Starts streaming.
Parameters:
Name Type Description optionsStreamingOptions Returns:
- Type
- Promise.<StreamingInfo>
-
stopRecordingPublishedStream()
-
Stops recording.
Returns:
- Type
- Promise.<RecordingInfo>
-
stopStreaming()
-
Stops streaming.
Returns:
- Type
- Promise.<StreamingInfo>