public class WOWZStreamConfig extends WOWZMediaConfig implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_APP
The default value for the name of the live streaming application ("live").
|
static int |
DEFAULT_PORT
The default value for the server connection port number (1935).
|
static java.lang.String |
DEFAULT_STREAM
The default value for the target stream name ("myStream").
|
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 |
---|
WOWZStreamConfig()
The default constructor.
|
WOWZStreamConfig(WOWZMediaConfig preset)
Creates and initializes an instance using the property values from the specified preset configuration.
|
WOWZStreamConfig(WOWZStreamConfig other)
Creates and initializes an instance using the property values from the specified instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationName()
Gets the name of the live streaming application.
|
WOWZDataMap |
getConnectionParameters() |
java.lang.String |
getConnectionURL()
Gets a fully qualified connection URL for this instance.
|
java.lang.String |
getHostAddress()
Gets the host name or IP address of the streaming server.
|
int |
getLogLevel()
Deprecated.
Use
WZBroadcast#getLogLevel() instead. |
java.lang.String |
getPassword()
Gets the password for source authentication.
|
int |
getPortNumber()
Gets the port number for the server connection.
|
WOWZDataMap |
getStreamMetadata() |
java.lang.String |
getStreamName()
Gets the target stream name.
|
java.lang.String |
getUsername()
Gets the user name for source authentication.
|
void |
set(WOWZMediaConfig preset)
Updates the property values of this instance with the property values from the specified preset configuration.
|
void |
set(WOWZStreamConfig other)
Updates the property values of this instance with the property values from the specified instance.
|
void |
setApplicationName(java.lang.String applicationName)
Sets the name of the live streaming application.
|
void |
setConnectionParameters(WOWZDataMap connectionParameters)
Adds the elements in the specified data map to the connection URL
as query string parameters and makes them available to Wowza Streaming Engine server
modules through the getQueryStr method of the IClient interface.
|
void |
setHostAddress(java.lang.String address)
Sets the host name or IP address of the streaming server.
|
void |
setLogLevel(int logLevel)
Deprecated.
Use
WZBroadcast#setLogLevel(int) instead. |
void |
setPassword(java.lang.String password)
Sets the password for source authentication.
|
void |
setPortNumber(int port)
Sets the server connection port number.
|
void |
setStreamMetadata(WOWZDataMap streamMetadata)
Adds the key/value pairs in the specified data map to the stream metadata and makes them
available to Wowza Streaming Engine server modules through the onMetadata method of the
IMediaStreamActionNotify2 interface.
|
void |
setStreamName(java.lang.String streamName)
Sets the target stream name.
|
void |
setUsername(java.lang.String username)
Sets the user name for source authentication.
|
WOWZDataMap |
toDataMap(WOWZDataMap dataMap)
Gets a WOWZDataMap containing the configuration properties.
|
java.lang.String |
toString() |
WOWZStreamingError |
validateForBroadcast()
Validates that the minimum set of property values have been specified necessary to initiate
a live streaming broadcast.
|
WOWZStreamingError |
validateForPlayback()
Validates that the minimum set of property values have been specified necessary to play a stream.
|
bitrateLabel, compareTo, equals, fromFrameSizes, getAudioBitRate, getAudioChannels, getAudioSampleRate, getFrameBufferSizeMultiplier, getFrameRateLowBandwidthSkipCount, getHLSBackupURL, getIsPlayback, getLabel, getLabel, getLowBandwidthScalingFactor, getPlayerExampleAutoconfig, getPresetLabel, getPresetLabelByFrameSize, getVideoBitRate, getVideoFrameHeight, getVideoFramerate, getVideoFrameSize, getVideoFrameWidth, getVideoKeyFrameInterval, getVideoProfileLevel, getVideoRotation, isABREnabled, isAudioEnabled, isHLSEnabled, isLandscape, isLandscapeRotation, isPortrait, isPortraitRotation, isValidScaleMode, isVideoEnabled, keyFrameIntervalFramesToSeconds, orientationLabel, orientationToRotation, orientationToSurfaceRotation, resetToDefaults, rotationToOrientation, setABREnabled, setAudioBitRate, setAudioChannels, setAudioEnabled, setAudioSampleRate, setFrameBufferSizeMultiplier, setFrameRateLowBandwidthSkipCount, setHLSBackupURL, setHLSEnabled, setIsPlayback, setLowBandwidthScalingFactor, setPlayerExampleAutoconfig, setVideoBitRate, setVideoEnabled, setVideoFrameHeight, setVideoFramerate, setVideoFrameSize, setVideoFrameSize, setVideoFrameWidth, setVideoKeyFrameInterval, setVideoProfileLevel, setVideoProfileLevel, setVideoRotation, surfaceRotationToOrientation, toDataMap, toFrameSizes
public static final int DEFAULT_PORT
public static final java.lang.String DEFAULT_APP
public static final java.lang.String DEFAULT_STREAM
public WOWZStreamConfig()
public WOWZStreamConfig(WOWZStreamConfig other)
other
- The instance to use.public WOWZStreamConfig(WOWZMediaConfig preset)
preset
- The preset configuration to use.public void set(WOWZStreamConfig other)
other
- The instance with the property values to use.public void set(WOWZMediaConfig preset)
set
in class WOWZMediaConfig
preset
- The preset configuration with the property values to use.public java.lang.String getHostAddress()
public void setHostAddress(java.lang.String address)
address
- A host name or IP address.public int getPortNumber()
public void setPortNumber(int port)
port
- A port number.public java.lang.String getApplicationName()
public void setApplicationName(java.lang.String applicationName)
applicationName
- The name of the live streaming application.public java.lang.String getStreamName()
public void setStreamName(java.lang.String streamName)
streamName
- The stream name.public java.lang.String getUsername()
public void setUsername(java.lang.String username)
username
- The user name.public java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The password.public void setStreamMetadata(WOWZDataMap streamMetadata)
streamMetadata
- A map of key/value pairs defining the metadata.public WOWZDataMap getStreamMetadata()
public void setConnectionParameters(WOWZDataMap connectionParameters)
connectionParameters
- A map of key/value pairs defining the connection URL's query string parameters.public WOWZDataMap getConnectionParameters()
public java.lang.String getConnectionURL()
public int getLogLevel()
WZBroadcast#getLogLevel()
instead.public void setLogLevel(int logLevel)
WZBroadcast#setLogLevel(int)
instead.public WOWZStreamingError validateForBroadcast()
public WOWZStreamingError validateForPlayback()
public java.lang.String toString()
toString
in class WOWZMediaConfig
public WOWZDataMap toDataMap(WOWZDataMap dataMap)
toDataMap
in class WOWZMediaConfig
dataMap
- A previously allocated data map in which to add the configuration properties.© 2016 - 2018 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal