methodCallHandler method
Implementation
Future<dynamic> methodCallHandler(MethodCall call) async {
switch (call.method) {
case 'onUserJoined':
_handleOnUserJoined(call.arguments);
break;
case 'onUserOffline':
_handleOnUserOffline(call.arguments);
break;
case 'onUserLeft':
_handleOnUserLeft(call.arguments);
break;
case 'onRemoteUserPublishResource':
_handleOnRemoteUserPublishResource(call.arguments);
break;
case 'onRemoteUserUnPublishResource':
_handleOnRemoteUserUnPublishResource(call.arguments);
break;
case 'onRemoteUserMuteAudio':
_handleOnRemoteUserMuteAudio(call.arguments);
break;
case 'onRemoteUserMuteVideo':
_handleOnRemoteUserMuteVideo(call.arguments);
break;
case 'onRemoteUserPublishLiveResource':
_handleOnPublishLiveStreams(call.arguments);
break;
case 'onRemoteUserUnPublishLiveResource':
_handleOnUnPublishLiveStreams(call.arguments);
break;
case 'onReceiveMessage':
_handleOnReceiveMessage(call.arguments);
break;
}
}