Class PushPublishRTP
- Object
- 
- com.wowza.wms.pushpublish.model.PushPublishBase
- 
- com.wowza.wms.pushpublish.protocol.rtp.PushPublishRTP
 
 
- 
- All Implemented Interfaces:
- IPushPublish
 
 public class PushPublishRTP extends PushPublishBase The Class PushPublishRTP.
- 
- 
Field SummaryFields Modifier and Type Field Description protected StringaudioHostThe audio host.protected intaudioPortThe audio port.static Class<PushPublishRTP>CLASSstatic StringCLASSNAMEprotected booleanisRTPWrappedThe is rtp wrapped.protected Objectlockprotected RTPDestinationmRtpDestinationThe m rtp destination.protected StringmulticastInterfaceAddressprotected booleanremoveSDPFilesThe remove sdp filesprotected RTPPushPublishSessionrtpPushPublishSessionThe rtp push publish session.static StringSDPFILEEXTENSIONThe Constant SDPFILEEXTENSION.protected booleansingleStreamAVThe stream packetizer.protected StringvideoHostThe video host.protected intvideoPortThe video port.protected booleanwriteSDPFilesThe write sdp files.- 
Fields inherited from class com.wowza.wms.pushpublish.model.PushPublishBaseappInstance, className, DESTINATION_BAK, DESTINATION_PRI, DESTINATION_RED, destinationName, destinationServer, dstStreamName, entryName, hostname, inetAddr, isAdaptiveStreaming, isExternalRedundancy, logger, mImplementation, myMap, password, playbackHostname, port, profile, properties, pushPublishSession, pushPublishStreamDebug, pushPublishType, reconnectWaitTime, sendingPerformance, srcStream, srcStreamName, totalIOPerformance2Last, totalIOPerformanceLast, userName
 - 
Fields inherited from interface com.wowza.wms.pushpublish.model.IPushPublishCONNECTED_STATE_CONNECTED, CONNECTED_STATE_CONNECTING, CONNECTED_STATE_NOT_CONNECTED, CONNECTED_STATE_WAITING, PUSHPUBLISH_TYPE_CUPERTINO, PUSHPUBLISH_TYPE_MPEGDASH, PUSHPUBLISH_TYPE_NOTIFY_PACKET, PUSHPUBLISH_TYPE_RTMP, PUSHPUBLISH_TYPE_RTP, PUSHPUBLISH_TYPE_RTP_BUFFERED, PUSHPUBLISH_TYPE_SANJOSE, PUSHPUBLISH_TYPE_SRT, PUSHPUBLISH_TYPE_UNKNOWN
 
- 
 - 
