public class WOWZBroadcast
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
LOG_STAT_SAMPLES
Set to true to log detailed information about the network performance samples collected during a broadcast.
|
static boolean |
LOG_STAT_SUMMARY
Set to true to log summary information at the end of a broadcast.
|
static boolean |
LOG_WOWZ_MESSAGES
Deprecated.
Use
setLogLevel(int) instead. |
Constructor and Description |
---|
WOWZBroadcast() |
Modifier and Type | Method and Description |
---|---|
WOWZStatus |
endBroadcast()
Stops the active live streaming broadcast.
|
WOWZStatus |
endBroadcast(WOWZStatusCallback statusCallback)
Stops the active live streaming broadcast.
|
WOWZBroadcastConfig |
getBroadcastConfig()
Gets the active broadcast configuration.
|
WOWZStreamingStat |
getBroadcastStatistics() |
WOWZStatus |
getBroadcastStatus()
Deprecated.
Use
getStatus() instead. |
int |
getLogLevel() |
WOWZStatus |
getStatus()
Gets the active broadcast status.
|
WOWZStatusCallback |
getStatusCallback()
Gets the broadcast status callback.
|
boolean |
isABRActivated() |
void |
registerAdaptiveBitRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
Registers a WOWZBroadcastAPI.AdaptiveChangeListener to get callbacks on the adaptive bitrate mechanism.
|
void |
registerAdaptiveFrameRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
Registers a WOWZBroadcastAPI.AdaptiveChangeListener to get callbacks on the adaptive bitrate mechanism.
|
void |
registerDataEventListener(java.lang.String eventName,
WOWZDataEvent.EventListener eventListener)
Registers a data event listener to be invoked upon receiving a specified data event.
|
void |
sendDataEvent(WOWZDataScope eventScope,
java.lang.String eventName)
Sends a data event with the specified scope, name, and parameters.
|
void |
sendDataEvent(WOWZDataScope eventScope,
java.lang.String eventName,
WOWZDataEvent.ResultCallback resultCallback)
Sends a data event with the specified scope, name, and result callback.
|
void |
sendDataEvent(WOWZDataScope eventScope,
java.lang.String eventName,
WOWZDataMap eventParams)
Sends a data event with the specified scope, name, and parameters.
|
void |
sendDataEvent(WOWZDataScope eventScope,
java.lang.String eventName,
WOWZDataMap eventParams,
WOWZDataEvent.ResultCallback resultCallback)
Sends a data event with the specified scope, name, parameters, and result callback.
|
void |
sendPingRequest(WOWZDataEvent.ResultCallback resultCallback)
Pings the server and returns the result to the specified callback.
|
void |
setABRActivated(boolean abrActive) |
void |
setLogLevel(int logLevel) |
void |
setStatusCallback(WOWZStatusCallback statusCallback)
Sets the broadcast status callback.
|
WOWZStatus |
startBroadcast(WOWZBroadcastConfig broadcastConfig)
Starts a live streaming broadcast using the specified configuration.
|
WOWZStatus |
startBroadcast(WOWZBroadcastConfig broadcastConfig,
WOWZStatusCallback statusCallback)
Starts a live streaming broadcast using the specified configuration.
|
void |
unregisterAdaptiveBitRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
Removes an adaptive bitrate listener.
|
void |
unregisterAdaptiveFrameRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
Removes an adaptive framerate listener.
|
void |
unregisterDataEventListener(java.lang.String eventName,
WOWZDataEvent.EventListener eventListener)
Unregisters a data event listener.
|
public static boolean LOG_STAT_SAMPLES
public static boolean LOG_STAT_SUMMARY
public static boolean LOG_WOWZ_MESSAGES
setLogLevel(int)
instead.public WOWZStatus startBroadcast(WOWZBroadcastConfig broadcastConfig, WOWZStatusCallback statusCallback)
broadcastConfig
- The configuration settings to use.statusCallback
- An instance of the WOWZStatusCallback
interface that will receive broadcast status information.public WOWZStatus startBroadcast(WOWZBroadcastConfig broadcastConfig)
broadcastConfig
- The configuration settings to use.public WOWZStatus endBroadcast()
public WOWZStatus endBroadcast(WOWZStatusCallback statusCallback)
statusCallback
- An instance of the WOWZStatusCallback
interface that will receive broadcast status information.public WOWZStreamingStat getBroadcastStatistics()
public boolean isABRActivated()
public void setABRActivated(boolean abrActive)
public void registerAdaptiveFrameRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
listener
- The WOWZBroadcastAPI.AdaptiveChangeListener listener that will handle frame-rate modifications.public void registerAdaptiveBitRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
listener
- The WOWZBroadcastAPI.AdaptiveChangeListener listener that will handle bitrate modifications.public void unregisterAdaptiveBitRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
listener
- The listener to remove.public void unregisterAdaptiveFrameRateListener(WOWZBroadcastAPI.AdaptiveChangeListener listener)
listener
- The listener to remove.public WOWZStatusCallback getStatusCallback()
public void setStatusCallback(WOWZStatusCallback statusCallback)
statusCallback
- The status callback.public void setLogLevel(int logLevel)
public int getLogLevel()
public WOWZStatus getStatus()
public WOWZStatus getBroadcastStatus()
getStatus()
instead.public WOWZBroadcastConfig getBroadcastConfig()
public void sendDataEvent(WOWZDataScope eventScope, java.lang.String eventName, WOWZDataMap eventParams, WOWZDataEvent.ResultCallback resultCallback)
eventScope
- One of WOWZDataScope.STREAM
or WOWZDataScope.MODULE
, the scope to which the event applies.
If eventScope is WOWZDataScope#STREAM, the resultCallback parameter must be null.eventName
- The name of the event to send.eventParams
- A name/value pair hash map of the event's parameters.resultCallback
- An implementation of the WOWZDataEvent.ResultCallback
interface
whose WOWZDataEvent.ResultCallback#onWZDataEventResult
method
will be invoked upon receiving a resulting response from the server.public void sendDataEvent(WOWZDataScope eventScope, java.lang.String eventName, WOWZDataEvent.ResultCallback resultCallback)
eventScope
- One of WOWZDataScope.STREAM
or WOWZDataScope.MODULE
, the scope to which the event applies.
If eventScope is WOWZDataScope#STREAM, the resultCallback parameter must be null.eventName
- The name of the event to send.resultCallback
- An implementation of the WOWZDataEvent.ResultCallback
interface
whose WOWZDataEvent.ResultCallback#onWZDataEventResult
method
will be invoked upon receiving a resulting response from the server.public void sendDataEvent(WOWZDataScope eventScope, java.lang.String eventName, WOWZDataMap eventParams)
eventScope
- One of WOWZDataScope.STREAM
or WOWZDataScope.MODULE
, the scope to which the event applies.eventName
- The name of the event to send.eventParams
- A name/value pair hash map of the event's parameters.public void sendDataEvent(WOWZDataScope eventScope, java.lang.String eventName)
eventScope
- One of WOWZDataScope.STREAM
or WOWZDataScope.MODULE
, the scope to which the event applies.eventName
- The name of the event.public void registerDataEventListener(java.lang.String eventName, WOWZDataEvent.EventListener eventListener)
eventName
- The name of the event.eventListener
- A callback instance to be invoked when the event is received.public void unregisterDataEventListener(java.lang.String eventName, WOWZDataEvent.EventListener eventListener)
eventName
- The name of the event.eventListener
- A previously registered data event listener.public void sendPingRequest(WOWZDataEvent.ResultCallback resultCallback)
resultCallback
- A callback to be invoked with the results of the request. The responseTime property of the result parameters passed to the callback will contain the response time, in milliseconds.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal