Package org.linphone.core
Interface VideoDefinition
public interface VideoDefinition
This object represents a video definition, eg.
it's width, it's height and possibly it's name.
It is mostly used to configure the default video size sent by your camera
during a video call with
it's width, it's height and possibly it's name.
It is mostly used to configure the default video size sent by your camera
during a video call with
Core.setPreferredVideoDefinition(org.linphone.core.VideoDefinition) method. -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone a video definition.booleanequals(VideoDefinition videoDefinition2) Tells whether twoVideoDefinitionobjects are equal (the widths and the
heights are the same but can be switched).intGet the height of the video definition.getName()Get the name of the video definition.longGets the native pointer used by this class to make native method calls.Gets the object stored in this object user's dataintgetWidth()Get the width of the video definition.booleanTells whether aVideoDefinitionis undefined.voidsetDefinition(int width, int height) Set the width and the height of the video definition.voidsetHeight(int height) Set the height of the video definition.voidSet the name of the video definition.voidsetUserData(Object data) Sets the object to store in this object user's datavoidsetWidth(int width) Set the width of the video definition.booleanstrictEquals(VideoDefinition videoDefinition2) Tells whether twoVideoDefinitionobjects are strictly equal (the
widths are the same and the heights are the same).toString()
-
Method Details
-
getHeight
int getHeight()Get the height of the video definition.
- Returns:
- The height of the video definition
-
setHeight
void setHeight(int height) Set the height of the video definition.
- Parameters:
height- The height of the video definition
-
isUndefined
boolean isUndefined()- Returns:
- A boolean value telling whether the
VideoDefinitionis
undefined.
-
getName
Get the name of the video definition.
- Returns:
- The name of the video definition
-
setName
Set the name of the video definition.
- Parameters:
name- The name of the video definition
-
getWidth
int getWidth()Get the width of the video definition.
- Returns:
- The width of the video definition
-
setWidth
void setWidth(int width) Set the width of the video definition.
- Parameters:
width- The width of the video definition
-
clone
Clone a video definition.
- Returns:
- The new clone of the video definition
-
equals
Tells whether twoVideoDefinitionobjects are equal (the widths and the
heights are the same but can be switched).
- Parameters:
videoDefinition2-VideoDefinitionobject- Returns:
- A boolean value telling whether the two
VideoDefinitionobjects
are equal.
-
setDefinition
void setDefinition(int width, int height) Set the width and the height of the video definition.
- Parameters:
width- The width of the video definitionheight- The height of the video definition
-
strictEquals
Tells whether twoVideoDefinitionobjects are strictly equal (the
widths are the same and the heights are the same).
- Parameters:
videoDefinition2-VideoDefinitionobject- Returns:
- A boolean value telling whether the two
VideoDefinitionobjects
are strictly equal.
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-