public class PushPublishRTMPProfileHandler extends PushPublishRTMP
PushPublishRTMP.STATE| Modifier and Type | Field and Description |
|---|---|
static Class<PushPublishRTMPProfileHandler> |
CLASS |
static String |
CLASSNAME |
protected String |
streamId
The stream id.
|
akamaiOriginIp, 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, waitOnMetadataVideoDatarateappInstance, className, DESTINATION_BAK, DESTINATION_PRI, DESTINATION_RED, destinationName, destinationServer, dstStreamName, entryName, hostname, inetAddr, isAdaptiveStreaming, isExternalRedundancy, logger, mImplementation, myMap, password, port, profile, properties, pushPublishSession, pushPublishStreamDebug, pushPublishType, reconnectWaitTime, sendingPerformance, srcStream, srcStreamName, totalIOPerformance2Last, totalIOPerformanceLast, userNameCONNECTED_STATE_CONNECTED, CONNECTED_STATE_CONNECTING, CONNECTED_STATE_NOT_CONNECTED, CONNECTED_STATE_WAITING, PUSHPUBLISH_TYPE_CUPERTINO, PUSHPUBLISH_TYPE_MPEGDASH, PUSHPUBLISH_TYPE_RTMP, PUSHPUBLISH_TYPE_RTP, PUSHPUBLISH_TYPE_RTP_BUFFERED, PUSHPUBLISH_TYPE_SANJOSE, PUSHPUBLISH_TYPE_SRT, PUSHPUBLISH_TYPE_UNKNOWN| Constructor and Description |
|---|
PushPublishRTMPProfileHandler()
Instantiates a new push publisher rtmp.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDstAppInstanceName()
Get destination appInstance name.
|
String |
getDstApplicationName()
Get destination application name.
|
String |
getLocalBindAddress()
Get local bind address for the connection.
|
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)
Inits the instance.
|
boolean |
isDebugLog()
Is debug logging turned on.
|
boolean |
isDebugPackets()
Checks if is debug packets.
|
boolean |
isUsePingPong()
Is RTMP ping pong support enabled.
|
void |
load(java.util.HashMap<String,String> dataMap)
Loads map and profile parameters
|
void |
setApplication(String dstApplicationNameIN)
Set destination application name.
|
void |
setConnectionFlashVersion(String connectionFlashVersion)
Set Flash version used in connection metadata.
|
void |
setConnectionInfoPageURL(String connectionPageURL)
Set Page URL used in connection metadata.
|
void |
setConnectionInfoQueryString(String connectionQueryStr)
Set the connection query string.
|
void |
setConnectionInfoSwfURL(String connectionSwfURL)
Set SWF URL used in connection metadata.
|
void |
setConnectionTimeout(String connectionTimeout) |
void |
setConnectLastAttempt(String connectLastAttempt) |
void |
setConnectLastSuccess(String connectLastSuccess) |
void |
setDebugPackets(boolean debugPackets)
Sets the debug packets.
|
void |
setDebugPackets(String debugPacketsIn)
Sets the debug packets.
|
void |
setDstAppInstanceName(String dstAppInstanceName)
Set destination appInstance name
|
void |
setDstApplicationName(String string)
Sets the dst application name.
|
void |
setDstStreamName(String dstStreamNameIn)
Set destination stream name
|
void |
setHowToPublish(String howToPublish)
Set the howToPublish string (valid values are "live", "record" and "append")
|
void |
setlocalBindAddress(String bindAddress)
Sets the local bind address for the connection.
|
void |
setOnMetadataToSetDataFrame(String onMetadataToSetDataFrame) |
void |
setOriginalTimecodeThreshold(String originalTimecodeThreshold)
Sets the original timecode threshold.
|
void |
setQueryString(String queryString)
Set the queryString, as set in the map file
|
void |
setReconnectWaitTime(String reconnectWaitTime) |
void |
setRemoveDefaultAppInstance(String removeDefaultAppInstance)
Sets the removes the default app instance.
|
void |
setResetOnTimecodeOutOfOrder(String resetOnTimecodeOutOfOrder)
Set to true if you wish push to reset if timecodes jump out of order.
|
void |
setSecureTokenSharedSecret(String secureTokenSharedSecret)
Set SecureToken shared secret.
|
void |
setSendFCAnnounce(String sendFCAnnounce) |
void |
setSendFCPublish(String sendFCPublish)
Sets the send fc publish.
|
void |
setSendOnMetadata(String sendOnMetadata) |
void |
setSendOriginalTimecodes(String sendOriginalTimecodes)
Sets the send original timecodes.
|
void |
setSendReleaseStream(String sendReleaseStream)
Sets the send release stream.
|
void |
setSendStreamCloseCommands(String sendStreamCloseCommands)
Sets the send stream close commands.
|
void |
setSSL(String sslStr) |
void |
setStreamCloseWaitTime(String streamCloseWaitTime) |
void |
setTimecodesOutOfOrderThreshold(String timecodesOutOfOrderThreshold) |
void |
setUsePingPong(boolean usePingPong)
Sets the RTMP ping pong support parameter.
|
void |
setUsePingPong(String usePingPong)
Sets the RTMP ping pong support parameter.
|
void |
setValidationFrequency(String validationFrequency) |
void |
setWaitOnMetadataAudio(String waitOnMetadataAudio) |
void |
setWaitOnMetadataAudioDatarate(String waitOnMetadataAudioDatarate) |
void |
setWaitOnMetadataAvailable(String waitOnMetadataAvailable) |
void |
setWaitOnMetadataTimeout(String waitOnMetadataTimeout)
Timeout (milliseconds) that the wait on onMetadata system will wait looking for video and audio data to be populated.
|
void |
setWaitOnMetadataVideo(String waitOnMetadataVideo) |
void |
setWaitOnMetadataVideoDatarate(String waitOnMetadataVideoDatarate) |
addConnectMetaData, 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, resolveHostName, 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, tryToConnectadd, addIOPerformance2, getBandwidth, getDestinationID, getDestinationName, getDestinationServer, getEntryName, getHostname, getImplementation, getInetAddr, getMap, getMessagesOutBytes, getMessagesOutCount, getPassword, getProfile, getProperties, getPushPublishType, getReconnectWaitTime, getSrcStream, getUserName, getWowzaStreamingEngineVersionStr, handleParentStreamDisconnect, incrementMessagesOut, isAdaptiveStreaming, isExternalRedundancy, isParent, isTargetedStream, logDebug, logError, logError, logError, logInfo, logWarn, setAdaptiveStreaming, setAdaptiveStreaming, setDestinationName, setDestinationServer, setDestinationServer, setEntryName, setExternalRedundancy, setExternalRedundancy, setHost, setHostname, setImplementation, setInetAddr, setPassword, setPort, setProfile, setReconnectWaitTime, setSrcStream, setStreamName, setUserName, updateUsageTrackerpublic static final Class<PushPublishRTMPProfileHandler> CLASS
public static final String CLASSNAME
protected String streamId
public PushPublishRTMPProfileHandler()
throws com.wowza.wms.server.LicensingException
com.wowza.wms.server.LicensingException - the licensing exceptionpublic String getDstAppInstanceName()
getDstAppInstanceName in class PushPublishRTMPpublic String getDstApplicationName()
getDstApplicationName in class PushPublishRTMPpublic String getLocalBindAddress()
public 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)
PushPublishBaseinit in interface IPushPublishinit in class PushPublishBaseappInstance2 - the app instancestreamName - the source stream nameprofileData - the profile paramsmaps - the map entry paramsdebug - stream debug flagpublic boolean isDebugLog()
isDebugLog in class PushPublishRTMPpublic boolean isDebugPackets()
isDebugPackets in class PushPublishRTMPpublic boolean isUsePingPong()
public void load(java.util.HashMap<String,String> dataMap)
PushPublishBaseload in class PushPublishBasedataMap - the data mappublic void setApplication(String dstApplicationNameIN)
dstApplicationNameIN - destination application namepublic void setConnectionFlashVersion(String connectionFlashVersion)
setConnectionFlashVersion in class PushPublishRTMPconnectionFlashVersion - Flash version used in connection metadatapublic void setConnectionInfoPageURL(String connectionPageURL)
connectionPageURL - Page URL used in connection metadatapublic void setConnectionInfoQueryString(String connectionQueryStr)
connectionQueryStr - connection query stringpublic void setConnectionInfoSwfURL(String connectionSwfURL)
connectionSwfURL - SWF URL used in connection metadatapublic void setConnectionTimeout(String connectionTimeout)
public void setConnectLastAttempt(String connectLastAttempt)
public void setConnectLastSuccess(String connectLastSuccess)
public void setDebugPackets(boolean debugPackets)
setDebugPackets in class PushPublishRTMPdebugPackets - the new debug packetspublic void setDebugPackets(String debugPacketsIn)
debugPacketsIn - the new debug packetspublic void setDstAppInstanceName(String dstAppInstanceName)
PushPublishRTMPsetDstAppInstanceName in class PushPublishRTMPdstAppInstanceName - destination appInstance namepublic void setDstApplicationName(String string)
setDstApplicationName in class PushPublishRTMPstring - the new dst application namepublic void setDstStreamName(String dstStreamNameIn)
PushPublishRTMPsetDstStreamName in interface IPushPublishsetDstStreamName in class PushPublishRTMPdstStreamNameIn - destination stream namepublic void setHowToPublish(String howToPublish)
PushPublishRTMPsetHowToPublish in class PushPublishRTMPhowToPublish - howToPublish stringpublic void setlocalBindAddress(String bindAddress)
bindAddress - the local bind address for the connectionpublic void setOnMetadataToSetDataFrame(String onMetadataToSetDataFrame)
public void setOriginalTimecodeThreshold(String originalTimecodeThreshold)
setOriginalTimecodeThreshold in class PushPublishRTMPoriginalTimecodeThreshold - the new original timecode thresholdpublic void setQueryString(String queryString)
PushPublishRTMPsetQueryString in class PushPublishRTMPpublic void setReconnectWaitTime(String reconnectWaitTime)
public void setRemoveDefaultAppInstance(String removeDefaultAppInstance)
removeDefaultAppInstance - the new removes the default app instancepublic void setResetOnTimecodeOutOfOrder(String resetOnTimecodeOutOfOrder)
resetOnTimecodeOutOfOrder - true if you wish push to reset if timecodes jump out of orderpublic void setSecureTokenSharedSecret(String secureTokenSharedSecret)
setSecureTokenSharedSecret in class PushPublishRTMPsecureTokenSharedSecret - SecureToken shared secretpublic void setSendFCAnnounce(String sendFCAnnounce)
public void setSendFCPublish(String sendFCPublish)
sendFCPublish - the new send fc publishpublic void setSendOnMetadata(String sendOnMetadata)
public void setSendOriginalTimecodes(String sendOriginalTimecodes)
sendOriginalTimecodes - the new send original timecodespublic void setSendReleaseStream(String sendReleaseStream)
sendReleaseStream - the new send release streampublic void setSendStreamCloseCommands(String sendStreamCloseCommands)
sendStreamCloseCommands - the new send stream close commandspublic void setSSL(String sslStr)
public void setStreamCloseWaitTime(String streamCloseWaitTime)
public void setTimecodesOutOfOrderThreshold(String timecodesOutOfOrderThreshold)
public void setUsePingPong(boolean usePingPong)
usePingPong - true to enable RTMP ping pong supportpublic void setUsePingPong(String usePingPong)
usePingPong - "true" to enable RTMP ping pong supportpublic void setValidationFrequency(String validationFrequency)
public void setWaitOnMetadataAudio(String waitOnMetadataAudio)
public void setWaitOnMetadataAudioDatarate(String waitOnMetadataAudioDatarate)
public void setWaitOnMetadataAvailable(String waitOnMetadataAvailable)
public void setWaitOnMetadataTimeout(String waitOnMetadataTimeout)
waitOnMetadataTimeout - the new timeout value (milliseconds-string)public void setWaitOnMetadataVideo(String waitOnMetadataVideo)
public void setWaitOnMetadataVideoDatarate(String waitOnMetadataVideoDatarate)