Constructor SummaryConstructors Constructor Description PushPublishRTP()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(IOPerformanceCounter totalValue)voidaddIOPerformance2(IOPerformanceCounter totalIOPerformanceResult)voidconnect()IPushPublishSessioncreatePushPublishSession()voiddisconnect()voiddisconnect(boolean hard)IApplicationInstancegetAppInstance()Get appInstance interface.StringgetAudioHost()Gets the audio host.intgetAudioPort()Gets the audio port.intgetConnectedState()StringgetContextStr()StringgetHostname()Get destination server host name.StringgetHostType()Gets the host type.longgetMessagesAttemptedCount()longgetMessagesFailedCount()longgetMessagesRetriedCount()RTPDestinationgetmRtpDestination()StringgetMulticastInterfaceAddress()RTPPushPublishSessiongetRTPPushPublishSession()Gets the rTP push publish session.longgetRtpStreamWaitTimeout()intgetTimeToLive()Gets the time to live.StringgetVideoHost()Gets the video host.intgetVideoPort()Gets the video port.voidinit(IApplicationInstance appInstance, String streamName, IMediaStream stream, java.util.Map<String,String> profileData, java.util.Map<String,String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean debug)Inits the instance.booleanisRemoveSDPFiles()booleanisRTPWrapped()Checks if is rTP wrapped.booleanisSingleStreamAV()Checks if is stream is packatized.booleanisWriteSDPFiles()voidload(java.util.HashMap<String,String> dataMap)Loads map and profile parametersvoidresetConnection()voidresetConnection(int delay)voidsetAppInstance(IApplicationInstance appInstance)Set appInstance interface.voidsetAudioHost(String audioHost)Sets the audio host.voidsetAudioPort(int audioPort)Sets the audio port.voidsetAudioPort(String audioPort)Sets the audio port.voidsetConnectionStatus(Boolean connected)voidsetHostname(String hostname)voidsetHostType(String hostType)Sets the host type.voidsetMulticastInterfaceAddress(String multicastInterfaceAddress)voidsetPort(int port)Set destination server port.voidsetPort(String portIn)Set destination server port.voidsetRemoveSDPFiles(boolean removeSDPFiles)voidsetRTPPushPublishSession(RTPPushPublishSession rtpPushPublishSession)Sets the rTP push publish session.voidsetRtpStreamWaitTimeout(long rtpStreamWaitTimeout)voidsetRtpStreamWaitTimeout(String rtpStreamWaitTimeout)voidsetRTPWrapped(boolean isRTPWrapped)voidsetRTPWrapped(String string)Sets the rTP wrapped.voidsetSingleStreamAV(boolean inSingleStreamAV)Sets the stream packetizer.voidsetSingleStreamAV(String inSingleStreamAV)voidsetTimeToLive(String ttl)Sets the time to live.voidsetVideoHost(String videoHost)Sets the video host.voidsetVideoPort(int videoPort)voidsetVideoPort(String videoPort)Sets the video port.voidsetWriteSDPFiles(boolean writeSDPFiles)- 
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishBaseclearLoggingValues, getBandwidth, getBaseParams, getDestinationID, getDestinationName, getDestinationServer, getDstStreamName, getEntryName, getImplementation, getInetAddr, getMap, getMessagesOutBytes, getMessagesOutCount, getPassword, getPlaybackHostname, getPort, getProfile, getProperties, getPushPublishType, getReconnectWaitTime, getSrcStream, getSrcStreamName, getUserName, getWowzaStreamingEngineVersionStr, incrementMessagesOut, isAdaptiveStreaming, isDebugLog, isExternalRedundancy, logDebug, logError, logError, logError, logInfo, logWarn, resolveHostName, setAdaptiveStreaming, setAdaptiveStreaming, setDebugLog, setDestinationName, setDestinationServer, setDestinationServer, setDstStreamName, setEntryName, setExternalRedundancy, setExternalRedundancy, setHost, setImplementation, setInetAddr, setPassword, setPlaybackHostname, setProfile, setReconnectWaitTime, setSrcStream, setSrcStreamName, setStreamName, setUserName, updateLoggingValues, updateUsageTracker
 
- 
 
- 
- 
- 
Field Detail- 
CLASSpublic static final Class<PushPublishRTP> CLASS 
 - 
CLASSNAMEpublic static final String CLASSNAME - See Also:
- Constant Field Values
 
 - 
SDPFILEEXTENSIONpublic static final String SDPFILEEXTENSION The Constant SDPFILEEXTENSION.- See Also:
- Constant Field Values
 
 - 
rtpPushPublishSessionprotected RTPPushPublishSession rtpPushPublishSession The rtp push publish session.
 - 
singleStreamAVprotected boolean singleStreamAV The stream packetizer.
 - 
audioPortprotected int audioPort The audio port.
 - 
videoPortprotected int videoPort The video port.
 - 
audioHostprotected String audioHost The audio host.
 - 
videoHostprotected String videoHost The video host.
 - 
isRTPWrappedprotected boolean isRTPWrapped The is rtp wrapped.
 - 
writeSDPFilesprotected boolean writeSDPFiles The write sdp files.
 - 
removeSDPFilesprotected boolean removeSDPFiles The remove sdp files
 - 
