Class Constraints

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

public class Constraints extends Object
Audio and video constrains
  • Constructor Details

    • Constraints

      public Constraints()
    • Constraints

      public Constraints(boolean hasAudio, boolean hasVideo)
      New constraints for audio and video
      Parameters:
      hasAudio - specifies if published stream should have audio (played stream always should have audio: the parameter should not be set to false in that case)
      hasVideo - specifies if stream should have video
    • Constraints

      public Constraints(AudioConstraints audioConstraints, VideoConstraints videoConstraints)
      New constraints for audio and video
      Parameters:
      audioConstraints -
      videoConstraints - video constraints can include width, height, bitrate, quality, source camera and fps
  • Method Details

    • updateAudio

      public void updateAudio(boolean hasAudio)
    • updateVideo

      public void updateVideo(boolean hasVideo)
    • getAudioConstraints

      public AudioConstraints getAudioConstraints()
    • setAudioConstraints

      public void setAudioConstraints(AudioConstraints audioConstraints)
    • getVideoConstraints

      public VideoConstraints getVideoConstraints()
    • setVideoConstraints

      public void setVideoConstraints(VideoConstraints videoConstraints)