diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 10:52:30 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-06-19 10:52:30 +0200 |
| commit | 1eec0c9fa22e86225691e7892e9219e7d17d5c42 (patch) | |
| tree | 059c9cdd8339751f51793b8fd38a03f93ae28ae7 /src/mediaplayer.cpp | |
| parent | 6a5198d23412a6d11f78cdef71850e578ca6f8c0 (diff) | |
| download | kristall-1eec0c9fa22e86225691e7892e9219e7d17d5c42.tar.gz | |
Fixed multimedia bug.
Diffstat (limited to 'src/mediaplayer.cpp')
| -rw-r--r-- | src/mediaplayer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mediaplayer.cpp b/src/mediaplayer.cpp index 809d24a..66a5455 100644 --- a/src/mediaplayer.cpp +++ b/src/mediaplayer.cpp @@ -52,6 +52,11 @@ void MediaPlayer::setMedia(QByteArray const & data, QUrl const & ref_url, QStrin this->player.setMedia(content, &this->media_stream); } +void MediaPlayer::stopPlaying() +{ + this->player.stop(); +} + void MediaPlayer::on_playpause_button_clicked() { if(this->player.state() != QMediaPlayer::PlayingState) { |
