public class RtpChannel extends MultiplexedChannel implements DtlsListener, IceEventListener
Modifier and Type | Field and Description |
---|---|
protected static AudioFormat |
DTMF_FORMAT |
protected static AudioFormat |
LINEAR_FORMAT |
dataChannel, handlers, selectionKey
Constructor and Description |
---|
RtpChannel(int channelId,
int jitterBufferSize,
RtpStatistics statistics,
RtpClock clock,
RtpClock oobClock,
PriorityQueueScheduler scheduler,
UdpManager udpManager,
DtlsSrtpServerProvider dtlsServerProvider) |
bind, connect, disconnect, flush, getLocalAddress, getLocalHost, getLocalPort, getRemoteHost, getRemotePort, hasPendingData, isOpen, open, open, queueData, receive, send, setTransport
protected static final AudioFormat LINEAR_FORMAT
protected static final AudioFormat DTMF_FORMAT
public RtpChannel(int channelId, int jitterBufferSize, RtpStatistics statistics, RtpClock clock, RtpClock oobClock, PriorityQueueScheduler scheduler, UdpManager udpManager, DtlsSrtpServerProvider dtlsServerProvider)
public RtpTransmitter getTransmitter()
public AudioComponent getAudioComponent()
public OOBComponent getOobComponent()
public Processor getInputDsp()
public void setInputDsp(Processor dsp)
public Processor getOutputDsp()
public void setOutputDsp(Processor dsp)
public void setOutputFormats(Formats fmts) throws FormatNotSupportedException
FormatNotSupportedException
public void setRtpListener(RtpListener listener)
public long getPacketsReceived()
public long getPacketsTransmitted()
public void setFormatMap(RTPFormats rtpFormats)
rtpFormats
- the format mappublic RTPFormats getFormatMap()
public void updateMode(ConnectionMode connectionMode)
connectionMode
- the new connection mode adopted by the channelpublic void bind(boolean isLocal, boolean rtcpMux) throws IOException
IOException
@Deprecated public void bind(DatagramChannel channel) throws IOException, SocketException
IOException
SocketException
public boolean isBound()
public boolean isConnected()
isConnected
in interface Channel
isConnected
in class MultiplexedChannel
public boolean isAvailable()
public void setRemotePeer(SocketAddress address)
public String getExternalAddress()
public boolean hasExternalAddress()
public void enableIce(IceAuthenticator authenticator)
public void disableIce()
public void enableSRTP()
public void disableSRTP()
public Text getWebRtcLocalFingerprint()
public void close()
close
in interface Channel
close
in class MultiplexedChannel
public void onDtlsHandshakeComplete()
onDtlsHandshakeComplete
in interface DtlsListener
public void onDtlsHandshakeFailed(Throwable e)
onDtlsHandshakeFailed
in interface DtlsListener
public void onSelectedCandidates(SelectedCandidatesEvent event)
onSelectedCandidates
in interface IceEventListener
Copyright © 2017 TeleStax, Inc.. All Rights Reserved.