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());
}