Class Constraints
java.lang.Object
com.flashphoner.fpwcsapi.constraints.Constraints
Audio and video constrains
-
Constructor Summary
ConstructorDescriptionConstraints
(boolean hasAudio, boolean hasVideo) New constraints for audio and videoConstraints
(AudioConstraints audioConstraints, VideoConstraints videoConstraints) New constraints for audio and video -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAudioConstraints
(AudioConstraints audioConstraints) void
setVideoConstraints
(VideoConstraints videoConstraints) void
updateAudio
(boolean hasAudio) void
updateVideo
(boolean hasVideo)
-
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
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
-
setAudioConstraints
-
getVideoConstraints
-
setVideoConstraints
-