Server Plug-in

ProPTT2 server has plug-in architectures. Developers cam make a plug-in to extend server's features.

Structure

PTTPlugin

This is a interface to plug in PTT server(package 2.0.0~).

SDK tunneling (package 6.0.0~, SDK4~)

SDK can communicate with Plugin through SDK API and plugin(V4)'s events.
Customer's developers can add their logic in PTT server.

IPTTPlugin

ICallback4 :
void OnClientDirectMessage(String userId, String message)
IPTTPlugin4 :
public void sendToChannel(int channelId, String message)
public void sendToUser(String userStrId, String message)
public void sendToCompanyUsers(int companyId, String message)

ProPTT2 SDK

PTTClient :
int sendMessageToServerPlugin(string message)
void onPublicMessageReceivedFromServerPlugin(string message)
void onPrivateMessageReceivedFromServerPlugin(string message)
PTTChannel :
void onMessageReceivedFromServerPlugin(string message)

Description

1) PTTClient -> PTTPlugin
sendMessageToServerPlugin -> OnClientDirectMessage

2) PTTPlugin -> PTTClient
sendToChannel -> onMessageReceivedFromServerPlugin
sendToUser -> onPrivateMessageReceivedFromServerPlugin
sendToCompanyUsers -> onPublicMessageReceivedFromServerPlugin

IVideoPlugin

This is a interface to plug in Video server(package 2.0.0~).

ITranscoder

This is not supported yet.

IPublicGWPlugin

A developer can make a GW server to link ProPTT2 and their external system through PublicGW Plugin.