Package com.kurento.kmf.content.jsonrpc

Examples of com.kurento.kmf.content.jsonrpc.Constraints


    // Build WebRtcEndpoint
    WebRtcEndpoint webRtcEndpoint = mp.newWebRtcEndpoint().build();
    contentSession.releaseOnTerminate(webRtcEndpoint);

    // Check if it is a transmitter or a receiver
    Constraints videoConstraints = contentSession.getVideoConstraints();

    if (videoConstraints.name().equalsIgnoreCase("SENDONLY")) {
      // it means the request is from the transmitter
      connection.setTransmitter(webRtcEndpoint, nickName);
      contentSession.publishEvent(new ContentEvent("nickname", nickName));
    } else {
      connection.addReceiver(webRtcEndpoint, contentSession);
View Full Code Here

TOP

Related Classes of com.kurento.kmf.content.jsonrpc.Constraints

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.