Class PushPublishShoutcast
Object
com.wowza.wms.pushpublish.model.PushPublishBase
com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcast
- All Implemented Interfaces:
IPushPublish
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intstatic final Class<PushPublishShoutcast>static final Stringprotected booleanprotected longprotected intprotected longprotected longprotected booleanprotected intprotected intprotected booleanprotected List<IPushPublishShoutcastNotify>protected Objectprotected intprotected intprotected intprotected Stringprotected Stringprotected IPushPublishShoutcastConnectorprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected Stringprotected intprotected intprotected com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcastRunnerprotected booleanprotected Stringprotected Stringprotected booleanprotected booleanprotected booleanFields 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 TypeMethodDescriptionaacChannel(int channel) intaacSamplerate(int freq) intaacsampleraterev(int freq) aacType(int type) voidaddListener(IPushPublishShoutcastNotify listener) Add IPushPublishShoutcastNotify listenerprotected voidBump the reconnect wait timevoidconnect()byte[]createAACHeader(int aacProfile, int frequency, int channel, int length) voidvoiddisconnect(boolean hard) intintGet the connection timeout (milliseconds)protected List<IPushPublishShoutcastNotify>Get a list of IPushPublishShoutcastNotify listenerslonglonglongprotected intgetReconnectDelay(long currTime) intmp3bitrate(int version, int layer, int bitrateidx) mp3channel(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) voidprotected voidvoidsetConnectionTimeout(int connectionTimeout) Set the connection timeout (milliseconds)voidvoidvoidvoidsetShoutcastStreamBitrate(String bitrate) voidsetShoutcastStreamContentType(String contenttype) voidvoidsetShoutcastStreamGenre(String genre) voidvoidvoidsetShoutcastStreamName(String name) voidsetShoutcastStreamPublic(String publicf) voidsetShoutcastStreamTitleMetaName(String metaName) voidMethods inherited from class com.wowza.wms.pushpublish.model.PushPublishBase
add, 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 Details
-
CLASS
-
CLASSNAME
- See Also:
-
shoutcastQosH
protected int shoutcastQosH -
shoutcastQosL
protected int shoutcastQosL -
shoutcastName
-
shoutcastURL
-
shoutcastIRC
-
shoutcastAIM
-
shoutcastICQ
-
shoutcastPublic
-
shoutcastGenre
-
shoutcastBitrate
-
shoutcastContentType
-
shoutcastDescription
-
shoutcastStreamTitleMetaName
-
shoutcastStreamExpandMeta
protected boolean shoutcastStreamExpandMeta -
mpegVersion
protected int mpegVersion -
mpegLayer
protected int mpegLayer -
mpegProtection
protected int mpegProtection -
bitrate
protected int bitrate -
channels
protected int channels -
frequency
protected int frequency -
frameLength
protected int frameLength -
aacType
protected int aacType -
shoutcastConnectorProvider
-
shoutcastRunner
protected com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcastRunner shoutcastRunner -
listeners
-
connectLastAttempt
protected long connectLastAttempt -
connectLastSuccess
protected long connectLastSuccess -
connectionResetCount
protected long connectionResetCount -
connectionTimeout
protected int connectionTimeout -
connected
protected boolean connected -
doSendOnMetaData
protected boolean doSendOnMetaData -
waitOnMetadataAudio
protected boolean waitOnMetadataAudio -
waitOnMetadataAudioDatarate
protected boolean waitOnMetadataAudioDatarate -
lock
-
isReconnectorRunning
protected boolean isReconnectorRunning -
tryConnect
protected boolean tryConnect
-
-
Constructor Details
-
PushPublishShoutcast
public PushPublishShoutcast() throws com.wowza.wms.server.LicensingException- Throws:
com.wowza.wms.server.LicensingException
-
-
Method Details
-
setShoutcastConnectorProvider
-
getShoutcasConnectorProvider
-
connect
public void connect() -
disconnect
public void disconnect() -
disconnect
public void disconnect(boolean hard) -
resetConnection
public void resetConnection() -
getConnectedState
public int getConnectedState() -
getMessagesAttemptedCount
public long getMessagesAttemptedCount() -
getMessagesRetriedCount
public long getMessagesRetriedCount() -
getMessagesFailedCount
public long getMessagesFailedCount() -
getReconnectDelay
protected int getReconnectDelay(long currTime) -
resetWaitTime
protected void resetWaitTime() -
bumpReconnectWaitTime
protected void bumpReconnectWaitTime()Bump the reconnect wait time -
getConnectionTimeout
public int getConnectionTimeout()Get the connection timeout (milliseconds)- Returns:
- connection timeout (milliseconds)
-
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout) Set the connection timeout (milliseconds)- Parameters:
connectionTimeout- connection timeout (milliseconds)
-
getLocalListeners
Get a list of IPushPublishShoutcastNotify listeners- Returns:
- list of IPushPublishShoutcastNotify listeners
-
addListener
Add IPushPublishShoutcastNotify listener- Parameters:
listener- IPushPublishShoutcastNotify listener
-
notifyConnect
-
notifyConnectStart
-
notifyConnectSuccess
-
notifyConnectFailure
-
notifyPushPublisherSessionCreate
protected void notifyPushPublisherSessionCreate(IPushPublishShoutcastConnector pushPublisherSession) -
notifyPushPublisherSessionDestroy
protected void notifyPushPublisherSessionDestroy(IPushPublishShoutcastConnector pushPublisherSession) -
notifyDisconnect
-
aacChannel
-
aacSamplerate
public int aacSamplerate(int freq) -
aacsampleraterev
public int aacsampleraterev(int freq) -
mp3bitrate
public int mp3bitrate(int version, int layer, int bitrateidx) -
mp3samplerate
public int mp3samplerate(int version, int samplerateidx) -
mp3channel
-
aacType
-
createAACHeader
public byte[] createAACHeader(int aacProfile, int frequency, int channel, int length) -
setShoutcastStreamDescription
-
setShoutcastStreamName
-
setShoutcastStreamURL
-
setShoutcastStreamIRC
-
setShoutcastStreamAIM
-
setShoutcastStreamICQ
-
setShoutcastStreamPublic
-
setShoutcastStreamGenre
-
setShoutcastStreamBitrate
-
setShoutcastStreamContentType
-
setShoutcastStreamTitleMetaName
-
getShoutcastStreamTitleMetaName
-
setShoutcastExpandMetaData
-
getContextStr
- Specified by:
getContextStrin interfaceIPushPublish- Specified by:
getContextStrin classPushPublishBase
-