qt_demoe/video/playmdk/mdk/mdkwidget.h

29 lines
456 B
C
Raw Normal View History

2023-12-15 04:55:21 +00:00
#ifndef MDKWIDGET_H
#define MDKWIDGET_H
#include "mdkinclude.h"
#include "qpainter.h"
class MdkWidget : public OpenGLWidget
{
Q_OBJECT
public:
explicit MdkWidget(QWidget *parent = 0);
~MdkWidget();
void setUrl(const QString& url);
void play();
void pause();
void stop();
protected:
void initializeGL();
void resizeGL(int w, int h);
void paintGL();
private:
mdk::Player *player;
};
#endif // MDKWIDGET_H