Class VideoConstraints
java.lang.Object
com.flashphoner.fpwcsapi.constraints.VideoConstraints
Constraints for video: width, height, bitrate, quality, source camera and fps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Get publishing (or playback) bitrateGet video source cameraint
Get video heightint
Get maximum bitrate for publishing or playingorg.webrtc.MediaConstraints
int
Get minimum bitrate for publishing or playingint
Get playback qualityint
Get video FPSint
getWidth()
Get video widthvoid
setBitrate
(int bitrate) Set bitrate for publishing or playingvoid
setCameraId
(Integer cameraId) Set video source cameravoid
setMaxBitrate
(int maxBitrate) Set maximum bitratevoid
setMinBitrate
(int minBitrate) Set minimum bitratevoid
setQuality
(int quality) Set quality for playingvoid
setResolution
(int videoWidth, int videoHeight) Set video resolutionvoid
setVideoFps
(int videoFps) Set video FPS
-
Constructor Details
-
VideoConstraints
public VideoConstraints()
-
-
Method Details
-
getCameraId
Get video source camera- Returns:
- camera identification number
-
setCameraId
Set video source camera- Parameters:
cameraId
- camera identification number
-
getWidth
public int getWidth()Get video width -
getHeight
public int getHeight()Get video height -
getBitrate
public int getBitrate()Get publishing (or playback) bitrate -
setBitrate
public void setBitrate(int bitrate) Set bitrate for publishing or playing- Parameters:
bitrate
-
-
getMaxBitrate
public int getMaxBitrate()Get maximum bitrate for publishing or playing -
setMaxBitrate
public void setMaxBitrate(int maxBitrate) Set maximum bitrate- Parameters:
maxBitrate
- maximum bitrate in kbps
-
getMinBitrate
public int getMinBitrate()Get minimum bitrate for publishing or playing -
setMinBitrate
public void setMinBitrate(int minBitrate) Set minimum bitrate- Parameters:
minBitrate
- minimum bitrate in kbps
-
getQuality
public int getQuality()Get playback quality -
setQuality
public void setQuality(int quality) Set quality for playing- Parameters:
quality
-
-
setResolution
public void setResolution(int videoWidth, int videoHeight) Set video resolution- Parameters:
videoWidth
-videoHeight
-
-
setVideoFps
public void setVideoFps(int videoFps) Set video FPS- Parameters:
videoFps
-
-
getVideoFps
public int getVideoFps()Get video FPS -
getMediaConstraints
public org.webrtc.MediaConstraints getMediaConstraints()
-