multicastInterfaceAddressprotected String multicastInterfaceAddress 
 - 
mRtpDestinationprotected RTPDestination mRtpDestination The m rtp destination.
 - 
lockprotected Object lock 
 
- 
 - 
Method Detail- 
initpublic void init(IApplicationInstance appInstance, String streamName, IMediaStream stream, java.util.Map<String,String> profileData, java.util.Map<String,String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean debug) Description copied from class:PushPublishBaseInits the instance.- Specified by:
- initin interface- IPushPublish
- Overrides:
- initin class- PushPublishBase
- Parameters:
- appInstance- the app instance
- streamName- the source stream name
- profileData- the profile params
- maps- the map entry params
- debug- stream debug flag
 
 - 
connectpublic void connect() 
 - 
disconnectpublic void disconnect() 
 - 
disconnectpublic void disconnect(boolean hard) 
 - 
resetConnectionpublic void resetConnection() 
 - 
resetConnectionpublic void resetConnection(int delay) 
 - 
getRTPPushPublishSessionpublic RTPPushPublishSession getRTPPushPublishSession() Gets the rTP push publish session.- Returns:
- the rTP push publish session
 
 - 
setRTPPushPublishSessionpublic void setRTPPushPublishSession(RTPPushPublishSession rtpPushPublishSession) Sets the rTP push publish session.- Parameters:
- rtpPushPublishSession- the new rTP push publish session
 
 - 
getAppInstancepublic IApplicationInstance getAppInstance() Description copied from class:PushPublishBaseGet appInstance interface.- Overrides:
- getAppInstancein class- PushPublishBase
- Returns:
- appInstance interface
 
 - 
setAppInstancepublic void setAppInstance(IApplicationInstance appInstance) Description copied from class:PushPublishBaseSet appInstance interface.- Overrides:
- setAppInstancein class- PushPublishBase
- Parameters:
- appInstance- appInstance interface
 
 - 
isSingleStreamAVpublic boolean isSingleStreamAV() Checks if is stream is packatized.- Returns:
- true, if is stream packetizer
 
 - 
setSingleStreamAVpublic void setSingleStreamAV(boolean inSingleStreamAV) Sets the stream packetizer.- Parameters:
- inSingleStreamAV- whether stream is packatized
 
 - 
setSingleStreamAVpublic void setSingleStreamAV(String inSingleStreamAV) 
 - 
getHostnamepublic String getHostname() Description copied from class:PushPublishBaseGet destination server host name.- Specified by:
- getHostnamein interface- IPushPublish
- Overrides:
- getHostnamein class- PushPublishBase
- Returns:
- destination server host name
 
 - 
setHostnamepublic void setHostname(String hostname) - Specified by:
- setHostnamein interface- IPushPublish
- Overrides:
- setHostnamein class- PushPublishBase
 
 - 
setPortpublic void setPort(int port) Set destination server port.- Specified by:
- setPortin interface- IPushPublish
- Overrides:
- setPortin class- PushPublishBase
- Parameters:
- port- destination server port
 
 - 
setPortpublic void setPort(String portIn) Description copied from class:PushPublishBaseSet destination server port.- Specified by:
- setPortin interface- IPushPublish
- Overrides:
- setPortin class- PushPublishBase
- Parameters:
- portIn- destination server port
 
 - 
getAudioPortpublic int getAudioPort() Gets the audio port.- Returns:
- the audio port
 
 - 
setAudioPortpublic void setAudioPort(int audioPort) Sets the audio port.- Parameters:
- audioPort- the new audio port
 
 - 
setVideoPortpublic void setVideoPort(int videoPort) 
 - 
getAudioHostpublic String getAudioHost() Gets the audio host.- Returns:
- the audio host
 
 - 
setAudioHostpublic void setAudioHost(String audioHost) Sets the audio host.- Parameters:
- audioHost- the new audio host
 
 - 
