Package org.ice4j.ice

Examples of org.ice4j.ice.CandidatePair


        if( rtpComponent == null )
          throw new IOException("RTP component not found.");
        if( rtcpComponent == null )
          throw new IOException("RTCP Component not found.");

        CandidatePair rtpPair = rtpComponent.getSelectedPair();
        CandidatePair rtcpPair = rtcpComponent.getSelectedPair();

//        System.out.println( "RTP : L " + rtpPair.getLocalCandidate().getDatagramSocket().getLocalPort() + " <-> " + rtpPair.getRemoteCandidate().getTransportAddress() + " R " );
//        System.out.println( "RTCP: L " + rtcpPair.getLocalCandidate().getDatagramSocket().getLocalPort() + " <-> " + rtcpPair.getRemoteCandidate().getTransportAddress() + " R " );
       
        return startStream( name,
            payloadTypeId,
            format,
            rtpPair.getRemoteCandidate().getTransportAddress(),
            rtcpPair.getRemoteCandidate().getTransportAddress(),
            rtpPair.getLocalCandidate().getDatagramSocket(),
            rtcpPair.getLocalCandidate().getDatagramSocket());
  }
View Full Code Here

TOP

Related Classes of org.ice4j.ice.CandidatePair

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.