17#ifndef QGSMEDIAWIDGET_H
18#define QGSMEDIAWIDGET_H
21#include <QMediaPlayer>
65 void setMediaPath(
const QString &path );
75 void setMode( Mode mode );
80 int videoHeight()
const;
87 void setVideoHeight(
int height );
96 void mediaStatusChanged( QMediaPlayer::MediaStatus status );
100 void adjustControls();
101 void setControlsEnabled(
bool enabled );
105 QVBoxLayout *mLayout =
nullptr;
106 QVideoWidget *mVideoWidget =
nullptr;
107 QPushButton *mPlayButton =
nullptr;
108 QSlider *mPositionSlider =
nullptr;
109 QLabel *mDurationLabel =
nullptr;
111 QMediaPlayer mMediaPlayer;