throw new UnsupportedFormatException(fmt);
}
if (fmt instanceof AudioFormat) {
clockRate = ((AudioFormat) fmt).getSampleRate();
}
OutputDataStream stream = socket.getDataOutputStream();
// see RFC 3550 Page 8, a RTP Session has ONLY one medium per session, multiplexing is done thru different ports
RTPSendStream RTPStream = new RTPSendStream(ssrc,
dataSource, stream, streamIndex, localParticipant, format,
clockRate, this);