Package org.linphone.core
Interface VideoActivationPolicy
public interface VideoActivationPolicy
Object describing policy regarding video streams establishments.
Use
tell the Core to automatically accept or initiate video during calls.
Even if disabled, you'll still be able to add it later while the call is
running.
Use
setAutomaticallyAccept(boolean) and setAutomaticallyInitiate(boolean) totell the Core to automatically accept or initiate video during calls.
Even if disabled, you'll still be able to add it later while the call is
running.
-
Method Summary
Modifier and TypeMethodDescriptionclone()Instantiates a newVideoActivationPolicyobject with same values as the
source.booleanGets the value for the automatically accept video policy.Gets the value for the automatically accept video direction.booleanGets the value for the automatically initiate video policy.longGets the native pointer used by this class to make native method calls.Gets the object stored in this object user's datavoidsetAutomaticallyAccept(boolean enable) Sets the value for the automatically accept video policy.voidsetAutomaticallyAcceptDirection(MediaDirection direction) Sets the value for the automatically accept direction.voidsetAutomaticallyInitiate(boolean enable) Sets the value for the automatically initiate video policy.voidsetUserData(Object data) Sets the object to store in this object user's datatoString()
-
Method Details
-
getAutomaticallyAccept
boolean getAutomaticallyAccept()Gets the value for the automatically accept video policy.
- Returns:
- whether or not to automatically accept video requests is enabled
-
setAutomaticallyAccept
void setAutomaticallyAccept(boolean enable) Sets the value for the automatically accept video policy.
- Parameters:
enable- whether or not to enable automatically accept video requests
-
getAutomaticallyAcceptDirection
MediaDirection getAutomaticallyAcceptDirection()Gets the value for the automatically accept video direction.
- Returns:
- the
MediaDirectionthat will be set for video stream if
automatically accepted.
-
setAutomaticallyAcceptDirection
Sets the value for the automatically accept direction.
- Parameters:
direction- theMediaDirectiondesired for video stream when
automatically accepted.
-
getAutomaticallyInitiate
boolean getAutomaticallyInitiate()Gets the value for the automatically initiate video policy.
- Returns:
- whether or not to automatically initiate video calls is enabled
-
setAutomaticallyInitiate
void setAutomaticallyInitiate(boolean enable) Sets the value for the automatically initiate video policy.
- Parameters:
enable- whether or not to enable automatically initiate video calls
-
clone
- Returns:
- the newly created
VideoActivationPolicyobject
-
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()
-