Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::MediaPlayer Class Reference

#include <media_player.h>

Collaboration diagram for jami::MediaPlayer:
Collaboration graph

Public Member Functions

const std::string & getId () const
 
int64_t getPlayerDuration () const
 
int64_t getPlayerPosition () const
 
bool isInputValid ()
 
bool isPaused () const
 
 MediaPlayer (const std::string &resource)
 
void muteAudio (bool mute)
 
void pause (bool pause)
 
bool seekToTime (int64_t time)
 
void setAutoRestart (bool state)
 
 ~MediaPlayer ()
 

Detailed Description

Definition at line 27 of file media_player.h.

Constructor & Destructor Documentation

◆ MediaPlayer()

jami::MediaPlayer::MediaPlayer ( const std::string &  resource)

Definition at line 28 of file media_player.cpp.

◆ ~MediaPlayer()

jami::MediaPlayer::~MediaPlayer ( )

Definition at line 53 of file media_player.cpp.

References jami::emitSignal(), jami::ThreadLoop::join(), and pause().

Here is the call graph for this function:

Member Function Documentation

◆ getId()

const std::string & jami::MediaPlayer::getId ( ) const

Definition at line 299 of file media_player.cpp.

◆ getPlayerDuration()

int64_t jami::MediaPlayer::getPlayerDuration ( ) const

Definition at line 314 of file media_player.cpp.

◆ getPlayerPosition()

int64_t jami::MediaPlayer::getPlayerPosition ( ) const

Definition at line 305 of file media_player.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ isInputValid()

bool jami::MediaPlayer::isInputValid ( )

Definition at line 187 of file media_player.cpp.

◆ isPaused()

bool jami::MediaPlayer::isPaused ( ) const

Definition at line 320 of file media_player.cpp.

◆ muteAudio()

void jami::MediaPlayer::muteAudio ( bool  mute)

Definition at line 193 of file media_player.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ pause()

void jami::MediaPlayer::pause ( bool  pause)

Definition at line 201 of file media_player.cpp.

References jami::emitSignal(), and pause().

Referenced by pause(), and ~MediaPlayer().

Here is the call graph for this function:

◆ seekToTime()

bool jami::MediaPlayer::seekToTime ( int64_t  time)

Definition at line 226 of file media_player.cpp.

References jami::MediaDemuxer::Demuxing, and jami::emitSignal().

Here is the call graph for this function:

◆ setAutoRestart()

void jami::MediaPlayer::setAutoRestart ( bool  state)
inline

Definition at line 41 of file media_player.h.


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