Data Structures | Public Member Functions | Static Public Member Functions
efl::player Struct Reference

Data Structures

struct  address_const_of
 
struct  address_of
 

Public Member Functions

 player (::efl::eo::parent_type _p=(::efl::eo::parent=nullptr))
 
 player (Eo *eo)
 Eo Constructor. More...
 
 player (std::nullptr_t)
 nullptr_t Constructor. More...
 
 player (player const &other)
 Copy Constructor.
 
bool play_get () const
 
More...
 
void play_set (bool play_) const
 
More...
 
double position_get () const
 
More...
 
void position_set (double second_) const
 
More...
 
double progress_get () const
 
More...
 
double play_speed_get () const
 
void play_speed_set (double speed_) const
 
double audio_volume_get () const
 
void audio_volume_set (double volume_) const
 
bool audio_mute_get () const
 
void audio_mute_set (bool mute_) const
 
address_of operator& ()
 
address_const_of operator& () const
 
- Public Member Functions inherited from efl::eo::concrete
 concrete (Eo *eo)
 Class constructor. More...
 
 concrete ()
 Default constructor. More...
 
 ~concrete ()
 Class destructor.
 
 concrete (concrete const &other)
 
 concrete (concrete &&other)
 
concreteoperator= (concrete const &other)
 Assignment operator.
 
concreteoperator= (concrete &&other)
 
Eo_eo_ptr () const
 Return a pointer to the EO Object stored in this instance. More...
 
Eo_release ()
 Releases the reference from this concrete object and return the pointer to the EO Object stored in this instance. More...
 
void _reset (Eo *_ptr=nullptr)
 Reset the current pointer to reference a new Eo object.
 
int ref_get () const
 Get the reference count of this object. More...
 
void parent_set (concrete parent)
 Set the parent of this object. More...
 
eina::optional< concreteparent_get ()
 Get the parent of this object. More...
 
Eo_Dbg_Info dbg_info_get ()
 Get debug information of this object. More...
 
 operator bool () const
 

Static Public Member Functions

static Eo_Class const * _eo_class ()
 

Additional Inherited Members

- Protected Attributes inherited from efl::eo::concrete
Eo_eo_raw
 The opaque EO Object.
 

Constructor & Destructor Documentation

efl::player::player ( Eo eo)
inlineexplicit

Eo Constructor.

Constructs the object from an Eo* pointer stealing its ownership.

Parameters
eoThe Eo object pointer.
efl::player::player ( std::nullptr_t  )
inlineexplicit

nullptr_t Constructor.

Constructs an empty (null) object.

Member Function Documentation

bool efl::player::play_get ( ) const
inline

Get play/pause state of the media file.

Parameters
playtrue if playing, false otherwise.
void efl::player::play_set ( bool  play_) const
inline

Set play/pause state of the media file.

  • This functions sets the currently playing status of the video. Using this
  • function to play or pause the video doesn't alter it's current position.
Parameters
playtrue if playing, false otherwise.
double efl::player::position_get ( ) const
inline

Get the position in the media file.

  • Parameters
    objThe emotion object from which the position will be retrieved.
  • Returns
    The position of the media file.
  • The position is returned as the number of seconds since the beginning of the
  • media file.
Parameters
secondThe position (in seconds).
void efl::player::position_set ( double  second_) const
inline

Set the position in the media file.

  • Parameters
    objThe emotion object whose position will be changed.
  • Parameters
    secThe position(in seconds) to which the media file will be set.
  • This functions sets the current position of the media file to sec, this
  • only works on seekable streams. Setting the position doesn't change the
  • playing state of the media file.
Parameters
secondThe position (in seconds).
double efl::player::progress_get ( ) const
inline

Get how much of the file has been played.

  • This function gets the progress in playing the file, the return value is in
  • the [0, 1] range.
Parameters
progressThe progress within the [0, 1] range.
double efl::player::play_speed_get ( ) const
inline
Parameters
speedThe play speed in the [0, infinity) range.
void efl::player::play_speed_set ( double  speed_) const
inline
Parameters
speedThe play speed in the [0, infinity) range.
double efl::player::audio_volume_get ( ) const
inline
Parameters
volumeThe volume level
void efl::player::audio_volume_set ( double  volume_) const
inline
Parameters
volumeThe volume level
bool efl::player::audio_mute_get ( ) const
inline
Parameters
muteThe mute state. True or false.
void efl::player::audio_mute_set ( bool  mute_) const
inline
Parameters
muteThe mute state. True or false.