public void onContentRequest(HttpPlayerSession session) throws Exception {
MediaPipelineFactory mpf = session.getMediaPipelineFactory();
MediaPipeline mp = mpf.create();
session.releaseOnTerminate(mp);
PlayerEndpoint playerEndPoint = mp.newPlayerEndpoint(
"http://files.kurento.org/video/fiwarecut.webm").build();
JackVaderFilter filter = mp.newJackVaderFilter().build();
playerEndPoint.connect(filter);
session.setAttribute("player", playerEndPoint);
HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
.build();
filter.connect(httpEndpoint);
session.start(httpEndpoint);