Examples of SdpEndpoint


Examples of com.kurento.kmf.media.SdpEndpoint

    if (sinkContentPath != null) {
      recorderEndpoint = createSinkEndpoint(mediaPipeline,
          sinkContentPath);
    }

    SdpEndpoint sdpEndpoint = buildAndConnectSdpEndpoint(mediaPipeline,
        playerEndpoint, recorderEndpoint);

    if (playerEndpoint != null)
      playerEndpoint.play();
View Full Code Here

Examples of com.kurento.kmf.media.SdpEndpoint

  private SdpEndpoint buildAndConnectSdpEndpoint(MediaPipeline mediaPipeline,
      MediaElement sourceElement, MediaElement sinkElement) {

    getLogger().info("Creating SdpEndpoint ...");
    SdpEndpoint sdpEndpoint = buildSdpEndpoint(mediaPipeline);
    releaseOnTerminate(sdpEndpoint);

    // If no source is provided, jut loopback for having some media back
    // to the client
    if (sourceElement == null) {
      sourceElement = sdpEndpoint; // This produces a loopback.
    }

    getLogger().info("Connecting media pads ...");
    // TODO: should we double check constraints?
    if (sinkElement != null) {
      sdpEndpoint.connect(sinkElement);
    }

    if (sourceElement != null) {
      sourceElement.connect(sdpEndpoint);
    }
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.