public class WOWZH264Broadcaster extends com.wowza.gocoder.sdk.support.encoder.H264Encoder implements WOWZBroadcastAPI.VideoBroadcaster
Constructor and Description |
---|
WOWZH264Broadcaster()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
WOWZBroadcastConfig |
getBroadcastConfig()
Gets the configuration settings for an active broadcast session.
|
WOWZStatus |
getBroadcasterStatus()
Gets the status for a broadcast component.
|
WOWZStatus |
getStatus() |
WOWZMediaConfig |
getVideoSourceConfig()
Gets configuration information for the video source.
|
boolean |
isVideoEnabled()
Checks whether a video broadcast component is enabled.
|
boolean |
isVideoPaused()
Checks whether a video broadcast component is paused.
|
WOWZStatus |
prepareForBroadcast(WOWZBroadcastConfig broadcastConfig)
Initializes each component of a broadcast.
|
void |
setVideoEnabled(boolean enabled)
Sets the flag indicating that a video broadcast component is enabled.
|
void |
setVideoPaused(boolean paused)
Sets the flag indicating that a video broadcast component is paused.
|
WOWZStatus |
startBroadcasting()
Called on each broadcast component to begin a live streaming broadcast.
|
WOWZStatus |
stopBroadcasting()
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 WOWZMediaConfig getVideoSourceConfig()
WOWZBroadcastAPI.VideoBroadcaster
getVideoSourceConfig
in interface WOWZBroadcastAPI.VideoBroadcaster
public WOWZBroadcastConfig getBroadcastConfig()
WOWZBroadcastAPI.Broadcaster
getBroadcastConfig
in interface WOWZBroadcastAPI.Broadcaster
public WOWZStatus getBroadcasterStatus()
WOWZBroadcastAPI.Broadcaster
getBroadcasterStatus
in interface WOWZBroadcastAPI.Broadcaster
public WOWZStatus getStatus()
getStatus
in interface WOWZBroadcastAPI.Broadcaster
public boolean isVideoPaused()
WOWZBroadcastAPI.VideoBroadcaster
isVideoPaused
in interface WOWZBroadcastAPI.VideoBroadcaster
public void setVideoPaused(boolean paused)
WOWZBroadcastAPI.VideoBroadcaster
setVideoPaused
in interface WOWZBroadcastAPI.VideoBroadcaster
paused
- True if the component should be paused; false otherwise.public boolean isVideoEnabled()
WOWZBroadcastAPI.VideoBroadcaster
isVideoEnabled
in interface WOWZBroadcastAPI.VideoBroadcaster
public void setVideoEnabled(boolean enabled)
WOWZBroadcastAPI.VideoBroadcaster
setVideoEnabled
in interface WOWZBroadcastAPI.VideoBroadcaster
enabled
- True if the component should be enabled; false otherwise.public WOWZStatus prepareForBroadcast(WOWZBroadcastConfig broadcastConfig)
WOWZBroadcastAPI.Broadcaster
WOWZState.READY
or WOWZState.IDLE
and also indicate the error in the status.prepareForBroadcast
in interface WOWZBroadcastAPI.Broadcaster
broadcastConfig
- The broadcast configuration.WOWZState.READY
.public WOWZStatus startBroadcasting()
WOWZBroadcastAPI.Broadcaster
WOWZState.RUNNING
or WOWZState.IDLE
and also indicate the error in the status.startBroadcasting
in interface WOWZBroadcastAPI.Broadcaster
WOWZState.RUNNING
.public WOWZStatus stopBroadcasting()
WOWZBroadcastAPI.Broadcaster
WOWZState.IDLE
.stopBroadcasting
in interface WOWZBroadcastAPI.Broadcaster
WOWZState.IDLE
.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal