Class QualityPreset

  • All Implemented Interfaces:
    Comparable<QualityPreset>

    public class QualityPreset
    extends Object
    implements Comparable<QualityPreset>
    Predefined quality preset used to specify some video settings during an existing call or when starting a new call.
    Author:
    Damian Minkov, Lyubomir Marinov
    • Constructor Detail

      • QualityPreset

        public QualityPreset​(Dimension resolution,
                             float frameRate)
        Initializes a new quality preset with a specific resolution and a specific frameRate.
        Parameters:
        resolution - the resolution
        frameRate - the frame rate
      • QualityPreset

        public QualityPreset​(Dimension resolution)
        Initializes a new quality preset with a specific resolution and an unspecified frameRate.
        Parameters:
        resolution - the resolution
    • Method Detail

      • getFameRate

        public float getFameRate()
        Returns this preset frame rate.
        Returns:
        the frame rate.
      • getResolution

        public Dimension getResolution()
        Returns this preset resolution.
        Returns:
        the resolution.
      • compareTo

        public int compareTo​(QualityPreset o)
        Compares to presets and its dimensions.
        Specified by:
        compareTo in interface Comparable<QualityPreset>
        Parameters:
        o - object to compare to.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.