class OutputDataStreamImpl
extends java.lang.Object
implements javax.media.rtp.OutputDataStream, java.lang.Runnable
Constructor and Description |
---|
OutputDataStreamImpl(RTPConnectorImpl connector,
boolean data) |
Modifier and Type | Method and Description |
---|---|
void |
addStream(RTPConnectorDesc connectorDesc,
javax.media.rtp.OutputDataStream stream)
Adds a new
OutputDataStream to the list of
OutputDataStream s into which this OutputDataStream copies
written data/packets. |
void |
close() |
void |
removeStreams(RTPConnectorDesc connectorDesc)
Removes the
OutputDataStream s owned by a specific
RTPConnector from the list of OutputDataStream s into
which this OutputDataStream copies written data/packets. |
void |
run() |
int |
write(byte[] buf,
int off,
int len) |
void |
write(byte[] buf,
int off,
int len,
javax.media.Format format,
StreamRTPManagerDesc exclusion) |
(package private) boolean |
writeControlPayload(Payload controlPayload,
MediaStream destination)
Writes an RTCPFeedbackMessage into a destination identified by
a specific MediaStream.
|
public OutputDataStreamImpl(RTPConnectorImpl connector, boolean data)
public void addStream(RTPConnectorDesc connectorDesc, javax.media.rtp.OutputDataStream stream)
OutputDataStream
to the list of
OutputDataStream
s into which this OutputDataStream
copies
written data/packets. If this instance contains the specified
stream
already, does nothing.connectorDesc
- the endpoint RTPConnector
which owns
stream
stream
- the OutputDataStream
to add to this instancepublic void close()
public void removeStreams(RTPConnectorDesc connectorDesc)
OutputDataStream
s owned by a specific
RTPConnector
from the list of OutputDataStream
s into
which this OutputDataStream
copies written data/packets.connectorDesc
- the RTPConnector
that is the owner of the
OutputDataStream
s to remove from this instance.public void run()
run
in interface java.lang.Runnable
public int write(byte[] buf, int off, int len)
write
in interface javax.media.rtp.OutputDataStream
public void write(byte[] buf, int off, int len, javax.media.Format format, StreamRTPManagerDesc exclusion)
boolean writeControlPayload(Payload controlPayload, MediaStream destination)
controlPayload
- destination
-
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.