STWSink Play Callback
This interface should used when the audio sink feature is enabled to receive the audio sink callback :
onReady(sampleRate : Int) : should be triggered when the feature is enabled and the call is started, this callback should be received for Play (receive audio in the session)
onStreamReceived(call : STWVCall, audioData : ShortArray, sizeInSamples : Int) : should be triggered when the feature is enabled and the call is started, here client can receive the audio as ShortArray.
onEnd() : should be triggered when the call is ended, here app should release all resources used.
FYI : there is another way to handle the sink event it is with the Kotlin flow.
See also
Functions
Link copied to clipboard
abstract fun onStreamReceived( call: STWVCall, audioData: ShortArray, sizeInSamples: Int)
Content copied to clipboard