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, setSharedContext
public WZMediaConfig getVideoSourceConfig()
WZBroadcastAPI.VideoBroadcaster
getVideoSourceConfig
in interface WZBroadcastAPI.VideoBroadcaster
public WZBroadcastConfig getBroadcastConfig()
WZBroadcastAPI.Broadcaster
getBroadcastConfig
in interface WZBroadcastAPI.Broadcaster
public WZStatus getBroadcasterStatus()
WZBroadcastAPI.Broadcaster
getBroadcasterStatus
in interface WZBroadcastAPI.Broadcaster
public WZStatus getStatus()
getStatus
in interface WZBroadcastAPI.Broadcaster
public boolean isVideoPaused()
WZBroadcastAPI.VideoBroadcaster
isVideoPaused
in interface WZBroadcastAPI.VideoBroadcaster
public void setVideoPaused(boolean paused)
WZBroadcastAPI.VideoBroadcaster
setVideoPaused
in interface WZBroadcastAPI.VideoBroadcaster
paused
- true if the video broadcast component should be placed in a paused state, false otherwisepublic boolean isVideoEnabled()
WZBroadcastAPI.VideoBroadcaster
isVideoEnabled
in interface WZBroadcastAPI.VideoBroadcaster
public void setVideoEnabled(boolean enabled)
WZBroadcastAPI.VideoBroadcaster
setVideoEnabled
in interface WZBroadcastAPI.VideoBroadcaster
enabled
- true if the audio broadcast component should be enabled, false otherwisepublic WZStatus prepareForBroadcast(WZBroadcastConfig broadcastConfig)
WZBroadcastAPI.Broadcaster
WZState.READY
or WZState.IDLE
and indicate the error in the status as well.prepareForBroadcast
in interface WZBroadcastAPI.Broadcaster
broadcastConfig
- The broadcast configurationWZState.READY
public WZStatus startBroadcasting()
WZBroadcastAPI.Broadcaster
WZState.RUNNING
or WZState.IDLE
and indicate the error in the status as wellstartBroadcasting
in interface WZBroadcastAPI.Broadcaster
WZState.RUNNING
public WZStatus stopBroadcasting()
WZBroadcastAPI.Broadcaster
WZState.IDLE
stopBroadcasting
in interface WZBroadcastAPI.Broadcaster
WZState.IDLE
© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal