Package com.kurento.kmf.media.factory

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


      final WebRtcContentSession contentSession,
      ContentCommand contentCommand) throws Exception {

    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


    long initTime = System.nanoTime();

    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
    // 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

    System.setProperty(RabbitMqManager.NUM_RETRIES_PROPERTY, "3");

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

    mpf = new MediaPipelineFactory(client);
  }
View Full Code Here

  @Test
  public void test() {

    KurentoServicesTestHelper.startKurentoMediaServer();

    MediaPipelineFactory mpf = new MediaPipelineFactory(
        new JsonRpcClientRabbitMq());

    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

  private CountDownLatch finished = new CountDownLatch(1);

  private String logId;

  public ClientApp(String logId) {
    this.mpf = new MediaPipelineFactory(new JsonRpcClientRabbitMq(
        KmfMediaApiProperties.getRabbitMqAddress()));
  }
View Full Code Here

  @Bean
  @Primary
  public MediaPipelineFactory mediaPipelineFactory() {

    MediaPipelineFactory bean = returnBeanInParent(MediaPipelineFactory.class);

    if (bean != null) {
      return bean;

    } else {

      ThriftClientPoolService clientPool = new ThriftClientPoolService(
          thriftInterfaceConfiguration());

      ThriftInterfaceExecutorService executorService = new ThriftInterfaceExecutorService(
          thriftInterfaceConfiguration());

      MediaApiConfiguration mediaApiConfiguration = mediaApiConfiguration();

      JsonRpcClient client = new JsonRpcClientThrift(clientPool,
          executorService, new InetSocketAddress(
              mediaApiConfiguration.getHandlerAddress(),
              mediaApiConfiguration.getHandlerPort()));

      return new MediaPipelineFactory(client);
    }
  }
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.