Class PushPublishShoutcast
- Object
- 
- com.wowza.wms.pushpublish.model.PushPublishBase
- 
- com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcast
 
 
- 
- All Implemented Interfaces:
- IPushPublish
 
 public class PushPublishShoutcast extends PushPublishBase 
- 
- 
Field SummaryFields Modifier and Type Field Description protected intaacTypeprotected intbitrateprotected intchannelsstatic Class<PushPublishShoutcast>CLASSstatic StringCLASSNAMEprotected booleanconnectedprotected longconnectionResetCountprotected intconnectionTimeoutprotected longconnectLastAttemptprotected longconnectLastSuccessprotected booleandoSendOnMetaDataprotected intframeLengthprotected intfrequencyprotected booleanisReconnectorRunningprotected java.util.List<IPushPublishShoutcastNotify>listenersprotected Objectlockprotected intmpegLayerprotected intmpegProtectionprotected intmpegVersionprotected StringshoutcastAIMprotected StringshoutcastBitrateprotected IPushPublishShoutcastConnectorshoutcastConnectorProviderprotected StringshoutcastContentTypeprotected StringshoutcastDescriptionprotected StringshoutcastGenreprotected StringshoutcastICQprotected StringshoutcastIRCprotected StringshoutcastNameprotected StringshoutcastPublicprotected intshoutcastQosHprotected intshoutcastQosLprotected com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcastRunnershoutcastRunnerprotected booleanshoutcastStreamExpandMetaprotected StringshoutcastStreamTitleMetaNameprotected StringshoutcastURLprotected booleantryConnectprotected booleanwaitOnMetadataAudioprotected booleanwaitOnMetadataAudioDatarate- 
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 PushPublishShoutcast()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringaacChannel(int channel)intaacSamplerate(int freq)intaacsampleraterev(int freq)StringaacType(int type)voidaddListener(IPushPublishShoutcastNotify listener)Add IPushPublishShoutcastNotify listenerprotected voidbumpReconnectWaitTime()Bump the reconnect wait timevoidconnect()byte[]createAACHeader(int aacProfile, int frequency, int channel, int length)voiddisconnect()voiddisconnect(boolean hard)intgetConnectedState()intgetConnectionTimeout()Get the connection timeout (milliseconds)StringgetContextStr()protected java.util.List<IPushPublishShoutcastNotify>getLocalListeners()Get a list of IPushPublishShoutcastNotify listenerslonggetMessagesAttemptedCount()longgetMessagesFailedCount()longgetMessagesRetriedCount()protected intgetReconnectDelay(long currTime)IPushPublishShoutcastConnectorgetShoutcasConnectorProvider()StringgetShoutcastStreamTitleMetaName()intmp3bitrate(int version, int layer, int bitrateidx)Stringmp3channel(int channel)intmp3samplerate(int version, int samplerateidx)protected voidnotifyConnect(IPushPublishShoutcastConnector pushPublisherSession)protected voidnotifyConnectFailure(IPushPublishShoutcastConnector pushPublisherSession)protected voidnotifyConnectStart(IPushPublishShoutcastConnector pushPublisherSession)protected voidnotifyConnectSuccess(IPushPublishShoutcastConnector pushPublisherSession)protected voidnotifyDisconnect(IPushPublishShoutcastConnector pushPublisherSession)protected voidnotifyPushPublisherSessionCreate(IPushPublishShoutcastConnector pushPublisherSession)protected voidnotifyPushPublisherSessionDestroy(IPushPublishShoutcastConnector pushPublisherSession)voidresetConnection()protected voidresetWaitTime()voidsetConnectionTimeout(int connectionTimeout)Set the connection timeout (milliseconds)voidsetShoutcastConnectorProvider(IPushPublishShoutcastConnector scConn)voidsetShoutcastExpandMetaData(String flag)voidsetShoutcastStreamAIM(String aim)voidsetShoutcastStreamBitrate(String bitrate)voidsetShoutcastStreamContentType(String contenttype)voidsetShoutcastStreamDescription(String desc)voidsetShoutcastStreamGenre(String genre)voidsetShoutcastStreamICQ(String icq)voidsetShoutcastStreamIRC(String irc)voidsetShoutcastStreamName(String name)voidsetShoutcastStreamPublic(String publicf)voidsetShoutcastStreamTitleMetaName(String metaName)voidsetShoutcastStreamURL(String url)- 
Methods inherited from class com.wowza.wms.pushpublish.model.PushPublishBaseadd, addIOPerformance2, clearLoggingValues, createPushPublishSession, getAppInstance, getBandwidth, getBaseParams, getDestinationID, getDestinationName, getDestinationServer, getDstStreamName, getEntryName, getHostname, getImplementation, getInetAddr, getMap, getMessagesOutBytes, getMessagesOutCount, getPassword, getPlaybackHostname, getPort, getProfile, getProperties, getPushPublishType, getReconnectWaitTime, getSrcStream, getSrcStreamName, getUserName, getWowzaStreamingEngineVersionStr, incrementMessagesOut, init, isAdaptiveStreaming, isDebugLog, isExternalRedundancy, load, logDebug, logError, logError, logError, logInfo, logWarn, resolveHostName, setAdaptiveStreaming, setAdaptiveStreaming, setAppInstance, setDebugLog, setDestinationName, setDestinationServer, setDestinationServer, setDstStreamName, setEntryName, setExternalRedundancy, setExternalRedundancy, setHost, setHostname, setImplementation, setInetAddr, setPassword, setPlaybackHostname, setPort, setPort, setProfile, setReconnectWaitTime, setSrcStream, setSrcStreamName, setStreamName, setUserName, updateLoggingValues, updateUsageTracker
 
