Conference (class)
com.voximplant.android.sdk.calls
Methods
- addVideoStream
- hangup
- join
- muteAudio
- removeVideoStream
- sendInfo
- sendMessage
- setConferenceListener
- setQualityIssueListener
- startScreenSharing
- stopScreenSharing
- toString
Properties
Methods
addVideoStream
fun addVideoStream(videoStream: LocalVideoStream, callback: CallCallback?): Unit
Starts sending video associated with the provided local video stream.
If the operation is completed successfully, other conference participants receive EndpointListener.onRemoteVideoStreamAdded event.
To start sharing a device screen, use Conference.startScreenSharing API.
Parameters
Returns: Unit
hangup
fun hangup(headers: Map<String, String>?): Unit
Hangs up the conference.
Parameters
Returns: Unit
join
fun join(): Unit
Joins the conference.
Annotations: Throws(CallException)
Returns: Unit
Throws
CallException if the conference is already started or RECORD_AUDIO permission is not granted.
muteAudio
fun muteAudio(muted: Boolean): Unit
Enables or disables audio transfer from microphone to the call. Other participants receive the EndpointListener.onEndpointMuteStateChanged event.
Parameters
Returns: Unit
removeVideoStream
fun removeVideoStream(videoStream: LocalVideoStream, callback: CallCallback?): Unit
Stops sending video associated with the provided local video stream.
LocalVideoStream should be additionally closed if the operation is completed successfully, i.e. CallCallback.onSuccess is called. Otherwise the video resources are not released.
If the operation is completed successfully, other conference participants receive EndpointListener.onRemoteVideoStreamRemoved event.
To stop sharing a device screen, use Conference.stopScreenSharing API.
Parameters
Returns: Unit
sendInfo
fun sendInfo(mimeType: String, content: String, headers: Map<String, String>?): Unit
Sends an INFO message within the conference.
Parameters
Returns: Unit
sendMessage
fun sendMessage(text: String): Unit
Sends a message within the conference.
Parameters
Returns: Unit
setConferenceListener
fun setConferenceListener(listener: ConferenceListener?): Unit
Sets the listener to be notified of the conference events.
Parameters
Returns: Unit
setQualityIssueListener
fun setQualityIssueListener(listener: QualityIssueListener?): Unit
Sets QualityIssueListener to monitor issues that affect call quality.
Parameters
Returns: Unit
startScreenSharing
fun startScreenSharing(videoStream: LocalVideoStream, callback: CallCallback?): Unit
Starts sharing a device screen in the conference call.
If the operation is completed successfully, other conference participants receive the following events:
Parameters
Returns: Unit
stopScreenSharing
fun stopScreenSharing(callback: CallCallback?): Unit
Stops sharing a device screen in the conference call.
LocalVideoStream with a ScreenCaptureVideoSource should be additionally closed if the operation is completed successfully.
If the operation is completed successfully, other conference participants receive ConferenceListener.onEndpointRemoved event.
Parameters
Returns: Unit
toString
fun toString(): String
Returns: String
Properties
currentQualityIssues
val currentQualityIssues: Map<QualityIssue, QualityIssueLevel>
Gets the current status for all quality issues.
Read-only.
duration
val duration: Long
Conference duration in milliseconds.
Read-only.
endpointId
val endpointId: String?
Conference endpoint id of this client.
Available after ConferenceListener.onConferenceConnected
Read-only.
endpoints
val endpoints: List<Endpoint>
List of the endpoints associated with the conference.
Read-only.
id
val id: String
Conference id.
Read-only.
isMuted
val isMuted: Boolean
Whether the current conference participant’s microphone is muted. You can change this state via Conference.muteAudio.
Read-only.
localVideoStreams
val localVideoStreams: List<LocalVideoStream>?
Local video streams which are currently streaming in the conference.
Read-only.
number
val number: String
Number used to make the conference call.
Read-only.
state
val state: CallState
Conference state.
Read-only.