Visio Module
Visio module makes it possible to establish peer to peer audio or video calls between users using webrtc technology.

Events

No configuration is necessary for the visio module. Everything is managed by the library. However, FCM functionality must be configured to be able to route calls even if User B's application is closed.
Interaction between the Visio module and the chat GUI is done by clicking on the audio and video buttons of MessagesActivity.
You can catch click events with VisioActionsClickListner and therefore authorize or not audio and video calls.
1
com.telifoun.mqttchat.modules.visio.Visio moduleVisio=(com.telifoun.mqttchat.modules.visio.Visio) Mqttchat.getmInstance().getModuleByName(moduleA.VISIO);
2
if(moduleVisio!=null){
3
moduleVisio.setActionsClickListener(new VisioActionsClickListener() {
4
@Override
5
public void onAudioCallClick(int i, Callback callback) {
6
/** audio Button click **/
7
callback.OK(true); /* ok do audio call **/
8
}
9
10
@Override
11
public void onVideoCallClick(int i, Callback callback) {
12
/** video button click **/
13
callback.KO(false); /* no video call **/
14
}
15
});
16
17
}
18
Copied!
Last modified 2mo ago
Copy link