- 
 
- 
- 
- 
Field Detail- 
CLASSpublic static final Class<PushPublishShoutcast> CLASS 
 - 
CLASSNAMEpublic static final String CLASSNAME - See Also:
- Constant Field Values
 
 - 
shoutcastQosHprotected int shoutcastQosH 
 - 
shoutcastQosLprotected int shoutcastQosL 
 - 
shoutcastNameprotected String shoutcastName 
 - 
shoutcastURLprotected String shoutcastURL 
 - 
shoutcastIRCprotected String shoutcastIRC 
 - 
shoutcastAIMprotected String shoutcastAIM 
 - 
shoutcastICQprotected String shoutcastICQ 
 - 
shoutcastPublicprotected String shoutcastPublic 
 - 
shoutcastGenreprotected String shoutcastGenre 
 - 
shoutcastBitrateprotected String shoutcastBitrate 
 - 
shoutcastContentTypeprotected String shoutcastContentType 
 - 
shoutcastDescriptionprotected String shoutcastDescription 
 - 
shoutcastStreamTitleMetaNameprotected String shoutcastStreamTitleMetaName 
 - 
shoutcastStreamExpandMetaprotected boolean shoutcastStreamExpandMeta 
 - 
mpegVersionprotected int mpegVersion 
 - 
mpegLayerprotected int mpegLayer 
 - 
mpegProtectionprotected int mpegProtection 
 - 
bitrateprotected int bitrate 
 - 
channelsprotected int channels 
 - 
frequencyprotected int frequency 
 - 
frameLengthprotected int frameLength 
 - 
aacTypeprotected int aacType 
 - 
shoutcastConnectorProviderprotected IPushPublishShoutcastConnector shoutcastConnectorProvider 
 - 
shoutcastRunnerprotected com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcastRunner shoutcastRunner 
 - 
listenersprotected java.util.List<IPushPublishShoutcastNotify> listeners 
 - 
connectLastAttemptprotected long connectLastAttempt 
 - 
connectLastSuccessprotected long connectLastSuccess 
 - 
connectionResetCountprotected long connectionResetCount 
 - 
connectionTimeoutprotected int connectionTimeout 
 - 
connectedprotected boolean connected 
 - 
doSendOnMetaDataprotected boolean doSendOnMetaData 
 - 
waitOnMetadataAudioprotected boolean waitOnMetadataAudio 
 - 
waitOnMetadataAudioDatarateprotected boolean waitOnMetadataAudioDatarate 
 - 
lockprotected Object lock 
 - 
isReconnectorRunningprotected boolean isReconnectorRunning 
 - 
tryConnectprotected boolean tryConnect 
 
- 
 - 
Method Detail- 
setShoutcastConnectorProviderpublic void setShoutcastConnectorProvider(IPushPublishShoutcastConnector scConn) 
 - 
getShoutcasConnectorProviderpublic IPushPublishShoutcastConnector getShoutcasConnectorProvider() 
 - 
