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 String
The audio host.protected int
The audio port.static final Class<PushPublishRTP>
static final String
protected boolean
The is rtp wrapped.protected Object
protected RTPDestination
The m rtp destination.protected String
protected boolean
The remove sdp filesprotected RTPPushPublishSession
The rtp push publish session.static final String
The Constant SDPFILEEXTENSION.protected boolean
The stream packetizer.protected String
The video host.protected int
The video port.protected boolean
The 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, userName
Fields 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 TypeMethodDescriptionvoid
add
(IOPerformanceCounter totalValue) void
addIOPerformance2
(IOPerformanceCounter totalIOPerformanceResult) void
connect()
void
void
disconnect
(boolean hard) Get appInstance interface.Gets the audio host.int
Gets the audio port.int
Get destination server host name.Gets the host type.long
long
long
Gets the rTP push publish session.long
int
Gets the time to live.Gets the video host.int
Gets the video port.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) Inits the instance.boolean
boolean
Checks if is rTP wrapped.boolean
Checks if is stream is packatized.boolean
void
Loads map and profile parametersvoid
void
resetConnection
(int delay) void
setAppInstance
(IApplicationInstance appInstance) Set appInstance interface.void
setAudioHost
(String audioHost) Sets the audio host.void
setAudioPort
(int audioPort) Sets the audio port.void
setAudioPort
(String audioPort) Sets the audio port.void
setConnectionStatus
(Boolean connected) void
setHostname
(String hostname) void
setHostType
(String hostType) Sets the host type.void
setMulticastInterfaceAddress
(String multicastInterfaceAddress) void
setPort
(int port) Set destination server port.void
Set destination server port.void
setRemoveSDPFiles
(boolean removeSDPFiles) void
setRTPPushPublishSession
(RTPPushPublishSession rtpPushPublishSession) Sets the rTP push publish session.void
setRtpStreamWaitTimeout
(long rtpStreamWaitTimeout) void
setRtpStreamWaitTimeout
(String rtpStreamWaitTimeout) void
setRTPWrapped
(boolean isRTPWrapped) void
setRTPWrapped
(String string) Sets the rTP wrapped.void
setSingleStreamAV
(boolean inSingleStreamAV) Sets the stream packetizer.void
setSingleStreamAV
(String inSingleStreamAV) void
setTimeToLive
(String ttl) Sets the time to live.void
setVideoHost
(String videoHost) Sets the video host.void
setVideoPort
(int videoPort) void
setVideoPort
(String videoPort) Sets the video port.void
setWriteSDPFiles
(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:PushPublishBase
Inits the instance.- Specified by:
init
in interfaceIPushPublish
- Overrides:
init
in 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:PushPublishBase
Get appInstance interface.- Overrides:
getAppInstance
in classPushPublishBase
- Returns:
- appInstance interface
-
setAppInstance
Description copied from class:PushPublishBase
Set appInstance interface.- Overrides:
setAppInstance
in 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:PushPublishBase
Get destination server host name.- Specified by:
getHostname
in interfaceIPushPublish
- Overrides:
getHostname
in classPushPublishBase
- Returns:
- destination server host name
-
setHostname
- Specified by:
setHostname
in interfaceIPushPublish
- Overrides:
setHostname
in classPushPublishBase
-
setPort
public void setPort(int port) Set destination server port.- Specified by:
setPort
in interfaceIPushPublish
- Overrides:
setPort
in classPushPublishBase
- Parameters:
port
- destination server port
-
setPort
Description copied from class:PushPublishBase
Set destination server port.- Specified by:
setPort
in interfaceIPushPublish
- Overrides:
setPort
in 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:PushPublishBase
Loads map and profile parameters- Overrides:
load
in classPushPublishBase
- Parameters:
dataMap
- the data map
-
getRtpStreamWaitTimeout
public long getRtpStreamWaitTimeout() -
setRtpStreamWaitTimeout
-
setRtpStreamWaitTimeout
public void setRtpStreamWaitTimeout(long rtpStreamWaitTimeout) -
createPushPublishSession
- Specified by:
createPushPublishSession
in interfaceIPushPublish
- Overrides:
createPushPublishSession
in classPushPublishBase
-
getContextStr
- Specified by:
getContextStr
in interfaceIPushPublish
- Specified by:
getContextStr
in classPushPublishBase
-
getmRtpDestination
-
getConnectedState
public int getConnectedState() -
setConnectionStatus
-
getMessagesAttemptedCount
public long getMessagesAttemptedCount() -
getMessagesRetriedCount
public long getMessagesRetriedCount() -
getMessagesFailedCount
public long getMessagesFailedCount() -
add
- Overrides:
add
in classPushPublishBase
-
addIOPerformance2
- Overrides:
addIOPerformance2
in 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
-