The MediaPlayer class is a central class which controls local and remote sources.
More...
#include <mediaplayer.h>
The MediaPlayer class is a central class which controls local and remote sources.
- Author
- Matthieu Bachelier
- Copyright
- GNU General Public License v3
MediaPlayer::MediaPlayer |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
void MediaPlayer::addRemotePlayer |
( |
IMediaPlayer * |
remotePlayer | ) |
|
void MediaPlayer::currentMediaChanged |
( |
const QString & |
uri | ) |
|
|
signal |
QString MediaPlayer::currentTrack |
( |
| ) |
const |
qint64 MediaPlayer::duration |
( |
| ) |
|
Current duration of the media, in ms.
bool MediaPlayer::isStopAfterCurrent |
( |
| ) |
const |
|
inline |
void MediaPlayer::mediaStatusChanged |
( |
QMediaPlayer::MediaStatus |
| ) |
|
|
signal |
void MediaPlayer::pause |
( |
| ) |
|
|
slot |
Pause current playing track.
void MediaPlayer::play |
( |
| ) |
|
|
slot |
Play current track in the playlist.
void MediaPlayer::playMediaContent |
( |
const QMediaContent & |
mc | ) |
|
Play track directly in the player, without playlist.
void MediaPlayer::positionChanged |
( |
qint64 |
pos, |
|
|
qint64 |
duration |
|
) |
| |
|
signal |
void MediaPlayer::seek |
( |
qreal |
pos | ) |
|
void MediaPlayer::seekBackward |
( |
| ) |
|
|
slot |
Seek backward in the current playing track for a small amount of time.
void MediaPlayer::seekForward |
( |
| ) |
|
|
slot |
Seek forward in the current playing track for a small amount of time.
void MediaPlayer::setMute |
( |
bool |
b | ) |
const |
void MediaPlayer::setState |
( |
QMediaPlayer::State |
state | ) |
|
void MediaPlayer::setStopAfterCurrent |
( |
bool |
b | ) |
|
|
inline |
void MediaPlayer::setVolume |
( |
qreal |
v | ) |
|
void MediaPlayer::skipBackward |
( |
| ) |
|
|
slot |
Change the current track.
void MediaPlayer::skipForward |
( |
| ) |
|
|
slot |
Change the current track.
QMediaPlayer::State MediaPlayer::state |
( |
| ) |
const |
|
inline |
void MediaPlayer::stateChanged |
( |
QMediaPlayer::State |
| ) |
|
|
signal |
void MediaPlayer::stop |
( |
| ) |
|
|
slot |
Stop current track in the playlist.
void MediaPlayer::stopAfterCurrent |
( |
bool |
b | ) |
|
|
inlineslot |
void MediaPlayer::toggleMute |
( |
| ) |
const |
|
slot |
Activate or desactive audio output.
void MediaPlayer::togglePlayback |
( |
| ) |
|
|
slot |
Play or pause current track in the playlist depending of the state of the player.
qreal MediaPlayer::volume |
( |
| ) |
const |
void MediaPlayer::volumeChanged |
( |
qreal |
v | ) |
|
|
signal |
The documentation for this class was generated from the following files: