Files
qt5-legatus-legacy/Lts/Application/THP/thpwidgets/thp_audio_video_widget.h
T
2026-08-13 18:33:10 +02:00

33 lines
505 B
C++
Executable File

/**
* @RDE_HEADER@
* Handle Audio/Video output for thp through libvlc
* $Id$
* $HeadURL$
* $Author$
*/
#pragma once
#include <QFrame>
class QUrl;
namespace THP
{
class AudioVideoWidget : public QFrame
{
Q_OBJECT
public:
explicit AudioVideoWidget(QWidget *parent = nullptr);
~AudioVideoWidget();
bool play(const QUrl &file);
bool stop();
void setAV(bool isAudio = false);
private:
class Private;
Private *const d;
friend class AudioVideoInitThread;
};
} // namespace THP