if (contentId != null && VideoURLs.map.containsKey(contentId)) {
url = VideoURLs.map.get(contentId);
}
if (contentId != null && contentId.equalsIgnoreCase("jack")) {
// Jack Vader Filter
MediaPipelineFactory mpf = session.getMediaPipelineFactory();
MediaPipeline mp = mpf.create();
session.releaseOnTerminate(mp);
PlayerEndpoint playerEndPoint = mp.newPlayerEndpoint(url)
.build();
JackVaderFilter filter = mp.newJackVaderFilter().build();
playerEndPoint.connect(filter);
HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint()
.terminateOnEOS().build();
filter.connect(httpEndpoint);
session.setAttribute("player", playerEndPoint);
session.start(httpEndpoint);
} else if (contentId != null && contentId.equalsIgnoreCase("zbar")) {
// ZBar Filter
MediaPipelineFactory mpf = session.getMediaPipelineFactory();
MediaPipeline mp = mpf.create();
PlayerEndpoint player = mp.newPlayerEndpoint(url).build();
session.setAttribute("player", player);
ZBarFilter zBarFilter = mp.newZBarFilter().build();
player.connect(zBarFilter);
HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint()