public class WZBroadcastConfig extends WZStreamConfig
WZBroadcastConfig
class provides configuration properties for a live streaming broadcastDEFAULT_APP, DEFAULT_PORT, DEFAULT_STREAM
ALWAYS_LANDSCAPE, ALWAYS_PORTRAIT, AUDIO_CHANNELS_MONO, AUDIO_CHANNELS_STEREO, CROP_TO_FRAME, DEFAULT_AUDIO_BITRATE, DEFAULT_AUDIO_SAMPLE_RATE, DEFAULT_SCALE_MODE, DEFAULT_VIDEO_BITRATE, DEFAULT_VIDEO_BITRATE_SCALING_FACTOR, DEFAULT_VIDEO_FRAME_BUFFER_MULTIPLIER, DEFAULT_VIDEO_FRAME_HEIGHT, DEFAULT_VIDEO_FRAME_RATE, DEFAULT_VIDEO_FRAME_SIZE, DEFAULT_VIDEO_FRAME_SKIP_COUNT, DEFAULT_VIDEO_FRAME_WIDTH, DEFAULT_VIDEO_KEYFRAME_INTERVAL, FILL_FRAME, FILL_VIEW, FRAME_SIZE_1280x720, FRAME_SIZE_1440x1080, FRAME_SIZE_176x144, FRAME_SIZE_1920x1080, FRAME_SIZE_320x240, FRAME_SIZE_352x288, FRAME_SIZE_3840x2160, FRAME_SIZE_640x480, FRAME_SIZE_960x540, ORIENTATION_LANDSCAPE, ORIENTATION_LANDSCAPE_INVERTED, ORIENTATION_PORTRAIT, ORIENTATION_PORTRAIT_INVERTED, PRESET_CONFIGS, RESIZE_TO_ASPECT, SAME_AS_SOURCE, SUPPORTED_AUDIO_SAMPLE_RATES
Constructor and Description |
---|
WZBroadcastConfig()
The default constructor
|
WZBroadcastConfig(WZBroadcastConfig other)
Construct a new instance using the property values from the specified instance
|
WZBroadcastConfig(WZMediaConfig preset)
Construct a new instance using the property values from the specified preset configuration
|
Modifier and Type | Method and Description |
---|---|
WZBroadcastAPI.AudioBroadcaster |
getAudioBroadcaster()
Return the audio broadcaster
|
WZSinkAPI.AudioSink[] |
getAudioSinks()
Return the broadcast audio sinks for Wowza Stream Engine or Wowza Streaming Cloud
|
WZBroadcastAPI.BroadcastErrorCallback |
getErrorCallback()
Return the broadcast error callback to be invoked when an error occurs during a broadcast
|
int |
getOrientationBehavior()
Returns value of the broadcast orientation settings that specifies the orientation in which video is streamed
|
com.wowza.gocoder.sdk.support.monitor.StreamingMonitor |
getStreamingMonitor() |
WZBroadcastAPI.VideoBroadcaster |
getVideoBroadcaster()
Return the video broadcaster.
|
WZSinkAPI.VideoSink[] |
getVideoSinks()
Return the broadcast video sinks for Wowza Stream Engine or Wowza Streaming Cloud
|
WZMediaConfig |
getVideoSourceConfig()
Returns configuration information for the video source
|
void |
registerAudioSink(WZSinkAPI.AudioSink AudioSink) |
void |
registerVideoSink(WZSinkAPI.VideoSink videoSink) |
void |
set(WZBroadcastConfig other)
Update the property values of this instance with the property values from the specified instance
|
void |
set(WZMediaConfig preset)
Update the property values of this instance with the property values from the specified preset configuration
|
void |
setAudioBroadcaster(WZBroadcastAPI.AudioBroadcaster audioBroadcaster)
Set the audio broadcaster
|
void |
setOrientationBehavior(int broadcastOrientation)
Sets the value of the broadcast orientation setting that specifies the orientation in which video is streamed
|
void |
setVideoBroadcaster(WZBroadcastAPI.VideoBroadcaster videoBroadcaster)
Set the video broadcaster
|
void |
setVideoSourceConfig(WZMediaConfig videoSourceConfig)
Specify configuration information for the video source
|
WZDataMap |
toDataMap(WZDataMap dataMap)
Returns a
WZDataMap containing the configuration properties |
String |
toString() |
void |
unregisterAudioSink(WZSinkAPI.AudioSink AudioSink) |
void |
unregisterVideoSink(WZSinkAPI.VideoSink videoSink) |
WZStreamingError |
validateForBroadcast()
Validates that all of the the required properties have been specified for a broadcast.
|
getApplicationName, getConnectionParameters, getConnectionURL, getHostAddress, getLogLevel, getPassword, getPortNumber, getStreamMetadata, getStreamName, getUsername, set, setApplicationName, setConnectionParameters, setHostAddress, setLogLevel, setPassword, setPortNumber, setStreamMetadata, setStreamName, setUsername, validateForPlayback
bitrateLabel, compareTo, equals, fromFrameSizes, getAudioBitRate, getAudioChannels, getAudioSampleRate, getFrameBufferSizeMultiplier, getFrameRateLowBandwidthSkipCount, getLabel, getLabel, getLowBandwidthScalingFactor, getPresetLabel, getPresetLabelByFrameSize, getVideoBitRate, getVideoFrameHeight, getVideoFramerate, getVideoFrameSize, getVideoFrameWidth, getVideoKeyFrameInterval, getVideoProfileLevel, getVideoRotation, isABREnabled, isAudioEnabled, isLandscape, isLandscapeRotation, isPortrait, isPortraitRotation, isValidScaleMode, isVideoEnabled, keyFrameIntervalFramesToSeconds, orientationLabel, orientationToRotation, orientationToSurfaceRotation, resetToDefaults, rotationToOrientation, setABREnabled, setAudioBitRate, setAudioChannels, setAudioEnabled, setAudioSampleRate, setFrameBufferSizeMultiplier, setFrameRateLowBandwidthSkipCount, setLowBandwidthScalingFactor, setVideoBitRate, setVideoEnabled, setVideoFrameHeight, setVideoFramerate, setVideoFrameSize, setVideoFrameSize, setVideoFrameWidth, setVideoKeyFrameInterval, setVideoProfileLevel, setVideoProfileLevel, setVideoRotation, surfaceRotationToOrientation, toDataMap, toFrameSizes
public WZBroadcastConfig()
public WZBroadcastConfig(WZBroadcastConfig other)
other
- The instance to replicatepublic WZBroadcastConfig(WZMediaConfig preset)
preset
- The preset configuration to replicatepublic void set(WZBroadcastConfig other)
other
- The instance with the property values to replicatepublic void set(WZMediaConfig preset)
set
in class WZStreamConfig
preset
- The preset configuration with the property values to replicatepublic WZBroadcastAPI.VideoBroadcaster getVideoBroadcaster()
public void setVideoBroadcaster(WZBroadcastAPI.VideoBroadcaster videoBroadcaster)
videoBroadcaster
- The newly configured video broadcasterpublic WZBroadcastAPI.AudioBroadcaster getAudioBroadcaster()
public void setAudioBroadcaster(WZBroadcastAPI.AudioBroadcaster audioBroadcaster)
audioBroadcaster
- The newly configured audio broadcasterpublic WZSinkAPI.VideoSink[] getVideoSinks()
public WZSinkAPI.AudioSink[] getAudioSinks()
public WZBroadcastAPI.BroadcastErrorCallback getErrorCallback()
public com.wowza.gocoder.sdk.support.monitor.StreamingMonitor getStreamingMonitor()
public WZMediaConfig getVideoSourceConfig()
public void setVideoSourceConfig(WZMediaConfig videoSourceConfig)
videoSourceConfig
- the video source configurationpublic void setOrientationBehavior(int broadcastOrientation)
broadcastOrientation
- One of WZMediaConfig.SAME_AS_SOURCE
(default), WZMediaConfig.ALWAYS_LANDSCAPE
, WZMediaConfig.ALWAYS_PORTRAIT
public int getOrientationBehavior()
WZMediaConfig.SAME_AS_SOURCE
(default), WZMediaConfig.ALWAYS_LANDSCAPE
, WZMediaConfig.ALWAYS_PORTRAIT
public WZStreamingError validateForBroadcast()
validateForBroadcast
in class WZStreamConfig
true
if all of the required properties have been specified, false
otherwisepublic void registerVideoSink(WZSinkAPI.VideoSink videoSink)
public void unregisterVideoSink(WZSinkAPI.VideoSink videoSink)
public void registerAudioSink(WZSinkAPI.AudioSink AudioSink)
public void unregisterAudioSink(WZSinkAPI.AudioSink AudioSink)
public String toString()
toString
in class WZStreamConfig
public WZDataMap toDataMap(WZDataMap dataMap)
WZDataMap
containing the configuration propertiestoDataMap
in class WZStreamConfig
dataMap
- a previouslly allocated data map in which to add the configuration properties© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal