Package com.kurento.kmf.media.factory

Examples of com.kurento.kmf.media.factory.MediaPipelineFactory.create()


  @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


    if ("configureFilter".equalsIgnoreCase(contentCommand.getType())) {
      if (crowdDetector == null) {
        MediaPipelineFactory mpf;
        mpf = contentSession.getMediaPipelineFactory();
        mediaPipeline = mpf.create();
        contentSession.releaseOnTerminate(mediaPipeline);
        webRtcEndpoint = mediaPipeline.newWebRtcEndpoint().build();

        // create PlayerEndpoint
        playerendpoint = mediaPipeline.newPlayerEndpoint(
View Full Code Here

    log.info("Starting client");
    JsonRpcClientRabbitMq client = new JsonRpcClientRabbitMq();

    MediaPipelineFactory mpf = new MediaPipelineFactory(client);
    MediaPipeline pipeline = mpf.create();

    checkKeepAlives(initTime, NUM_KEEP_ALIVES * 1000,
        (NUM_KEEP_ALIVES + 1) * 1000);

    // There are two pipelines and NUM_KEEP_ALIVES are submited in the half
View Full Code Here

    // There are two pipelines and NUM_KEEP_ALIVES are submited in the half
    // of the time
    initTime = System.nanoTime();
    latch = new CountDownLatch(NUM_KEEP_ALIVES);
    MediaPipeline pipeline2 = mpf.create();
    checkKeepAlives(initTime, NUM_KEEP_ALIVES * 1000 / 2,
        (NUM_KEEP_ALIVES + 1) * 1000 / 2);

    client.close();

View Full Code Here

    JsonRpcServerRabbitMq server = new JsonRpcServerRabbitMq(
        new JsonRpcClientThrift());

    server.start();

    MediaPipeline pipeline = mpf.create();

    PlayerEndpoint player = pipeline.newPlayerEndpoint(
        "http://files.kurento.org/video/small.webm").build();

    HttpGetEndpoint httpGetEndpoint = pipeline.newHttpGetEndpoint().build();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.