|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.samples.nbNative.tds.NBMediaConnector
public class NBMediaConnector
| Field Summary | |
|---|---|
protected TransportHandler |
transportHandler
|
| Constructor Summary | |
|---|---|
NBMediaConnector(String ip,
int brkPort,
int entityID)
|
|
NBMediaConnector(String ip,
int brkPort,
int entityID,
int topicNumber)
|
|
| Method Summary | |
|---|---|
void |
close()
|
void |
closeBrokerConnection()
|
javax.media.protocol.PushSourceStream |
getControlInputStream()
Returns an input stream to receive the RTCP data. |
javax.media.rtp.OutputDataStream |
getControlOutputStream()
Returns an output stream to send the RTCP data. |
javax.media.protocol.PushSourceStream |
getDataInputStream()
Returns an input stream to receive the RTP data. |
javax.media.rtp.OutputDataStream |
getDataOutputStream()
Returns an output stream to send the RTP data. |
int |
getReceiveBufferSize()
Get the receive buffer size set on the RTP data channel. |
double |
getRTCPBandwidthFraction()
Return the RTCP bandwidth fraction. |
double |
getRTCPSenderBandwidthFraction()
Return the RTCP sender bandwidth fraction. |
int |
getSendBufferSize()
Get the send buffer size set on the RTP data channel. |
void |
initializeBrokerCommunications(Properties props,
String commType)
|
void |
initializeReceiver()
|
void |
initializeReceiverWithTDS()
|
void |
initializeTransmitter()
|
void |
initiateReplay(long start,
long stop)
|
boolean |
isClient()
|
void |
onEvent(NBEvent nbEvent)
Upon the receipt of an event which has satisfied all the constraints, if any were provided, that needed to be satisfied prior to delivery |
void |
onRecovery(NBRecoveryNotification recoveryNotification)
Upon completion of the attempt to recover, this method is invoked on the listener that was registered with the |
void |
onReplay(ReplayEvent replayEvent)
|
void |
onReplayResponse(ReplayResponse replayResponse)
|
void |
publishEvent(byte[] data,
int offset,
int length,
String tpcName)
|
void |
setPublishEnabled(boolean toPublish)
Enable or diable publishing of streams |
void |
setReceiveBufferSize(int size)
Set the receive buffer size of the RTP data channel. |
void |
setSendBufferSize(int size)
Set the send buffer size of the RTP data channel. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected TransportHandler transportHandler
| Constructor Detail |
|---|
public NBMediaConnector(String ip,
int brkPort,
int entityID,
int topicNumber)
public NBMediaConnector(String ip,
int brkPort,
int entityID)
| Method Detail |
|---|
public void initializeBrokerCommunications(Properties props,
String commType)
throws ServiceException
ServiceException
public void initializeReceiver()
throws ServiceException
ServiceException
public void initializeReceiverWithTDS()
throws ServiceException
ServiceException
public void initiateReplay(long start,
long stop)
throws ServiceException
ServiceExceptionpublic void onReplay(ReplayEvent replayEvent)
onReplay in interface ReplayServiceListenerpublic void onReplayResponse(ReplayResponse replayResponse)
onReplayResponse in interface ReplayServiceListener
public void initializeTransmitter()
throws ServiceException
ServiceExceptionpublic void onEvent(NBEvent nbEvent)
NBEventListener
onEvent in interface NBEventListenerpublic void onRecovery(NBRecoveryNotification recoveryNotification)
onRecovery in interface NBRecoveryListenerpublic void setPublishEnabled(boolean toPublish)
public void publishEvent(byte[] data,
int offset,
int length,
String tpcName)
throws ServiceException,
NBEventException
ServiceException
NBEventExceptionpublic boolean isClient()
public void close()
close in interface javax.media.rtp.RTPConnector
public void closeBrokerConnection()
throws ServiceException
ServiceExceptionpublic javax.media.protocol.PushSourceStream getDataInputStream()
getDataInputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.rtp.OutputDataStream getDataOutputStream()
getDataOutputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.protocol.PushSourceStream getControlInputStream()
getControlInputStream in interface javax.media.rtp.RTPConnectorpublic javax.media.rtp.OutputDataStream getControlOutputStream()
getControlOutputStream in interface javax.media.rtp.RTPConnector
public void setReceiveBufferSize(int size)
throws IOException
setReceiveBufferSize in interface javax.media.rtp.RTPConnectorIOExceptionpublic int getReceiveBufferSize()
getReceiveBufferSize in interface javax.media.rtp.RTPConnector
public void setSendBufferSize(int size)
throws IOException
setSendBufferSize in interface javax.media.rtp.RTPConnectorIOExceptionpublic int getSendBufferSize()
getSendBufferSize in interface javax.media.rtp.RTPConnectorpublic double getRTCPBandwidthFraction()
getRTCPBandwidthFraction in interface javax.media.rtp.RTPConnectorpublic double getRTCPSenderBandwidthFraction()
getRTCPSenderBandwidthFraction in interface javax.media.rtp.RTPConnector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||