Class PushPublishRTMPProfileHandler
- Object
- 
- com.wowza.wms.pushpublish.model.PushPublishBase
- 
- com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMP
- 
- com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMPProfileHandler
 
 
 
- 
- All Implemented Interfaces:
- IPushPublish
 - Direct Known Subclasses:
- PushPublishRTMPAkamaiHandler
 
 public class PushPublishRTMPProfileHandler extends PushPublishRTMP 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMPPushPublishRTMP.STATE
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static Class<PushPublishRTMPProfileHandler>CLASSstatic StringCLASSNAMEprotected StringstreamIdThe stream id.- 
Fields inherited from class com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMPakamaiOriginIp, akamaiOriginPort, akamaiPassword, akamaiUserName, bindAddress, bytesAvg, connectAttemptCount, connectionFlashVersion, connectionPageURL, connectionQueryStr, connectionResetCount, connectionState, connectionSwfURL, connectionTimeout, connectLastAttempt, connectLastSuccess, connectMetaData, CURRENTFLASHVERSION, CURRENTFMLEVERSION, debugLogLastPacketCount, debugPackets, doSendOnMetaData, dstAppInstanceName, dstApplicationName, howToPublish, ioSessionToSessionHolder, isReconnectorRunning, isSSL, lastAudioTC, lastDataTC, lastIdleReadTime, lastIdleWriteTime, lastVideoKeyFrameTC, lastVideoTC, listeners, lock, netconnectToSessionHolder, offlineTime, onlineTime, onMetadataFilter, onMetadataItemsToAdd, onMetadataItemsToRemove, onMetadataToSetDataFrame, originalTimecodeOffset, originalTimecodeThreshold, outprint, packetsSentAudio, packetsSentData, packetsSentVideo, packetsSentVideoKeyFrame, pingPongListenerRegistered, queryString, removeDefaultAppInstance, resetOnTimecodeOutOfOrder, rtmpAuthProvider, rtmpDebugLog, secureTokenSharedSecret, sendFCAnnounce, sendFCPublish, sendOnMetadata, sendOriginalTimecodes, sendReleaseStream, sendStreamCloseCommands, sendStreamCloseCommandsSendTime, sessionOrder, srcStreamBufferSize, streamCloseWaitTime, syncPacketType, syncTimecode, timecodesOutOfOrderThreshold, totalPacketsSent, tryConnect, usePingPong, validationFrequency, waitOnMetadataAudio, waitOnMetadataAudioDatarate, waitOnMetadataAvailable, waitOnMetadataReady, waitOnMetadataStartime, waitOnMetadataTimeout, waitOnMetadataVideo, waitOnMetadataVideoDatarate
 - 
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 PushPublishRTMPProfileHandler()Instantiates a new push publisher rtmp.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDstAppInstanceName()Get destination appInstance name.StringgetDstApplicationName()Get destination application name.StringgetLocalBindAddress()Get local bind address for the connection.voidinit(IApplicationInstance appInstance2, 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.booleanisDebugLog()Is debug logging turned on.booleanisDebugPackets()Checks if is debug packets.booleanisUsePingPong()Is RTMP ping pong support enabled.voidload(java.util.HashMap<String,String> dataMap)Loads map and profile parametersvoidsetApplication(String dstApplicationNameIN)Set destination application name.voidsetConnectionFlashVersion(String connectionFlashVersion)Set Flash version used in connection metadata.voidsetConnectionInfoPageURL(String connectionPageURL)Set Page URL used in connection metadata.voidsetConnectionInfoQueryString(String connectionQueryStr)Set the connection query string.voidsetConnectionInfoSwfURL(String connectionSwfURL)Set SWF URL used in connection metadata.voidsetConnectionTimeout(String connectionTimeout)voidsetConnectLastAttempt(String connectLastAttempt)voidsetConnectLastSuccess(String connectLastSuccess)voidsetDebugPackets(boolean debugPackets)Sets the debug packets.voidsetDebugPackets(String debugPacketsIn)Sets the debug packets.voidsetDstAppInstanceName(String dstAppInstanceName)Set destination appInstance namevoidsetDstApplicationName(String string)Sets the dst application name.voidsetDstStreamName(String dstStreamNameIn)Set destination stream namevoidsetHowToPublish(String howToPublish)Set the howToPublish string (valid values are "live", "record" and "append")voidsetlocalBindAddress(String bindAddress)Sets the local bind address for the connection.voidsetOnMetadataToSetDataFrame(String onMetadataToSetDataFrame)voidsetOriginalTimecodeThreshold(String originalTimecodeThreshold)Sets the original timecode threshold.voidsetQueryString(String queryString)Set the queryString, as set in the map filevoidsetReconnectWaitTime(String reconnectWaitTime)voidsetRemoveDefaultAppInstance(String removeDefaultAppInstance)Sets the removes the default app instance.voidsetResetOnTimecodeOutOfOrder(String resetOnTimecodeOutOfOrder)Set to true if you wish push to reset if timecodes jump out of order.voidsetSecureTokenSharedSecret(String secureTokenSharedSecret)Set SecureToken shared secret.voidsetSendFCAnnounce(String sendFCAnnounce)voidsetSendFCPublish(String sendFCPublish)Sets the send fc publish.voidsetSendOnMetadata(String sendOnMetadata)voidsetSendOriginalTimecodes(String sendOriginalTimecodes)Sets the send original timecodes.voidsetSendReleaseStream(String sendReleaseStream)Sets the send release stream.voidsetSendStreamCloseCommands(String sendStreamCloseCommands)Sets the send stream close commands.voidsetSSL(String sslStr)voidsetStreamCloseWaitTime(String streamCloseWaitTime)voidsetTimecodesOutOfOrderThreshold(String timecodesOutOfOrderThreshold)voidsetUsePingPong(boolean usePingPong)Sets the RTMP ping pong support parameter.voidsetUsePingPong(String usePingPong)Sets the RTMP ping pong support parameter.voidsetValidationFrequency(String validationFrequency)voidsetWaitOnMetadataAudio(String waitOnMetadataAudio)voidsetWaitOnMetadataAudioDatarate(String waitOnMetadataAudioDatarate)voidsetWaitOnMetadataAvailable(String waitOnMetadataAvailable)voidsetWaitOnMetadataTimeout(String waitOnMetadataTimeout)Timeout (milliseconds) that the wait on onMetadata system will wait looking for video and audio data to be populated.voidsetWaitOnMetadataVideo(String waitOnMetadataVideo)voidsetWaitOnMetadataVideoDatarate(String waitOnMetadataVideoDatarate)- 
Methods inherited from class com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMPaddConnectMetaData, addListener, addOnMetadataItemToRemove, addSession, bumpReconnectWaitTime, callConnect, connect, convertDataEvenToAMFData, convertOnMetadataToSetDataFrame, createNetConnectionPublisher, createPushPublishSession, disconnect, disconnect, filterOnMetadataEvent, getAkamaiOriginIp, getAkamaiOriginPort, getAkamaiPassword, getAkamaiSessionKey, getAkamaiUserName, getAppInstance, getBindAddress, getConnectAttemptCount, getConnectedState, getConnectionFlashVerion, getConnectionFlashVersion, getConnectionPageURL, getConnectionQueryStr, getConnectionSwfURL, getConnectionTimeout, getConnectLastAttempt, getConnectLastSuccess, getContextStr, getDstStreamName, getHowToPublish, getLastAudioTC, getLastDataTC, getLastSession, getLastVideoKeyFrameTC, getLastVideoTC, getLocalListeners, getLock, getMessagesAttemptedCount, getMessagesFailedCount, getMessagesRetriedCount, getNetConnection, getOnMetadataFilter, getOriginalTimecodeOffset, getOriginalTimecodeThreshold, getPacketsSentAudio, getPacketsSentData, getPacketsSentVideo, getPacketsSentVideoKeyFrame, getPort, getQueryString, getReconnectDelay, getRemoteIpAddress, getRTMPAuthProvider, getSecureTokenSharedSecret, getSessionHolderByNetConnection, getSessionHolderBySession, getSessionListDebug, getSrcStreamBufferSize, getSrcStreamName, getStreamCloseWaitTime, getSyncPacketType, getSyncTimecode, getTimecodesOutOfOrderThreshold, getTotalPacketsSent, getValidationFrequency, getWaitOnMetadataTimeout, internalConnect, isCurrentSession, isFlashVerionFMLE, isFlashVersionFMLE, isOnMetadataReady, isOnMetadataToSetDataFrame, isRemoveDefaultAppInstance, isResetOnTimecodeOutOfOrder, isSendFCAnnounce, isSendFCPublish, isSendOnMetadata, isSendOriginalTimecodes, isSendReleaseStream, isSendStreamCloseCommands, isSSL, isWaitOnMetadataAudio, isWaitOnMetadataAudioDatarate, isWaitOnMetadataAvailable, isWaitOnMetadataVideo, isWaitOnMetadataVideoDatarate, notifyAkamaiClientLogin, notifyAkamaiSetChallenge, notifyAkamaiSetOriginConnectionInfo, notifyConnect, notifyConnectFailure, notifyConnectStart, notifyConnectSuccess, notifyFCAnnounce, notifyFCPublish, notifyHandshakeResult, notifyPublishHandlerPlay, notifyPushPublisherSessionCreate, notifyPushPublisherSessionDestroy, notifySessionClosed, notifySessionIdle, notifySessionOpened, notifyStreamCreate, notifyStreamOnPlayStatus, notifyStreamOnStatus, notifyValidateSession, notifyValidateSessionResult, putOnMetadataItemToAdd, removeListener, removeSession, resetConnection, resetConnection, sessionClosed, sessionOpened, setAkamaiOriginIp, setAkamaiOriginPort, setAkamaiPassword, setAkamaiUserName, setAppInstance, setBindAddress, setConnectionFlashVerion, setConnectionPageURL, setConnectionQueryStr, setConnectionSwfURL, setConnectionTimeout, setConnectLastAttempt, setConnectLastSuccess, setDebugLog, setOnMetadataFilter, setOnMetadataToSetDataFrame, setOriginalTimecodeOffset, setOriginalTimecodeThreshold, setPort, setRemoveDefaultAppInstance, setResetOnTimecodeOutOfOrder, setRTMPAuthProvider, setSendFCAnnounce, setSendFCPublish, setSendOnMetadata, setSendOriginalTimecodes, setSendReleaseStream, setSendStreamCloseCommands, setSrcStreamBufferSize, setSrcStreamName, setSSL, setStreamCloseWaitTime, setStreamDebugLog, setSyncPacketType, setSyncTimecode, setTimecodesOutOfOrderThreshold, setValidationFrequency, setWaitOnMetadataAudio, setWaitOnMetadataAudioDatarate, setWaitOnMetadataAvailable, setWaitOnMetadataTimeout, setWaitOnMetadataVideo, setWaitOnMetadataVideoDatarate, tryToConnect
 - 
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishBaseadd, addIOPerformance2, clearLoggingValues, getBandwidth, getBaseParams, getDestinationID, getDestinationName, getDestinationServer, getEntryName, getHostname, getImplementation, getInetAddr, getMap, getMessagesOutBytes, getMessagesOutCount, getPassword, getPlaybackHostname, getProfile, getProperties, getPushPublishType, getReconnectWaitTime, getSrcStream, getUserName, getWowzaStreamingEngineVersionStr, incrementMessagesOut, isAdaptiveStreaming, isExternalRedundancy, logDebug, logError, logError, logError, logInfo, logWarn, resolveHostName, setAdaptiveStreaming, setAdaptiveStreaming, setDestinationName, setDestinationServer, setDestinationServer, setEntryName, setExternalRedundancy, setExternalRedundancy, setHost, setHostname, setImplementation, setInetAddr, setPassword, setPlaybackHostname, setPort, setProfile, setReconnectWaitTime, setSrcStream, setStreamName, setUserName, updateLoggingValues, updateUsageTracker
 
- 
 
- 
- 
- 
Field Detail- 
CLASSpublic static final Class<PushPublishRTMPProfileHandler> CLASS 
 - 
CLASSNAMEpublic static final String CLASSNAME - See Also:
- Constant Field Values
 
 - 
streamIdprotected String streamId The stream id.
 
- 
 - 
Method Detail- 
setConnectionTimeoutpublic void setConnectionTimeout(String connectionTimeout) 
 - 
setSendFCPublishpublic void setSendFCPublish(String sendFCPublish) Sets the send fc publish.- Parameters:
- sendFCPublish- the new send fc publish
 
 - 
setSendReleaseStreampublic void setSendReleaseStream(String sendReleaseStream) Sets the send release stream.- Parameters:
- sendReleaseStream- the new send release stream
 
 - 
setConnectionInfoQueryStringpublic void setConnectionInfoQueryString(String connectionQueryStr) Set the connection query string.- Parameters:
- connectionQueryStr- connection query string
 
 - 
setConnectionFlashVersionpublic void setConnectionFlashVersion(String connectionFlashVersion) Set Flash version used in connection metadata.- Overrides:
- setConnectionFlashVersionin class- PushPublishRTMP
- Parameters:
- connectionFlashVersion- Flash version used in connection metadata
 
 - 
setConnectionInfoSwfURLpublic void setConnectionInfoSwfURL(String connectionSwfURL) Set SWF URL used in connection metadata.- Parameters:
- connectionSwfURL- SWF URL used in connection metadata
 
 - 
setConnectionInfoPageURLpublic void setConnectionInfoPageURL(String connectionPageURL) Set Page URL used in connection metadata.- Parameters:
- connectionPageURL- Page URL used in connection metadata
 
 - 
setSecureTokenSharedSecretpublic void setSecureTokenSharedSecret(String secureTokenSharedSecret) Set SecureToken shared secret.- Overrides:
- setSecureTokenSharedSecretin class- PushPublishRTMP
- Parameters:
- secureTokenSharedSecret- SecureToken shared secret
 
 - 
setSendFCAnnouncepublic void setSendFCAnnounce(String sendFCAnnounce) 
 - 
setValidationFrequencypublic void setValidationFrequency(String validationFrequency) 
 - 
setConnectLastAttemptpublic void setConnectLastAttempt(String connectLastAttempt) 
 - 
setReconnectWaitTimepublic void setReconnectWaitTime(String reconnectWaitTime) 
 - 
setConnectLastSuccesspublic void setConnectLastSuccess(String connectLastSuccess) 
 - 
setSendOriginalTimecodespublic void setSendOriginalTimecodes(String sendOriginalTimecodes) Sets the send original timecodes.- Parameters:
- sendOriginalTimecodes- the new send original timecodes
 
 - 
setSendOnMetadatapublic void setSendOnMetadata(String sendOnMetadata) 
 - 
setRemoveDefaultAppInstancepublic void setRemoveDefaultAppInstance(String removeDefaultAppInstance) Sets the removes the default app instance.- Parameters:
- removeDefaultAppInstance- the new removes the default app instance
 
 - 
setHowToPublishpublic void setHowToPublish(String howToPublish) Description copied from class:PushPublishRTMPSet the howToPublish string (valid values are "live", "record" and "append")- Overrides:
- setHowToPublishin class- PushPublishRTMP
- Parameters:
- howToPublish- howToPublish string
 
 - 
setOnMetadataToSetDataFramepublic void setOnMetadataToSetDataFrame(String onMetadataToSetDataFrame) 
 - 
setSendStreamCloseCommandspublic void setSendStreamCloseCommands(String sendStreamCloseCommands) Sets the send stream close commands.- Parameters:
- sendStreamCloseCommands- the new send stream close commands
 
 - 
setStreamCloseWaitTimepublic void setStreamCloseWaitTime(String streamCloseWaitTime) 
 - 
setOriginalTimecodeThresholdpublic void setOriginalTimecodeThreshold(String originalTimecodeThreshold) Sets the original timecode threshold.- Overrides:
- setOriginalTimecodeThresholdin class- PushPublishRTMP
- Parameters:
- originalTimecodeThreshold- the new original timecode threshold
 
 - 
setQueryStringpublic void setQueryString(String queryString) Description copied from class:PushPublishRTMPSet the queryString, as set in the map file- Overrides:
- setQueryStringin class- PushPublishRTMP
 
 - 
setResetOnTimecodeOutOfOrderpublic void setResetOnTimecodeOutOfOrder(String resetOnTimecodeOutOfOrder) Set to true if you wish push to reset if timecodes jump out of order.- Parameters:
- resetOnTimecodeOutOfOrder- true if you wish push to reset if timecodes jump out of order
 
 - 
setTimecodesOutOfOrderThresholdpublic void setTimecodesOutOfOrderThreshold(String timecodesOutOfOrderThreshold) 
 - 
setWaitOnMetadataTimeoutpublic void setWaitOnMetadataTimeout(String waitOnMetadataTimeout) Timeout (milliseconds) that the wait on onMetadata system will wait looking for video and audio data to be populated.- Parameters:
- waitOnMetadataTimeout- the new timeout value (milliseconds-string)
 
 - 
setWaitOnMetadataAvailablepublic void setWaitOnMetadataAvailable(String waitOnMetadataAvailable) 
 - 
setWaitOnMetadataVideopublic void setWaitOnMetadataVideo(String waitOnMetadataVideo) 
 - 
setWaitOnMetadataAudiopublic void setWaitOnMetadataAudio(String waitOnMetadataAudio) 
 - 
setWaitOnMetadataVideoDataratepublic void setWaitOnMetadataVideoDatarate(String waitOnMetadataVideoDatarate) 
 - 
setWaitOnMetadataAudioDataratepublic void setWaitOnMetadataAudioDatarate(String waitOnMetadataAudioDatarate) 
 - 
setSSLpublic void setSSL(String sslStr) 
 - 
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
 
 - 
isDebugPacketspublic boolean isDebugPackets() Checks if is debug packets.- Overrides:
- isDebugPacketsin class- PushPublishRTMP
- Returns:
- true, if is debug packets
 
 - 
setDebugPacketspublic void setDebugPackets(boolean debugPackets) Sets the debug packets.- Overrides:
- setDebugPacketsin class- PushPublishRTMP
- Parameters:
- debugPackets- the new debug packets
 
 - 
setDebugPacketspublic void setDebugPackets(String debugPacketsIn) Sets the debug packets.- Parameters:
- debugPacketsIn- the new debug packets
 
 - 
isUsePingPongpublic boolean isUsePingPong() Is RTMP ping pong support enabled.- Returns:
- true if ping pong support is enabled
 
 - 
setUsePingPongpublic void setUsePingPong(boolean usePingPong) Sets the RTMP ping pong support parameter.- Parameters:
- usePingPong- true to enable RTMP ping pong support
 
 - 
setUsePingPongpublic void setUsePingPong(String usePingPong) Sets the RTMP ping pong support parameter.- Parameters:
- usePingPong- "true" to enable RTMP ping pong support
 
 - 
isDebugLogpublic boolean isDebugLog() Is debug logging turned on.- Specified by:
- isDebugLogin interface- IPushPublish
- Overrides:
- isDebugLogin class- PushPublishRTMP
- Returns:
- true if debug logging is turned on
 
 - 
getDstApplicationNamepublic String getDstApplicationName() Get destination application name.- Overrides:
- getDstApplicationNamein class- PushPublishRTMP
- Returns:
- destination application name
 
 - 
setApplicationpublic void setApplication(String dstApplicationNameIN) Set destination application name.- Parameters:
- dstApplicationNameIN- destination application name
 
 - 
setDstApplicationNamepublic void setDstApplicationName(String string) Sets the dst application name.- Overrides:
- setDstApplicationNamein class- PushPublishRTMP
- Parameters:
- string- the new dst application name
 
 - 
getDstAppInstanceNamepublic String getDstAppInstanceName() Get destination appInstance name.- Overrides:
- getDstAppInstanceNamein class- PushPublishRTMP
- Returns:
- destination appInstance name
 
 - 
setlocalBindAddresspublic void setlocalBindAddress(String bindAddress) Sets the local bind address for the connection.- Parameters:
- bindAddress- the local bind address for the connection
 
 - 
getLocalBindAddresspublic String getLocalBindAddress() Get local bind address for the connection.- Returns:
- local bind address for the connection
 
 - 
initpublic void init(IApplicationInstance appInstance2, 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:
- appInstance2- the app instance
- streamName- the source stream name
- profileData- the profile params
- maps- the map entry params
- debug- stream debug flag
 
 - 
setDstStreamNamepublic void setDstStreamName(String dstStreamNameIn) Description copied from class:PushPublishRTMPSet destination stream name- Specified by:
- setDstStreamNamein interface- IPushPublish
- Overrides:
- setDstStreamNamein class- PushPublishRTMP
- Parameters:
- dstStreamNameIn- destination stream name
 
 - 
setDstAppInstanceNamepublic void setDstAppInstanceName(String dstAppInstanceName) Description copied from class:PushPublishRTMPSet destination appInstance name- Overrides:
- setDstAppInstanceNamein class- PushPublishRTMP
- Parameters:
- dstAppInstanceName- destination appInstance name
 
 
- 
 
-