protected HttpEndpoint buildAndConnectHttpEndpoint(
RecorderEndpoint recorderEndpoint) {
MediaPipeline mediaPiplePipeline = recorderEndpoint.getMediaPipeline();
getLogger().info("Creating HttpEndpoint ...");
HttpPostEndpoint httpEndpoint = mediaPiplePipeline
.newHttpPostEndpoint().build();
releaseOnTerminate(httpEndpoint);
httpEndpoint.connect(recorderEndpoint);
return httpEndpoint;
}