class PushSourceStreamImpl
extends java.lang.Object
implements javax.media.protocol.PushSourceStream, java.lang.Runnable, javax.media.protocol.SourceTransferHandler
Constructor and Description |
---|
PushSourceStreamImpl(RTPConnectorImpl connector,
boolean data) |
Modifier and Type | Method and Description |
---|---|
void |
addStream(RTPConnectorDesc connectorDesc,
javax.media.protocol.PushSourceStream stream) |
void |
close() |
boolean |
endOfStream()
Not implemented because there are currently no uses of the underlying
functionality.
|
javax.media.protocol.ContentDescriptor |
getContentDescriptor()
Not implemented because there are currently no uses of the underlying
functionality.
|
long |
getContentLength() |
java.lang.Object |
getControl(java.lang.String controlType)
Not implemented because there are currently no uses of the underlying
functionality.
|
java.lang.Object[] |
getControls()
Not implemented because there are currently no uses of the underlying
functionality.
|
int |
getMinimumTransferSize() |
int |
read(byte[] buffer,
int offset,
int length) |
void |
removeStreams(RTPConnectorDesc connectorDesc) |
void |
run()
Runs in
transferDataThread and invokes
SourceTransferHandler.transferData(PushSourceStream) on
_transferHandler . |
void |
setTransferHandler(javax.media.protocol.SourceTransferHandler transferHandler) |
void |
transferData(javax.media.protocol.PushSourceStream stream)
Implements
SourceTransferHandler.transferData(PushSourceStream) . |
public PushSourceStreamImpl(RTPConnectorImpl connector, boolean data)
public void addStream(RTPConnectorDesc connectorDesc, javax.media.protocol.PushSourceStream stream)
public void close()
public boolean endOfStream()
endOfStream
in interface javax.media.protocol.SourceStream
public javax.media.protocol.ContentDescriptor getContentDescriptor()
getContentDescriptor
in interface javax.media.protocol.SourceStream
public long getContentLength()
getContentLength
in interface javax.media.protocol.SourceStream
public java.lang.Object getControl(java.lang.String controlType)
getControl
in interface javax.media.Controls
public java.lang.Object[] getControls()
getControls
in interface javax.media.Controls
public int getMinimumTransferSize()
getMinimumTransferSize
in interface javax.media.protocol.PushSourceStream
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in interface javax.media.protocol.PushSourceStream
java.io.IOException
public void removeStreams(RTPConnectorDesc connectorDesc)
public void run()
transferDataThread
and invokes
SourceTransferHandler.transferData(PushSourceStream)
on
_transferHandler
.run
in interface java.lang.Runnable
public void setTransferHandler(javax.media.protocol.SourceTransferHandler transferHandler)
setTransferHandler
in interface javax.media.protocol.PushSourceStream
public void transferData(javax.media.protocol.PushSourceStream stream)
SourceTransferHandler.transferData(PushSourceStream)
. This
instance sets itself as the transferHandler of all
PushSourceStreams that get added to it (i.e.
streams
). When either one of these pushes media data, this
instance pushes that media data.transferData
in interface javax.media.protocol.SourceTransferHandler
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.