Package com.kurento.kmf.media.factory

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory


  public static JackVaderFilter sharedJackVaderReference;

  @Override
  public void onContentRequest(RtpContentSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    RtpEndpoint rtpEP = mp.newRtpEndpoint().build();
    filter.connect(rtpEP);
    session.start(rtpEP);
View Full Code Here


@HttpPlayerService(name = "CpPlayerWithJackVaderFilter", path = "/cpPlayerJack", redirect = true, useControlProtocol = true)
public class CpPlayerWithFilterHandler extends HttpPlayerHandler {

  @Override
  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();
View Full Code Here

  @Override
  public void onContentRequest(final HttpPlayerSession contentSession)
      throws Exception {
    // contentSession.start("http://files.kurento.org/video/sintel.webm");

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    final MediaPipeline mp = mpf.create();
    contentSession.releaseOnTerminate(mp);
    PlayerEndpoint playerEndpoint = mp.newPlayerEndpoint(
        "http://files.kurento.org/video/sintel.webm").build();
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
        .build();
View Full Code Here

@HttpPlayerService(name = "PlayerJson", path = "/cpPlayer", redirect = true, useControlProtocol = true)
public class CpPlayerHandler extends HttpPlayerHandler {

  @Override
  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();
    session.setAttribute("player", playerEndpoint);
    HttpGetEndpoint httpEndpoint = mp.newHttpGetEndpoint().terminateOnEOS()
View Full Code Here

  public static JackVaderFilter sharedFilterReference;

  @Override
  public void onContentRequest(RtpContentSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    JackVaderFilter filter = mp.newJackVaderFilter().build();
    RtpEndpoint rtpEndpoint = mp.newRtpEndpoint().build();
    rtpEndpoint.connect(filter);
    rtpEndpoint.connect(rtpEndpoint);
View Full Code Here

  public static ZBarFilter sharedFilterReference;

  @Override
  public void onContentRequest(RtpContentSession session) throws Exception {
    MediaPipelineFactory mpf = session.getMediaPipelineFactory();
    MediaPipeline mp = mpf.create();
    session.releaseOnTerminate(mp);
    ZBarFilter filter = mp.newZBarFilter().build();
    RtpEndpoint rtpEndpoint = mp.newRtpEndpoint().build();
    rtpEndpoint.connect(filter);
    rtpEndpoint.connect(rtpEndpoint);
View Full Code Here

  @Override
  public void onContentRequest(HttpPlayerSession contentSession)
      throws Exception {

    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    mediaPipeline = mpf.create();
    contentSession.releaseOnTerminate(mediaPipeline);
    player1 = mediaPipeline.newPlayerEndpoint(
        "http://files.kurento.org/video/sintel.webm").build();
    player2 = mediaPipeline.newPlayerEndpoint(
        "http://files.kurento.org/video/sintel.webm").build();
View Full Code Here

      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()
View Full Code Here

  public WebRtcEndpoint webRtcEndpoint;

  @Override
  public void onContentRequest(WebRtcContentSession contentSession)
      throws Exception {
    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    mediaPipeline = mpf.create();
    contentSession.releaseOnTerminate(mediaPipeline);

    webRtcEndpoint = mediaPipeline.newWebRtcEndpoint().build();
    contentSession.start(webRtcEndpoint);
  }
View Full Code Here

  public PlateDetectorFilter plateDetector;

  @Override
  public void onContentRequest(final WebRtcContentSession contentSession)
      throws Exception {
    MediaPipelineFactory mpf = contentSession.getMediaPipelineFactory();
    mediaPipeline = mpf.create();
    contentSession.releaseOnTerminate(mediaPipeline);

    webRtcEndpoint = mediaPipeline.newWebRtcEndpoint().build();
    plateDetector = mediaPipeline.newPlateDetectorFilter().build();
View Full Code Here

TOP

Related Classes of com.kurento.kmf.media.factory.MediaPipelineFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.