use of org.codice.alliance.video.stream.mpegts.plugins.StreamCreationException in project alliance by codice.
the class UdpStreamProcessor method init.
/**
* Initializes the processor. Users should call {@link #isReady()} first to make sure the
* processor is ready to run.
*/
public void init() {
Security security = Security.getInstance();
security.runAsAdmin(() -> {
if (streamCreationSubject == null) {
streamCreationSubject = security.getSystemSubject();
}
streamCreationSubject.execute(() -> {
try {
streamCreationPlugin.onCreate(context);
} catch (StreamCreationException e) {
LOGGER.debug("unable to run stream creation plugin", e);
}
return null;
});
return null;
});
}
Aggregations