getVideoHostpublic String getVideoHost() Gets the video host.- Returns:
- the video host
 
 - 
setVideoHostpublic void setVideoHost(String videoHost) Sets the video host.- Parameters:
- videoHost- the new video host
 
 - 
setAudioPortpublic void setAudioPort(String audioPort) Sets the audio port.- Parameters:
- audioPort- the new audio port
 
 - 
getVideoPortpublic int getVideoPort() Gets the video port.- Returns:
- the video port
 
 - 
setVideoPortpublic void setVideoPort(String videoPort) Sets the video port.- Parameters:
- videoPort- the new video port
 
 - 
isRTPWrappedpublic boolean isRTPWrapped() Checks if is rTP wrapped.- Returns:
- true, if is rTP wrapped
 
 - 
setRTPWrappedpublic void setRTPWrapped(String string) Sets the rTP wrapped.- Parameters:
- string- the new rTP wrapped
 
 - 
getHostTypepublic String getHostType() Gets the host type.- Returns:
- the host type
 
 - 
setHostTypepublic void setHostType(String hostType) Sets the host type.- Parameters:
- hostType- the new host type
 
 - 
setTimeToLivepublic void setTimeToLive(String ttl) Sets the time to live.- Parameters:
- ttl- the new time to live
 
 - 
getTimeToLivepublic int getTimeToLive() Gets the time to live.- Returns:
- the time to live
 
 - 
loadpublic void load(java.util.HashMap<String,String> dataMap) Description copied from class:PushPublishBaseLoads map and profile parameters- Overrides:
- loadin class- PushPublishBase
- Parameters:
- dataMap- the data map
 
 - 
getRtpStreamWaitTimeoutpublic long getRtpStreamWaitTimeout() 
 - 
setRtpStreamWaitTimeoutpublic void setRtpStreamWaitTimeout(String rtpStreamWaitTimeout) 
 - 
setRtpStreamWaitTimeoutpublic void setRtpStreamWaitTimeout(long rtpStreamWaitTimeout) 
 - 
createPushPublishSessionpublic IPushPublishSession createPushPublishSession() - Specified by:
- createPushPublishSessionin interface- IPushPublish
- Overrides:
- createPushPublishSessionin class- PushPublishBase
 
 - 
getContextStrpublic String getContextStr() - Specified by:
- getContextStrin interface- IPushPublish
- Specified by:
- getContextStrin class- PushPublishBase
 
 - 
getmRtpDestinationpublic RTPDestination getmRtpDestination() 
 - 
getConnectedStatepublic int getConnectedState() 
 - 
setConnectionStatuspublic void setConnectionStatus(Boolean connected) 
 - 
getMessagesAttemptedCountpublic long getMessagesAttemptedCount() 
 - 
getMessagesRetriedCountpublic long getMessagesRetriedCount() 
 - 
getMessagesFailedCountpublic long getMessagesFailedCount() 
 - 
addpublic void add(IOPerformanceCounter totalValue) - Overrides:
- addin class- PushPublishBase
 
 - 
addIOPerformance2public void addIOPerformance2(IOPerformanceCounter totalIOPerformanceResult) - Overrides:
- addIOPerformance2in class- PushPublishBase
 
 - 
isWriteSDPFilespublic boolean isWriteSDPFiles() 
 - 
setWriteSDPFilespublic void setWriteSDPFiles(boolean writeSDPFiles) 
 - 
isRemoveSDPFilespublic boolean isRemoveSDPFiles() 
 - 
setRemoveSDPFilespublic void setRemoveSDPFiles(boolean removeSDPFiles) 
 - 
setRTPWrappedpublic void setRTPWrapped(boolean isRTPWrapped) 
 - 
getMulticastInterfaceAddresspublic String getMulticastInterfaceAddress() 
 - 
setMulticastInterfaceAddresspublic void setMulticastInterfaceAddress(String multicastInterfaceAddress) 
 
- 
 
-