Class WebrtcProvider
- java.lang.Object
-
- org.exoplatform.container.component.BaseComponentPlugin
-
- org.exoplatform.webconferencing.CallProvider
-
- org.exoplatform.webconferencing.webrtc.WebrtcProvider
-
- All Implemented Interfaces:
org.exoplatform.container.component.ComponentPlugin
public class WebrtcProvider extends org.exoplatform.webconferencing.CallProviderCreated by The eXo Platform SAS.- Version:
- $Id: WebrtcProvider.java 00000 Aug 15, 2017 pnedonosko $
- Author:
- Peter Nedonosko
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebrtcProvider.DefaultICEServerThe Class DefaultICEServer.static classWebrtcProvider.ICEServerThe Class ICEServer.static classWebrtcProvider.RTCConfigurationThe Class RTCConfiguration.classWebrtcProvider.SettingsBuilderThe Class SettingsBuilder.classWebrtcProvider.WebrtcSettingsThe Class WebrtcSettings.
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_RTC_CONFIGURATIONThe Constant CONFIG_RTC_CONFIGURATION.protected static StringKEY_RTC_SETTINGSThe Constant KEY_RTC_SETTINGS.protected static org.exoplatform.services.log.LogLOGThe Constant LOG.protected org.exoplatform.services.resources.ResourceBundleServiceresourceBundleServiceThe resource bundle service.protected WebrtcProvider.RTCConfigurationrtcConfigurationThe rtc configuration.protected org.exoplatform.commons.api.settings.SettingServicesettingServiceThe settings service.static StringVERSIONThe Constant VERSION.protected static StringWEBRTC_SCOPE_NAMEThe Constant WEBRTC_SCOPE_NAME.static StringWEBRTC_TITLEThe Constant WEBRTC_TITLE.static StringWEBRTC_TYPEThe Constant WEBRTC_TYPE.
-
Constructor Summary
Constructors Constructor Description WebrtcProvider(org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.resources.ResourceBundleService resourceBundleService)Instantiates a new WebRTC provider.
-
Method Summary
-
Methods inherited from class org.exoplatform.webconferencing.CallProvider
equals, hashCode, isActive, isSupportedType
-
-
-
-
Field Detail
-
WEBRTC_TYPE
public static final String WEBRTC_TYPE
The Constant WEBRTC_TYPE.- See Also:
- Constant Field Values
-
WEBRTC_TITLE
public static final String WEBRTC_TITLE
The Constant WEBRTC_TITLE.- See Also:
- Constant Field Values
-
CONFIG_RTC_CONFIGURATION
public static final String CONFIG_RTC_CONFIGURATION
The Constant CONFIG_RTC_CONFIGURATION.- See Also:
- Constant Field Values
-
WEBRTC_SCOPE_NAME
protected static final String WEBRTC_SCOPE_NAME
The Constant WEBRTC_SCOPE_NAME.
-
KEY_RTC_SETTINGS
protected static final String KEY_RTC_SETTINGS
The Constant KEY_RTC_SETTINGS.
-
VERSION
public static final String VERSION
The Constant VERSION.- See Also:
- Constant Field Values
-
LOG
protected static final org.exoplatform.services.log.Log LOG
The Constant LOG.
-
settingService
protected final org.exoplatform.commons.api.settings.SettingService settingService
The settings service.
-
resourceBundleService
protected final org.exoplatform.services.resources.ResourceBundleService resourceBundleService
The resource bundle service.
-
rtcConfiguration
protected WebrtcProvider.RTCConfiguration rtcConfiguration
The rtc configuration.
-
-
Constructor Detail
-
WebrtcProvider
public WebrtcProvider(org.exoplatform.container.xml.InitParams params, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.services.resources.ResourceBundleService resourceBundleService) throws org.exoplatform.container.configuration.ConfigurationExceptionInstantiates a new WebRTC provider.- Parameters:
params- the paramssettingService- the setting serviceresourceBundleService- the resource bundle service- Throws:
org.exoplatform.container.configuration.ConfigurationException- the configuration exception
-
-
Method Detail
-
getRtcConfiguration
public WebrtcProvider.RTCConfiguration getRtcConfiguration()
Gets the rtc configuration.- Returns:
- the rtc configuration
-
saveRtcConfiguration
public void saveRtcConfiguration(WebrtcProvider.RTCConfiguration conf) throws Exception
Save rtc configuration.- Parameters:
conf- the conf- Throws:
Exception- the exception
-
settings
public WebrtcProvider.SettingsBuilder settings()
Gets the settings.- Returns:
- the settings
-
getIMInfo
public org.exoplatform.webconferencing.UserInfo.IMInfo getIMInfo(String imId) throws org.exoplatform.webconferencing.CallProviderException
- Specified by:
getIMInfoin classorg.exoplatform.webconferencing.CallProvider- Throws:
org.exoplatform.webconferencing.CallProviderException
-
getVersion
public String getVersion()
- Specified by:
getVersionin classorg.exoplatform.webconferencing.CallProvider
-
getType
public String getType()
- Specified by:
getTypein classorg.exoplatform.webconferencing.CallProvider
-
getSupportedTypes
public String[] getSupportedTypes()
- Specified by:
getSupportedTypesin classorg.exoplatform.webconferencing.CallProvider
-
getTitle
public String getTitle()
- Specified by:
getTitlein classorg.exoplatform.webconferencing.CallProvider
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceorg.exoplatform.container.component.ComponentPlugin- Overrides:
getDescriptionin classorg.exoplatform.webconferencing.CallProvider
-
getDescription
public String getDescription(Locale locale)
- Overrides:
getDescriptionin classorg.exoplatform.webconferencing.CallProvider
-
isLogEnabled
public boolean isLogEnabled()
- Overrides:
isLogEnabledin classorg.exoplatform.webconferencing.CallProvider
-
jsonToRtcConfig
public WebrtcProvider.RTCConfiguration jsonToRtcConfig(org.json.JSONObject json) throws Exception
Json to RTC config.- Parameters:
json- the json- Returns:
- the RTC configuration
- Throws:
Exception- the exception
-
rtcConfigToJson
public org.json.JSONObject rtcConfigToJson(WebrtcProvider.RTCConfiguration rtcConf) throws Exception
RTC config to json.- Parameters:
rtcConf- the rtc conf- Returns:
- the JSON object
- Throws:
Exception- the exception
-
saveRtcConfig
protected void saveRtcConfig(WebrtcProvider.RTCConfiguration conf) throws Exception
Save rtc config.- Parameters:
conf- the conf- Throws:
Exception- the exception
-
readRtcConfig
protected WebrtcProvider.RTCConfiguration readRtcConfig() throws Exception
Read rtc config.- Returns:
- the RTC configuration
- Throws:
Exception- the exception
-
isNotNull
protected boolean isNotNull(Object obj)
Checks if is notnullor JSON NULL.- Parameters:
obj- the obj- Returns:
- true, if is null
-
logRemoteLogEnabled
protected void logRemoteLogEnabled()
Log remote log enabled.
-
-