public class WZPlayerConfig extends WZStreamConfig
WZPlayerConfig class provides configuration properties for
the WZPlayerView streaming media playerDEFAULT_APP, DEFAULT_PORT, DEFAULT_STREAMALWAYS_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 |
|---|
WZPlayerConfig()
The default constructor
|
WZPlayerConfig(WZMediaConfig preset)
Construct a new instance using the property values from the specified preset configuration
|
WZPlayerConfig(WZPlayerConfig other)
Construct a new instance using the property values from the specified instance
|
| Modifier and Type | Method and Description |
|---|---|
float |
getPreRollBufferDuration() |
long |
getPreRollBufferDurationMillis() |
void |
set(WZMediaConfig preset)
Update the property values of this instance with the property values from the specified preset configuration
|
void |
set(WZPlayerConfig other)
Update the property values of this instance with the property values from the specified instance
|
void |
setPreRollBufferDuration(float preRollBufferDuration) |
WZDataMap |
toDataMap(WZDataMap dataMap)
Returns a
WZDataMap containing the configuration properties |
String |
toString() |
getApplicationName, getConnectionParameters, getConnectionURL, getHostAddress, getLogLevel, getPassword, getPortNumber, getStreamMetadata, getStreamName, getUsername, set, setApplicationName, setConnectionParameters, setHostAddress, setLogLevel, setPassword, setPortNumber, setStreamMetadata, setStreamName, setUsername, validateForBroadcast, validateForPlaybackbitrateLabel, 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, toFrameSizespublic WZPlayerConfig()
public WZPlayerConfig(WZPlayerConfig other)
other - The instance to replicatepublic WZPlayerConfig(WZMediaConfig preset)
preset - The preset configuration to replicatepublic void set(WZPlayerConfig other)
other - The instance with the property values to replicatepublic void set(WZMediaConfig preset)
set in class WZStreamConfigpreset - The preset configuration with the property values to replicatepublic float getPreRollBufferDuration()
public long getPreRollBufferDurationMillis()
public void setPreRollBufferDuration(float preRollBufferDuration)
public String toString()
toString in class WZStreamConfigpublic WZDataMap toDataMap(WZDataMap dataMap)
WZDataMap containing the configuration propertiestoDataMap in class WZStreamConfigdataMap - a previouslly allocated data map in which to add the configuration properties© 2016 Wowza Media Systems, LLC. All rights reserved. Terms | Privacy | Trademarks | Legal