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();