Current section

Files

Jump to
webengine_kiosk src KioskSounds.h
Raw

src/KioskSounds.h

#ifndef QPLAYER_MULTIMEDIA_H
#define QPLAYER_MULTIMEDIA_H
#include <QtCore>
#include <QtMultimedia/QMediaPlayer>
class KioskSounds : public QObject
{
Q_OBJECT
public:
explicit KioskSounds(QObject *parent = nullptr);
void play(const QUrl &soundFile);
public slots:
void player_error(QMediaPlayer::Error error);
private:
QMediaPlayer *player;
};
#endif // QPLAYER_MULTIMEDIA_H