connectpublic void connect() 
 - 
disconnectpublic void disconnect() 
 - 
disconnectpublic void disconnect(boolean hard) 
 - 
resetConnectionpublic void resetConnection() 
 - 
getConnectedStatepublic int getConnectedState() 
 - 
getMessagesAttemptedCountpublic long getMessagesAttemptedCount() 
 - 
getMessagesRetriedCountpublic long getMessagesRetriedCount() 
 - 
getMessagesFailedCountpublic long getMessagesFailedCount() 
 - 
getReconnectDelayprotected int getReconnectDelay(long currTime) 
 - 
resetWaitTimeprotected void resetWaitTime() 
 - 
bumpReconnectWaitTimeprotected void bumpReconnectWaitTime() Bump the reconnect wait time
 - 
getConnectionTimeoutpublic int getConnectionTimeout() Get the connection timeout (milliseconds)- Returns:
- connection timeout (milliseconds)
 
 - 
setConnectionTimeoutpublic void setConnectionTimeout(int connectionTimeout) Set the connection timeout (milliseconds)- Parameters:
- connectionTimeout- connection timeout (milliseconds)
 
 - 
getLocalListenersprotected java.util.List<IPushPublishShoutcastNotify> getLocalListeners() Get a list of IPushPublishShoutcastNotify listeners- Returns:
- list of IPushPublishShoutcastNotify listeners
 
 - 
addListenerpublic void addListener(IPushPublishShoutcastNotify listener) Add IPushPublishShoutcastNotify listener- Parameters:
- listener- IPushPublishShoutcastNotify listener
 
 - 
notifyConnectprotected void notifyConnect(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
notifyConnectStartprotected void notifyConnectStart(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
notifyConnectSuccessprotected void notifyConnectSuccess(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
notifyConnectFailureprotected void notifyConnectFailure(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
notifyPushPublisherSessionCreateprotected void notifyPushPublisherSessionCreate(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
notifyPushPublisherSessionDestroyprotected void notifyPushPublisherSessionDestroy(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
notifyDisconnectprotected void notifyDisconnect(IPushPublishShoutcastConnector pushPublisherSession) 
 - 
aacChannelpublic String aacChannel(int channel) 
 - 
aacSampleratepublic int aacSamplerate(int freq) 
 - 
aacsampleraterevpublic int aacsampleraterev(int freq) 
 - 
mp3bitratepublic int mp3bitrate(int version, int layer, int bitrateidx)
 - 
mp3sampleratepublic int mp3samplerate(int version, int samplerateidx)
 - 
mp3channelpublic String mp3channel(int channel) 
 - 
aacTypepublic String aacType(int type) 
 - 
createAACHeaderpublic byte[] createAACHeader(int aacProfile, int frequency, int channel, int length)
 - 
setShoutcastStreamDescriptionpublic void setShoutcastStreamDescription(String desc) 
 - 
setShoutcastStreamNamepublic void setShoutcastStreamName(String name) 
 - 
setShoutcastStreamURLpublic void setShoutcastStreamURL(String url) 
 - 
setShoutcastStreamIRCpublic void setShoutcastStreamIRC(String irc) 
 - 
setShoutcastStreamAIMpublic void setShoutcastStreamAIM(String aim) 
 - 
setShoutcastStreamICQpublic void setShoutcastStreamICQ(String icq) 
 - 
setShoutcastStreamPublicpublic void setShoutcastStreamPublic(String publicf) 
 - 
setShoutcastStreamGenrepublic void setShoutcastStreamGenre(String genre) 
 - 
setShoutcastStreamBitratepublic void setShoutcastStreamBitrate(String bitrate) 
 - 
setShoutcastStreamContentTypepublic void setShoutcastStreamContentType(String contenttype) 
 - 
setShoutcastStreamTitleMetaNamepublic void setShoutcastStreamTitleMetaName(String metaName) 
 - 
getShoutcastStreamTitleMetaNamepublic String getShoutcastStreamTitleMetaName() 
 - 
setShoutcastExpandMetaDatapublic void setShoutcastExpandMetaData(String flag) 
 - 
getContextStrpublic String getContextStr() - Specified by:
- getContextStrin interface- IPushPublish
- Specified by:
- getContextStrin class- PushPublishBase
 
 
- 
 
-