qtdoc/examples/demos/mediaplayer
Jøger Hansegård 9d7ff8c111 Switch media player audio output when OS default audio output changes
This patch allows the user to change the audio device while a video or
audio file is being played in the media player app.

Before this change, audio would start playing on operating system's
default audio device, but it would not switch to another audio device
even if the user selected another device while the media was playing.

This patch uses a MediaDevices QML element to listen to audio device
changes from the operating system, and will automatically switch to the
device that is set as default at any time.

Fixes: QTBUG-119282
Pick-to: 6.8
Change-Id: Id1acfe9e9025a81c4cc3fa0e4593292f287f7b9a
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
2024-11-13 12:02:34 +01:00
..
Config MediaPlayer: Use theme colors in menu 2024-03-12 12:50:20 +01:00
MediaControls MediaPlayer: Use theme colors in menu 2024-03-12 12:50:20 +01:00
MediaPlayer Switch media player audio output when OS default audio output changes 2024-11-13 12:02:34 +01:00
doc Rename media player image file to avoid name clash with QtScXml example 2024-09-28 12:24:01 +02:00
CMakeLists.txt MediaPlayerApp: add FFmpeg libraries embedding on iOS 2024-09-26 04:28:11 +02:00
filenameprovider.h MediaPlayer demo: Add FileNameProvider for PlayList 2024-04-16 18:19:34 +00:00
main.cpp MediaPlayer demo: Add FileNameProvider for PlayList 2024-04-16 18:19:34 +00:00
mediaplayer.py Fix mediaplayer to work with Python 2024-05-27 08:39:05 +02:00
mediaplayer.pyproject MediaPlayer demo: Add a Python driver 2023-09-07 12:42:49 +02:00