Package org.jitsi.impl.neomedia.control
Class FrameRateControlAdapter
- java.lang.Object
-
- org.jitsi.impl.neomedia.control.FrameRateControlAdapter
-
- All Implemented Interfaces:
javax.media.Control,javax.media.control.FrameRateControl
public class FrameRateControlAdapter extends Object implements javax.media.control.FrameRateControl
Provides a default implementation of FrameRateControl.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description FrameRateControlAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetControlComponent()Gets the UI Component associated with this Control object.floatgetFrameRate()Gets the current output frame rate.floatgetMaxSupportedFrameRate()Gets the maximum supported output frame rate.floatgetPreferredFrameRate()Gets the default/preferred output frame rate.floatsetFrameRate(float frameRate)Sets the output frame rate.
-
-
-
Method Detail
-
getControlComponent
public Component getControlComponent()
Gets the UI Component associated with this Control object. FrameRateControlAdapter always returns null.- Specified by:
getControlComponentin interfacejavax.media.Control- Returns:
- the UI Component associated with this Control object
- See Also:
Control.getControlComponent()
-
getFrameRate
public float getFrameRate()
Gets the current output frame rate. FrameRateControlAdapter always returns -1.- Specified by:
getFrameRatein interfacejavax.media.control.FrameRateControl- Returns:
- the current output frame rate if it is known; otherwise, -1
- See Also:
FrameRateControl.getFrameRate()
-
getMaxSupportedFrameRate
public float getMaxSupportedFrameRate()
Gets the maximum supported output frame rate. FrameRateControlAdapter always returns -1.- Specified by:
getMaxSupportedFrameRatein interfacejavax.media.control.FrameRateControl- Returns:
- the maximum supported output frame rate if it is known; otherwise, -1
- See Also:
FrameRateControl.getMaxSupportedFrameRate()
-
getPreferredFrameRate
public float getPreferredFrameRate()
Gets the default/preferred output frame rate. FrameRateControlAdapter always returns -1.- Specified by:
getPreferredFrameRatein interfacejavax.media.control.FrameRateControl- Returns:
- the default/preferred output frame rate if it is known; otherwise, -1
- See Also:
FrameRateControl.getPreferredFrameRate()
-
setFrameRate
public float setFrameRate(float frameRate)
Sets the output frame rate. FrameRateControlAdapter always returns -1.- Specified by:
setFrameRatein interfacejavax.media.control.FrameRateControl- Parameters:
frameRate- the output frame rate to change the current one to- Returns:
- the actual current output frame rate or -1 if it is unknown or not controllable
- See Also:
FrameRateControl.setFrameRate(float)
-
-