qml-mediaplayer-advanced: Add initial command line interface
This patch adds a command-line interface to qml-mediaplayer-advanced,
allowing us to:
- Control source URL for media. This is played immediately if set.
- Set RHI graphics backend. Overrides environment variables and the
setting set from GUI.
- Set media backend. Overrides environment variables and the
setting set from GUI.
- Set loop count with --loops.
- Exit when playback ends with --exit-on-end.
- Hide the controls with --no-gui.
If a source is given, the app exits with code 1 on playback errors.
These changes also help LLMs be a bit more efficient in utilizing this
manual test.
Pick-to: 6.12
Change-Id: Ib3029cb0ce6dd9f3f1d4b10d54684093416b68c9
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
| commit | 60779a19640081856ae8de25fa07487baae4fed3 |
| parent | bac77da388916f0c2978194909f5e70d598ab213 |
| author | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| committer | Nils Petter Skålerud <nils.petter.skalerud@qt.io> |
| commit time | Mon, 12 Oct 2026 19:56:05 +0000 |
- M tests/manual/qml-mediaplayer-advanced/BackendSettings.qml
- M tests/manual/qml-mediaplayer-advanced/CMakeLists.txt
- M tests/manual/qml-mediaplayer-advanced/PlayerSettings.qml
- R085 tests/manual/qml-mediaplayer-advanced/Main.qml
- D tests/manual/qml-mediaplayer-advanced/main.cpp
- R100 tests/manual/qml-mediaplayer-advanced/onlinesamples.json
- A tests/manual/qml-mediaplayer-advanced/qml-mediaplayer-advanced.cpp
- D tests/manual/qml-mediaplayer-advanced/qmlmediaplayeradvanced.cpp
- A tests/manual/qml-mediaplayer-advanced/qmlmediaplayeradvancedhelper.cpp
- R053 tests/manual/qml-mediaplayer-advanced/qmlmediaplayeradvanced.h