// 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()
.terminateOnEOS().build();
zBarFilter.connect(httpEndpoint);
session.start(httpEndpoint);
session.setAttribute("eventValue", "");
zBarFilter
.addCodeFoundListener(new MediaEventListener<CodeFoundEvent>() {
@Override
public void onEvent(CodeFoundEvent event) {
log.info("Code Found " + event.getValue());
if (session.getAttribute("eventValue")