connect Channel
fun connectChannel( context: Context, channelId: String, isVisitorChannel: Boolean, completion: CompletionCallback?, playSTWSinkCallback: STWAudioSinkPlayCallback, captureSTWSinkCallback: STWAudioSinkCaptureCallback)
Content copied to clipboard
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
channel Id
String the group id
is Visitor Channel
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
play STWSink Callback
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
capture STWSink Callback
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