IPushPublishpublic class PushPublishShoutcast extends PushPublishBase
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
aacType |
|
protected int |
bitrate |
|
protected int |
channels |
|
static Class<PushPublishShoutcast> |
CLASS |
|
static String |
CLASSNAME |
|
protected boolean |
connected |
|
protected long |
connectionResetCount |
|
protected int |
connectionTimeout |
|
protected long |
connectLastAttempt |
|
protected long |
connectLastSuccess |
|
protected boolean |
doSendOnMetaData |
|
protected int |
frameLength |
|
protected int |
frequency |
|
protected boolean |
isReconnectorRunning |
|
protected java.util.List<IPushPublishShoutcastNotify> |
listeners |
|
protected Object |
lock |
|
protected int |
mpegLayer |
|
protected int |
mpegProtection |
|
protected int |
mpegVersion |
|
protected String |
shoutcastAIM |
|
protected String |
shoutcastBitrate |
|
protected IPushPublishShoutcastConnector |
shoutcastConnectorProvider |
|
protected String |
shoutcastContentType |
|
protected String |
shoutcastDescription |
|
protected String |
shoutcastGenre |
|
protected String |
shoutcastICQ |
|
protected String |
shoutcastIRC |
|
protected String |
shoutcastName |
|
protected String |
shoutcastPublic |
|
protected int |
shoutcastQosH |
|
protected int |
shoutcastQosL |
|
protected com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcastRunner |
shoutcastRunner |
|
protected boolean |
shoutcastStreamExpandMeta |
|
protected String |
shoutcastStreamTitleMetaName |
|
protected String |
shoutcastURL |
|
protected boolean |
tryConnect |
|
protected boolean |
waitOnMetadataAudio |
|
protected boolean |
waitOnMetadataAudioDatarate |
CONNECTED_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_UNKNOWNappInstance, 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| Constructor | Description |
|---|---|
PushPublishShoutcast() |
| Modifier and Type | Method | Description |
|---|---|---|
String |
aacChannel(int channel) |
|
int |
aacSamplerate(int freq) |
|
int |
aacsampleraterev(int freq) |
|
String |
aacType(int type) |
|
void |
addListener(IPushPublishShoutcastNotify listener) |
Add IPushPublishShoutcastNotify listener
|
protected void |
bumpReconnectWaitTime() |
Bump the reconnect wait time
|
void |
connect() |
|
byte[] |
createAACHeader(int aacProfile,
int frequency,
int channel,
int length) |
|
void |
disconnect() |
|
void |
disconnect(boolean hard) |
|
int |
getConnectedState() |
|
int |
getConnectionTimeout() |
Get the connection timeout (milliseconds)
|
String |
getContextStr() |
|
protected java.util.List<IPushPublishShoutcastNotify> |
getLocalListeners() |
Get a list of IPushPublishShoutcastNotify listeners
|
long |
getMessagesAttemptedCount() |
|
long |
getMessagesFailedCount() |
|
long |
getMessagesRetriedCount() |
|
protected int |
getReconnectDelay(long currTime) |
|
IPushPublishShoutcastConnector |
getShoutcasConnectorProvider() |
|
String |
getShoutcastStreamTitleMetaName() |
|
int |
mp3bitrate(int version,
int layer,
int bitrateidx) |
|
String |
mp3channel(int channel) |
|
int |
mp3samplerate(int version,
int samplerateidx) |
|
protected void |
notifyConnect(IPushPublishShoutcastConnector pushPublisherSession) |
|
protected void |
notifyConnectFailure(IPushPublishShoutcastConnector pushPublisherSession) |
|
protected void |
notifyConnectStart(IPushPublishShoutcastConnector pushPublisherSession) |
|
protected void |
notifyConnectSuccess(IPushPublishShoutcastConnector pushPublisherSession) |
|
protected void |
notifyDisconnect(IPushPublishShoutcastConnector pushPublisherSession) |
|
protected void |
notifyPushPublisherSessionCreate(IPushPublishShoutcastConnector pushPublisherSession) |
|
protected void |
notifyPushPublisherSessionDestroy(IPushPublishShoutcastConnector pushPublisherSession) |
|
void |
resetConnection() |
|
protected void |
resetWaitTime() |
|
protected String |
resolveHostName() |
|
void |
setConnectionTimeout(int connectionTimeout) |
Set the connection timeout (milliseconds)
|
void |
setShoutcastConnectorProvider(IPushPublishShoutcastConnector scConn) |
|
void |
setShoutcastExpandMetaData(String flag) |
|
void |
setShoutcastStreamAIM(String aim) |
|
void |
setShoutcastStreamBitrate(String bitrate) |
|
void |
setShoutcastStreamContentType(String contenttype) |
|
void |
setShoutcastStreamDescription(String desc) |
|
void |
setShoutcastStreamGenre(String genre) |
|
void |
setShoutcastStreamICQ(String icq) |
|
void |
setShoutcastStreamIRC(String irc) |
|
void |
setShoutcastStreamName(String name) |
|
void |
setShoutcastStreamPublic(String publicf) |
|
void |
setShoutcastStreamTitleMetaName(String metaName) |
|
void |
setShoutcastStreamURL(String url) |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, 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, 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, updateUsageTrackerprotected int aacType
protected int bitrate
protected int channels
public static final Class<PushPublishShoutcast> CLASS
public static final String CLASSNAME
protected boolean connected
protected long connectionResetCount
protected int connectionTimeout
protected long connectLastAttempt
protected long connectLastSuccess
protected boolean doSendOnMetaData
protected int frameLength
protected int frequency
protected boolean isReconnectorRunning
protected java.util.List<IPushPublishShoutcastNotify> listeners
protected Object lock
protected int mpegLayer
protected int mpegProtection
protected int mpegVersion
protected String shoutcastAIM
protected String shoutcastBitrate
protected IPushPublishShoutcastConnector shoutcastConnectorProvider
protected String shoutcastContentType
protected String shoutcastDescription
protected String shoutcastGenre
protected String shoutcastICQ
protected String shoutcastIRC
protected String shoutcastName
protected String shoutcastPublic
protected int shoutcastQosH
protected int shoutcastQosL
protected com.wowza.wms.pushpublish.protocol.shoutcast.PushPublishShoutcastRunner shoutcastRunner
protected boolean shoutcastStreamExpandMeta
protected String shoutcastStreamTitleMetaName
protected String shoutcastURL
protected boolean tryConnect
protected boolean waitOnMetadataAudio
protected boolean waitOnMetadataAudioDatarate
public PushPublishShoutcast()
throws com.wowza.wms.server.LicensingException
com.wowza.wms.server.LicensingExceptionpublic String aacChannel(int channel)
public int aacSamplerate(int freq)
public int aacsampleraterev(int freq)
public String aacType(int type)
public void addListener(IPushPublishShoutcastNotify listener)
listener - IPushPublishShoutcastNotify listenerprotected void bumpReconnectWaitTime()
public void connect()
public byte[] createAACHeader(int aacProfile,
int frequency,
int channel,
int length)
public void disconnect()
public void disconnect(boolean hard)
public int getConnectedState()
public int getConnectionTimeout()
public String getContextStr()
getContextStr in interface IPushPublishgetContextStr in class PushPublishBaseprotected java.util.List<IPushPublishShoutcastNotify> getLocalListeners()
public long getMessagesAttemptedCount()
public long getMessagesFailedCount()
public long getMessagesRetriedCount()
protected int getReconnectDelay(long currTime)
public IPushPublishShoutcastConnector getShoutcasConnectorProvider()
public String getShoutcastStreamTitleMetaName()
public int mp3bitrate(int version,
int layer,
int bitrateidx)
public String mp3channel(int channel)
public int mp3samplerate(int version,
int samplerateidx)
protected void notifyConnect(IPushPublishShoutcastConnector pushPublisherSession)
protected void notifyConnectFailure(IPushPublishShoutcastConnector pushPublisherSession)
protected void notifyConnectStart(IPushPublishShoutcastConnector pushPublisherSession)
protected void notifyConnectSuccess(IPushPublishShoutcastConnector pushPublisherSession)
protected void notifyDisconnect(IPushPublishShoutcastConnector pushPublisherSession)
protected void notifyPushPublisherSessionCreate(IPushPublishShoutcastConnector pushPublisherSession)
protected void notifyPushPublisherSessionDestroy(IPushPublishShoutcastConnector pushPublisherSession)
public void resetConnection()
protected void resetWaitTime()
protected String resolveHostName()
public void setConnectionTimeout(int connectionTimeout)
connectionTimeout - connection timeout (milliseconds)public void setShoutcastConnectorProvider(IPushPublishShoutcastConnector scConn)
public void setShoutcastExpandMetaData(String flag)
public void setShoutcastStreamAIM(String aim)
public void setShoutcastStreamBitrate(String bitrate)
public void setShoutcastStreamContentType(String contenttype)
public void setShoutcastStreamDescription(String desc)
public void setShoutcastStreamGenre(String genre)
public void setShoutcastStreamICQ(String icq)
public void setShoutcastStreamIRC(String irc)
public void setShoutcastStreamName(String name)
public void setShoutcastStreamPublic(String publicf)
public void setShoutcastStreamTitleMetaName(String metaName)
public void setShoutcastStreamURL(String url)