Class VideoConstraints

java.lang.Object
com.flashphoner.fpwcsapi.constraints.VideoConstraints

public class VideoConstraints extends Object
Constraints for video: width, height, bitrate, quality, source camera and fps
  • Constructor Details

    • VideoConstraints

      public VideoConstraints()
  • Method Details

    • getCameraId

      public Integer getCameraId()
      Get video source camera
      Returns:
      camera identification number
    • setCameraId

      public void setCameraId(Integer cameraId)
      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()