Class PushPublishRTP
Object
com.wowza.wms.pushpublish.model.PushPublishBase
com.wowza.wms.pushpublish.protocol.rtp.PushPublishRTP
- All Implemented Interfaces:
IPushPublish
The Class PushPublishRTP.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe audio host.protected intThe audio port.static final Class<PushPublishRTP>static final Stringprotected booleanThe is rtp wrapped.protected Objectprotected RTPDestinationThe m rtp destination.protected Stringprotected booleanThe remove sdp filesprotected RTPPushPublishSessionThe rtp push publish session.static final StringThe Constant SDPFILEEXTENSION.protected booleanThe stream packetizer.protected StringThe video host.protected intThe video port.protected booleanThe write sdp files.Fields inherited from class com.wowza.wms.pushpublish.model.PushPublishBase
appInstance, 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, userNameFields inherited from interface com.wowza.wms.pushpublish.model.IPushPublish
CONNECTED_STATE_CONNECTED, CONNECTED_STATE_CONNECTING, CONNECTED_STATE_NOT_CONNECTED, CONNECTED_STATE_WAITING, PUSHPUBLISH_MAP_PATH_FIELD_NAME, 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(IOPerformanceCounter totalValue) voidaddIOPerformance2(IOPerformanceCounter totalIOPerformanceResult) voidconnect()voidvoiddisconnect(boolean hard) Get appInstance interface.Gets the audio host.intGets the audio port.intGet destination server host name.Gets the host type.longlonglongGets the rTP push publish session.longintGets the time to live.Gets the video host.intGets the video port.voidinit(IApplicationInstance appInstance, String streamName, IMediaStream stream, Map<String, String> profileData, Map<String, String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean debug) Inits the instance.booleanbooleanChecks if is rTP wrapped.booleanChecks if is stream is packatized.booleanvoidLoads map and profile parametersvoidvoidresetConnection(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.voidSet 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.PushPublishBase
clearLoggingValues, 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 Details
-
CLASS
-
CLASSNAME
- See Also:
-
SDPFILEEXTENSION
The Constant SDPFILEEXTENSION.- See Also:
-
rtpPushPublishSession
The rtp push publish session. -
singleStreamAV
protected boolean singleStreamAVThe stream packetizer. -
audioPort
protected int audioPortThe audio port. -
videoPort
protected int videoPortThe video port. -
audioHost
The audio host. -
videoHost
The video host. -
isRTPWrapped
protected boolean isRTPWrappedThe is rtp wrapped. -
writeSDPFiles
protected boolean writeSDPFilesThe write sdp files. -
removeSDPFiles
protected boolean removeSDPFilesThe remove sdp files -
multicastInterfaceAddress
-
mRtpDestination
The m rtp destination. -
lock
-
-
Constructor Details
-
PushPublishRTP
public PushPublishRTP() throws com.wowza.wms.server.LicensingException- Throws:
com.wowza.wms.server.LicensingException
-
-
Method Details
-
init
public void init(IApplicationInstance appInstance, String streamName, IMediaStream stream, Map<String, String> profileData, Map<String, String> maps, com.wowza.wms.pushpublish.manager.IPushPublisher pushPublisher, boolean debug) Description copied from class:PushPublishBaseInits the instance.- Specified by:
initin interfaceIPushPublish- Overrides:
initin classPushPublishBase- Parameters:
appInstance- the app instancestreamName- the source stream nameprofileData- the profile paramsmaps- the map entry paramsdebug- stream debug flag
-
connect
public void connect() -
disconnect
public void disconnect() -
disconnect
public void disconnect(boolean hard) -
resetConnection
public void resetConnection() -
resetConnection
public void resetConnection(int delay) -
getRTPPushPublishSession
Gets the rTP push publish session.- Returns:
- the rTP push publish session
-
setRTPPushPublishSession
Sets the rTP push publish session.- Parameters:
rtpPushPublishSession- the new rTP push publish session
-
getAppInstance
Description copied from class:PushPublishBaseGet appInstance interface.- Overrides:
getAppInstancein classPushPublishBase- Returns:
- appInstance interface
-
setAppInstance
Description copied from class:PushPublishBaseSet appInstance interface.- Overrides:
setAppInstancein classPushPublishBase- Parameters:
appInstance- appInstance interface
-
isSingleStreamAV
public boolean isSingleStreamAV()Checks if is stream is packatized.- Returns:
- true, if is stream packetizer
-
setSingleStreamAV
public void setSingleStreamAV(boolean inSingleStreamAV) Sets the stream packetizer.- Parameters:
inSingleStreamAV- whether stream is packatized
-
setSingleStreamAV
-
getHostname
Description copied from class:PushPublishBaseGet destination server host name.- Specified by:
getHostnamein interfaceIPushPublish- Overrides:
getHostnamein classPushPublishBase- Returns:
- destination server host name
-
setHostname
- Specified by:
setHostnamein interfaceIPushPublish- Overrides:
setHostnamein classPushPublishBase
-
setPort
public void setPort(int port) Set destination server port.- Specified by:
setPortin interfaceIPushPublish- Overrides:
setPortin classPushPublishBase- Parameters:
port- destination server port
-
setPort
Description copied from class:PushPublishBaseSet destination server port.- Specified by:
setPortin interfaceIPushPublish- Overrides:
setPortin classPushPublishBase- Parameters:
portIn- destination server port
-
getAudioPort
public int getAudioPort()Gets the audio port.- Returns:
- the audio port
-
setAudioPort
public void setAudioPort(int audioPort) Sets the audio port.- Parameters:
audioPort- the new audio port
-
setVideoPort
public void setVideoPort(int videoPort) -
getAudioHost
Gets the audio host.- Returns:
- the audio host
-
setAudioHost
Sets the audio host.- Parameters:
audioHost- the new audio host
-
getVideoHost
Gets the video host.- Returns:
- the video host
-
setVideoHost
Sets the video host.- Parameters:
videoHost- the new video host
-
setAudioPort
Sets the audio port.- Parameters:
audioPort- the new audio port
-
getVideoPort
public int getVideoPort()Gets the video port.- Returns:
- the video port
-
setVideoPort
Sets the video port.- Parameters:
videoPort- the new video port
-
isRTPWrapped
public boolean isRTPWrapped()Checks if is rTP wrapped.- Returns:
- true, if is rTP wrapped
-
setRTPWrapped
Sets the rTP wrapped.- Parameters:
string- the new rTP wrapped
-
getHostType
Gets the host type.- Returns:
- the host type
-
setHostType
Sets the host type.- Parameters:
hostType- the new host type
-
setTimeToLive
Sets the time to live.- Parameters:
ttl- the new time to live
-
getTimeToLive
public int getTimeToLive()Gets the time to live.- Returns:
- the time to live
-
load
Description copied from class:PushPublishBaseLoads map and profile parameters- Overrides:
loadin classPushPublishBase- Parameters:
dataMap- the data map
-
getRtpStreamWaitTimeout
public long getRtpStreamWaitTimeout() -
setRtpStreamWaitTimeout
-
setRtpStreamWaitTimeout
public void setRtpStreamWaitTimeout(long rtpStreamWaitTimeout) -
createPushPublishSession
- Specified by:
createPushPublishSessionin interfaceIPushPublish- Overrides:
createPushPublishSessionin classPushPublishBase
-
getContextStr
- Specified by:
getContextStrin interfaceIPushPublish- Specified by:
getContextStrin classPushPublishBase
-
getmRtpDestination
-
getConnectedState
public int getConnectedState() -
setConnectionStatus
-
getMessagesAttemptedCount
public long getMessagesAttemptedCount() -
getMessagesRetriedCount
public long getMessagesRetriedCount() -
getMessagesFailedCount
public long getMessagesFailedCount() -
add
- Overrides:
addin classPushPublishBase
-
addIOPerformance2
- Overrides:
addIOPerformance2in classPushPublishBase
-
isWriteSDPFiles
public boolean isWriteSDPFiles() -
setWriteSDPFiles
public void setWriteSDPFiles(boolean writeSDPFiles) -
isRemoveSDPFiles
public boolean isRemoveSDPFiles() -
setRemoveSDPFiles
public void setRemoveSDPFiles(boolean removeSDPFiles) -
setRTPWrapped
public void setRTPWrapped(boolean isRTPWrapped) -
getMulticastInterfaceAddress
-
setMulticastInterfaceAddress
-