Package com.kurento.kmf.media

Examples of com.kurento.kmf.media.WebRtcEndpoint.connect()


      Thread.sleep(4000);

      // Switching (round #2)
      webRtcEndpoint1.connect(webRtcEndpoint3);
      webRtcEndpoint2.connect(webRtcEndpoint1);
      webRtcEndpoint3.connect(webRtcEndpoint2);
      assertColor(browser1, browser2, browser3);

      // Guard time to see switching #2
      Thread.sleep(4000);
    }
View Full Code Here


    Dispatcher dispatcher = mp.newDispatcher().build();
    HubPort hubPort1 = dispatcher.newHubPort().build();
    HubPort hubPort2 = dispatcher.newHubPort().build();

    webRtcEP1.connect(hubPort1);
    hubPort2.connect(httpEP);

    dispatcher.connect(hubPort1, hubPort2);

    // Test execution
View Full Code Here

          .create();
      // contentSession.releaseOnTerminate(mp);
      WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
      recorderEndPoint = mp.newRecorderEndpoint(FILE_SCHEMA + recording)
          .build();
      webRtcEndpoint.connect(webRtcEndpoint);
      webRtcEndpoint.connect(recorderEndPoint);
      contentSession.start(webRtcEndpoint);

      terminateLatch = new CountDownLatch(1);
    }
View Full Code Here

      // contentSession.releaseOnTerminate(mp);
      WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
      recorderEndPoint = mp.newRecorderEndpoint(FILE_SCHEMA + recording)
          .build();
      webRtcEndpoint.connect(webRtcEndpoint);
      webRtcEndpoint.connect(recorderEndPoint);
      contentSession.start(webRtcEndpoint);

      terminateLatch = new CountDownLatch(1);
    }
View Full Code Here

    public void onContentRequest(WebRtcContentSession session)
        throws Exception {
      MediaPipeline mp = session.getMediaPipelineFactory().create();
      session.releaseOnTerminate(mp);
      WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
      webRtcEndpoint.connect(webRtcEndpoint);
      session.start(webRtcEndpoint);

      terminateLatch = new CountDownLatch(1);
    }
View Full Code Here

    // Media Pipeline #1
    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEP = mp.newWebRtcEndpoint().build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    webRtcEP.connect(webRtcEP);
    webRtcEP.connect(recorderEP);

    // Test execution #1. WewbRTC in loopback while it is recorded
    BrowserClient.Builder builder = new BrowserClient.Builder().browser(
        browserType).client(Client.WEBRTC);
View Full Code Here

    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEP = mp.newWebRtcEndpoint().build();
    RecorderEndpoint recorderEP = mp.newRecorderEndpoint(
        FILE_SCHEMA + getDefaultFileForRecording()).build();
    webRtcEP.connect(webRtcEP);
    webRtcEP.connect(recorderEP);

    // Test execution #1. WewbRTC in loopback while it is recorded
    BrowserClient.Builder builder = new BrowserClient.Builder().browser(
        browserType).client(Client.WEBRTC);
    if (video != null) {
View Full Code Here

  public void doTest(Browser browserType, String videoPath, String audioUrl,
      Color color) throws InterruptedException {
    MediaPipeline mp = pipelineFactory.create();
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    webRtcEndpoint.connect(webRtcEndpoint);

    BrowserClient.Builder builder = new BrowserClient.Builder().browser(
        browserType).client(Client.WEBRTC);
    if (videoPath != null) {
      builder = builder.video(videoPath);
View Full Code Here

      session.terminate(403, "User " + name + " is already in the room. "
          + "Please select another name and try again.");
    } else {
      WebRtcEndpoint endpoint = mp.newWebRtcEndpoint().build();
      HubPort hubPort = compsite.newHubPort().build();
      endpoint.connect(hubPort);
      hubPort.connect(endpoint);
      DispatcherParticipant participant = new DispatcherParticipant(
          session.getSessionId(), name, endpoint, session, hubPort);
      session.start(participant.endpoint);
      session.setAttribute("participant", participant);
View Full Code Here

    RecorderEndpoint recorderEndpoint = mp.newRecorderEndpoint(
        "file:///tmp/recording").build();
    contentSession.setAttribute("recorder", recorderEndpoint);

    // Connections
    webRtcEndpoint.connect(webRtcEndpoint);
    webRtcEndpoint.connect(recorderEndpoint);

    // Start content session
    contentSession.start(webRtcEndpoint);
  }
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.