public class WZH264Broadcaster extends com.wowza.gocoder.sdk.support.encoder.H264Encoder implements WZBroadcastAPI.VideoBroadcaster
| Constructor and Description |
|---|
WZH264Broadcaster()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
WZBroadcastConfig |
getBroadcastConfig()
Returns the configuration settings for an active broadcast session.
|
WZStatus |
getBroadcasterStatus()
Returns the status for a broadcast component
|
WZStatus |
getStatus() |
WZMediaConfig |
getVideoSourceConfig()
Returns configuration information for the video source
|
boolean |
isVideoEnabled()
Indicates if a broadcast component is enabled or not
|
boolean |
isVideoPaused()
Indicates if a broadcast component is paused or not
|
WZStatus |
prepareForBroadcast(WZBroadcastConfig broadcastConfig)
This method is called to initialize each component of a broadcast.
|
void |
setVideoEnabled(boolean enabled)
Set or unset the flag indicating that a broadcast component is enabled
|
void |
setVideoPaused(boolean paused)
Set or unset the flag indicating that a broadcast component is in a paused state
|
WZStatus |
startBroadcasting()
This method is called on each broadcast component to begin a live streaming broadcast.
|
WZStatus |
stopBroadcasting()
This method is called on each broadcast component to end a live streaming broadcast.
|
changeAdaptiveBitrate, changeAdaptiveFramerate, encodeInputSurfaceContents, flushEncoder, getAdaptiveBitrate, getAdaptiveFramerate, getEglEnv, getEncoderConfig, getEncoderInputSurface, getMediaCodecName, getMediaFormatDescription, hasFrameRateIntervalElapsed, onEncodeInputSurfaceContents, onFrameSubmittedToEncoder, onFrameSubmittedToEncoder, run, runOnEncoderThread, setSharedContextpublic WZMediaConfig getVideoSourceConfig()
WZBroadcastAPI.VideoBroadcastergetVideoSourceConfig in interface WZBroadcastAPI.VideoBroadcasterpublic WZBroadcastConfig getBroadcastConfig()
WZBroadcastAPI.BroadcastergetBroadcastConfig in interface WZBroadcastAPI.Broadcasterpublic WZStatus getBroadcasterStatus()
WZBroadcastAPI.BroadcastergetBroadcasterStatus in interface WZBroadcastAPI.Broadcasterpublic WZStatus getStatus()
getStatus in interface WZBroadcastAPI.Broadcasterpublic boolean isVideoPaused()
WZBroadcastAPI.VideoBroadcasterisVideoPaused in interface WZBroadcastAPI.VideoBroadcasterpublic void setVideoPaused(boolean paused)
WZBroadcastAPI.VideoBroadcastersetVideoPaused in interface WZBroadcastAPI.VideoBroadcasterpaused - true if the video broadcast component should be placed in a paused state, false otherwisepublic boolean isVideoEnabled()
WZBroadcastAPI.VideoBroadcasterisVideoEnabled in interface WZBroadcastAPI.VideoBroadcasterpublic void setVideoEnabled(boolean enabled)
WZBroadcastAPI.VideoBroadcastersetVideoEnabled in interface WZBroadcastAPI.VideoBroadcasterenabled - true if the audio broadcast component should be enabled, false otherwisepublic WZStatus prepareForBroadcast(WZBroadcastConfig broadcastConfig)
WZBroadcastAPI.BroadcasterWZState.READY or WZState.IDLE
and indicate the error in the status as well.prepareForBroadcast in interface WZBroadcastAPI.BroadcasterbroadcastConfig - The broadcast configurationWZState.READYpublic WZStatus startBroadcasting()
WZBroadcastAPI.BroadcasterWZState.RUNNING or WZState.IDLE
and indicate the error in the status as wellstartBroadcasting in interface WZBroadcastAPI.BroadcasterWZState.RUNNINGpublic WZStatus stopBroadcasting()
WZBroadcastAPI.BroadcasterWZState.IDLEstopBroadcasting in interface WZBroadcastAPI.BroadcasterWZState.IDLE© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal