summaryrefslogtreecommitdiff
path: root/examples/multimediawidgets/player/player.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-02-17 18:17:06 +0100
committerLars Knoll <lars.knoll@qt.io>2021-03-05 12:32:45 +0000
commita1f9b691c7960eefed6118b79b66f096094d75b2 (patch)
tree2047f79ff778dd5a7c1b0162e69f29c63a3ac89a /examples/multimediawidgets/player/player.h
parentf5ae5377805c3541fa19fe6c8001113f36f86bc4 (diff)
downloadqtmultimedia-a1f9b691c7960eefed6118b79b66f096094d75b2.tar.gz
Add support for selecting audio/video tracks
Implement this for the gstreamer backend. The API for subtitle tracks is also there, but we do not support displaying those for the moment. Change-Id: Ia561656d63c33ac4ea5d167846d4535820180fb3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Doris Verria <doris.verria@qt.io>
Diffstat (limited to 'examples/multimediawidgets/player/player.h')
-rw-r--r--examples/multimediawidgets/player/player.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/multimediawidgets/player/player.h b/examples/multimediawidgets/player/player.h
index 3944d0f3f..7385d27a9 100644
--- a/examples/multimediawidgets/player/player.h
+++ b/examples/multimediawidgets/player/player.h
@@ -92,6 +92,7 @@ private slots:
void durationChanged(qint64 duration);
void positionChanged(qint64 progress);
void metaDataChanged();
+ void tracksChanged();
void previousClicked();
@@ -104,6 +105,10 @@ private slots:
void bufferingProgress(int progress);
void videoAvailableChanged(bool available);
+ void selectAudioStream();
+ void selectVideoStream();
+ void selectSubtitleStream();
+
void displayErrorMessage();
void showColorDialog();
@@ -129,6 +134,10 @@ private:
QLabel *m_statusLabel = nullptr;
QStatusBar *m_statusBar = nullptr;
+ QComboBox *m_audioTracks = nullptr;
+ QComboBox *m_videoTracks = nullptr;
+ QComboBox *m_subtitleTracks = nullptr;
+
QLabel *m_labelHistogram = nullptr;
HistogramWidget *m_videoHistogram = nullptr;
HistogramWidget *m_audioHistogram = nullptr;