connectChannel

fun connectChannel(    context: Context,     channelId: String,     isVisitorChannel: Boolean,     completion: CompletionCallback?,     playSTWSinkCallback: STWAudioSinkPlayCallback,     captureSTWSinkCallback: STWAudioSinkCaptureCallback)

Call this method to connect to a channel.

Note : the audio sink feature will be enabled automatically for this method.

Parameters

context

Context the application context

channelId

String the group id

isVisitorChannel

Boolean true when it is for a visitor channel

completion

CompletionCallback is a block of code which will be invoked when the call is created

playSTWSinkCallback

STWAudioSinkPlayCallback is a block of code which will be invoked when the play sink is ready and there is a valid data, and when the play sink is ended

captureSTWSinkCallback

STWAudioSinkCaptureCallback is a block of code which will be invoked when the capture sink is ready and there is a valid data, and when the capture sink is ended