if (!streamName.startsWith("push-"))
{
try
{
IApplicationInstance appInstance = stream.getStreams().getAppInstance();
File configFile = new File(configDir, (streamName + ".cnfg"));
WMSLoggerFactory.getLogger(null).info("PushPublisherRTMP : Config file name -> " + configFile.getName());
if (configFile.exists() && configFile.isFile() && configFile.canRead()){
loadConfigParameters(configFile);
} else {
WMSLoggerFactory.getLogger(null).info("PushPublisherRTMP : Config file not found " + configFile.getName());
return;
}
synchronized(publishers)
{
PushPublisherRTMP publisher = new PushPublisherRTMP();
WMSLoggerFactory.getLogger(null).info("PushPublisherRTMP : APPLICATION NAME ((" + appInstance.getApplication().getName() + "))");
WMSLoggerFactory.getLogger(null).info("PushPublisherRTMP : APPINSTANCE NAME ((" + appInstance.getName() + "))");
WMSLoggerFactory.getLogger(null).info("PushPublisherRTMP : STREAM NAME (("+ streamName + "))");
// Source stream
publisher.setAppInstance(appInstance);