1
0
Fork 0
VideoPlayer/src/Backends/MPVCommon/MPVCommon.hpp
2023-12-05 15:13:13 +00:00

21 lines
561 B
C++

#ifndef MPVCommon_H
#define MPVCommon_H
#include "src/enums.hpp"
#include <QMetaType>
#include <QString>
#include <QVariant>
#include <mpv/client.h>
class BackendInterface;
class QMetaMethod;
namespace MPVCommon {
QString getStats(BackendInterface* b);
QVariant playerCommand(BackendInterface* b, const Enums::Commands& cmd, const QVariant& args);
void updateDurationString(BackendInterface* b, int numTime, QMetaMethod metaMethod);
void handle_mpv_event(BackendInterface* b, mpv_event* event);
QVariantMap getAudioDevices(const QVariant& drivers);
}
#endif