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.boolean
equals
(VideoDefinition videoDefinition2) Tells whether twoVideoDefinition
objects are equal (the widths and the
heights are the same but can be switched).int
Get the height of the video definition.getName()
Get the name of the video definition.long
Gets the native pointer used by this class to make native method calls.Gets the object stored in this object user's dataint
getWidth()
Get the width of the video definition.boolean
Tells whether aVideoDefinition
is undefined.void
setDefinition
(int width, int height) Set the width and the height of the video definition.void
setHeight
(int height) Set the height of the video definition.void
Set the name of the video definition.void
setUserData
(Object data) Sets the object to store in this object user's datavoid
setWidth
(int width) Set the width of the video definition.boolean
strictEquals
(VideoDefinition videoDefinition2) Tells whether twoVideoDefinition
objects 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
VideoDefinition
is
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 twoVideoDefinition
objects are equal (the widths and the
heights are the same but can be switched).
- Parameters:
videoDefinition2
-VideoDefinition
object- Returns:
- A boolean value telling whether the two
VideoDefinition
objects
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 twoVideoDefinition
objects are strictly equal (the
widths are the same and the heights are the same).
- Parameters:
videoDefinition2
-VideoDefinition
object- Returns:
- A boolean value telling whether the two
VideoDefinition
objects
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()
-