IMediaPlayer class is a pure virtual class implemented by plugins.
More...
#include <imediaplayer.h>
|
virtual void | pause ()=0 |
| Must be implemented in derived class. More...
|
|
virtual void | play (const QUrl &track)=0 |
|
virtual void | resume ()=0 |
|
virtual void | seek (float pos)=0 |
|
virtual void | setVolume (qreal volume)=0 |
|
virtual void | stop ()=0 |
|
IMediaPlayer class is a pure virtual class implemented by plugins.
When one wants to extend this player by enabling remote playing, it must use this interface. Signals are already connected to MediaPlayer class which acts as a dispatcher.
- Author
- Matthieu Bachelier
- Copyright
- GNU General Public License v3
◆ IMediaPlayer()
IMediaPlayer::IMediaPlayer |
( |
QObject * |
parent = nullptr | ) |
|
|
inlineexplicit |
◆ ~IMediaPlayer()
virtual IMediaPlayer::~IMediaPlayer |
( |
| ) |
|
|
inlinevirtual |
◆ duration()
virtual qint64 IMediaPlayer::duration |
( |
| ) |
const |
|
pure virtual |
Current media length in ms.
◆ host()
virtual QString IMediaPlayer::host |
( |
| ) |
const |
|
pure virtual |
◆ pause
virtual void IMediaPlayer::pause |
( |
| ) |
|
|
pure virtualslot |
Must be implemented in derived class.
◆ paused
void IMediaPlayer::paused |
( |
| ) |
|
|
signal |
Current player has been put in pause mode by one.
◆ play
virtual void IMediaPlayer::play |
( |
const QUrl & |
track | ) |
|
|
pure virtualslot |
◆ position()
virtual qreal IMediaPlayer::position |
( |
| ) |
const |
|
pure virtual |
The position in the current media being played. Percent-based.
◆ positionChanged
void IMediaPlayer::positionChanged |
( |
qint64 |
pos, |
|
|
qint64 |
duration |
|
) |
| |
|
signal |
Current track position has changed. 'Pos' and 'duration' are expressed in milliseconds.
◆ resume
virtual void IMediaPlayer::resume |
( |
| ) |
|
|
pure virtualslot |
◆ seek
virtual void IMediaPlayer::seek |
( |
float |
pos | ) |
|
|
pure virtualslot |
◆ setMute()
virtual void IMediaPlayer::setMute |
( |
bool |
b | ) |
|
|
pure virtual |
◆ setPosition()
virtual void IMediaPlayer::setPosition |
( |
qint64 |
pos | ) |
|
|
pure virtual |
Sets the current position in ms in the current media being played (useful for seeking).
◆ setTime()
virtual void IMediaPlayer::setTime |
( |
qint64 |
t | ) |
|
|
pure virtual |
Sets the total time in ms in the current media being played (useful for seeking).
◆ setVolume
virtual void IMediaPlayer::setVolume |
( |
qreal |
volume | ) |
|
|
pure virtualslot |
◆ started
void IMediaPlayer::started |
( |
qint64 |
duration | ) |
|
|
signal |
The player has started to play a new track. 'Duration' is expressed in milliseconds.
◆ stop
virtual void IMediaPlayer::stop |
( |
| ) |
|
|
pure virtualslot |
◆ stopped
void IMediaPlayer::stopped |
( |
| ) |
|
|
signal |
Current player has been put in stop mode by one.
◆ time()
virtual qint64 IMediaPlayer::time |
( |
| ) |
const |
|
pure virtual |
◆ trackHasEnded
void IMediaPlayer::trackHasEnded |
( |
| ) |
|
|
signal |
Current track has finished to be played.
◆ volume()
virtual qreal IMediaPlayer::volume |
( |
| ) |
const |
|
pure virtual |
The current volume of this remote player.
The documentation for this class was generated from the following file: