Skip to content

Instantly share code, notes, and snippets.

@mohsenk
Created September 29, 2019 09:50
Show Gist options
  • Save mohsenk/bcd425977908cf5f6f5cfe7bd97f36e0 to your computer and use it in GitHub Desktop.
Save mohsenk/bcd425977908cf5f6f5cfe7bd97f36e0 to your computer and use it in GitHub Desktop.
KavenegarCall.getInstance().initCall(
callId, accessToken, this,
result => {
call.setMediaStateChangedEventHandler
(this::peerConnectionStateChanged);
call.setMessagingStateChangedHandler
(this::messagingSateChanged);
call.onCallStateChanged(state =>
{ Log.d("Call state is changed",state);});
call.onCallFinished(reason =>
{ Log.d("Call state is changed",reason); });
call.onMediaStateChanged(event =>
{ Log.d("Call state is changed",event); });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment