Liblinphone 5.5.0
Public Member Functions | List of all members
linphone::VideoActivationPolicy Class Reference

#include <video_activation_policy.hh>

Inheritance diagram for linphone::VideoActivationPolicy:

Public Member Functions

LINPHONECXX_PUBLIC VideoActivationPolicy (void *ptr, bool takeRef=true)
 
LINPHONECXX_PUBLIC _LinphoneVideoActivationPolicy * cPtr ()
 
LINPHONECXX_PUBLIC bool getAutomaticallyAccept () const
 
LINPHONECXX_PUBLIC void setAutomaticallyAccept (bool enable)
 
LINPHONECXX_PUBLIC linphone::MediaDirection getAutomaticallyAcceptDirection () const
 
LINPHONECXX_PUBLIC void setAutomaticallyAcceptDirection (linphone::MediaDirection direction)
 
LINPHONECXX_PUBLIC bool getAutomaticallyInitiate () const
 
LINPHONECXX_PUBLIC void setAutomaticallyInitiate (bool enable)
 
LINPHONECXX_PUBLIC std::shared_ptr< linphone::VideoActivationPolicyclone () const
 

Detailed Description

Object describing policy regarding video streams establishments.

Use setAutomaticallyAccept() and setAutomaticallyInitiate() to 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.

Member Function Documentation

◆ clone()

LINPHONECXX_PUBLIC std::shared_ptr< linphone::VideoActivationPolicy > linphone::VideoActivationPolicy::clone ( ) const

Instantiates a new VideoActivationPolicy object with same values as the source.

Returns
the newly created VideoActivationPolicy object

◆ getAutomaticallyAccept()

LINPHONECXX_PUBLIC bool linphone::VideoActivationPolicy::getAutomaticallyAccept ( ) const

Gets the value for the automatically accept video policy.

Returns
whether or not to automatically accept video requests is enabled

◆ getAutomaticallyAcceptDirection()

LINPHONECXX_PUBLIC linphone::MediaDirection linphone::VideoActivationPolicy::getAutomaticallyAcceptDirection ( ) const

Gets the value for the automatically accept video direction.

Returns
the MediaDirection that will be set for video stream if automatically accepted.

◆ getAutomaticallyInitiate()

LINPHONECXX_PUBLIC bool linphone::VideoActivationPolicy::getAutomaticallyInitiate ( ) const

Gets the value for the automatically initiate video policy.

Returns
whether or not to automatically initiate video calls is enabled

◆ setAutomaticallyAccept()

LINPHONECXX_PUBLIC void linphone::VideoActivationPolicy::setAutomaticallyAccept ( bool  enable)

Sets the value for the automatically accept video policy.

Parameters
enablewhether or not to enable automatically accept video requests

◆ setAutomaticallyAcceptDirection()

LINPHONECXX_PUBLIC void linphone::VideoActivationPolicy::setAutomaticallyAcceptDirection ( linphone::MediaDirection  direction)

Sets the value for the automatically accept direction.

Parameters
directionthe MediaDirection desired for video stream when automatically accepted.

◆ setAutomaticallyInitiate()

LINPHONECXX_PUBLIC void linphone::VideoActivationPolicy::setAutomaticallyInitiate ( bool  enable)

Sets the value for the automatically initiate video policy.

Parameters
enablewhether or not to enable automatically initiate video calls

The documentation for this class was generated from the following file: