protected PlayerEndpoint buildUriEndpoint(String contentPath) {
getLogger().info("Creating media pipeline ...");
MediaPipeline mediaPipeline = mediaPipelineFactory.create();
releaseOnTerminate(mediaPipeline);
getLogger().info("Creating PlayerEndpoint ...");
PlayerEndpoint playerEndpoint = mediaPipeline.newPlayerEndpoint(
contentPath).build();
return playerEndpoint;
}