summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/player
Commit message (Collapse)AuthorAgeFilesLines
* Add HasHdrContent to QMediaMetaData::Key enumerationJøger Hansegård6 days1-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | The HasHdrContent metadata key can be used to determine if a video track potentially contains HDR video. QMediaMetaData::value(QMediaMetaData::HasHdrContent) will return true when the decoder reports that the video uses ColorTransfer_ST2084 or ColorTransfer_STD_B67. These are color transfers used with Dolby Vision videos, for example HDR video recorded with an iPhone. Note that even if HasHdrContent is true, the video may still not utilize the extended dynamic range. This simplified approach is chosen because it is fast, and does not require decoding video frames to determine the actual range being used. Qt Multimedia still does not support proper display of HDR content, but the new metadata key can be used to determine if the video is a SDR video that will be presented correctly. Supported on FFmpeg media backend only. Fixes: QTBUG-114427 Change-Id: I7361d8c61838a66a61d18a2b9e6c8d75a6bdbdb8 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Tim Blechmann <tim@klingt.org>
* strings: use QStringLiteral instead of fromUtf8Tim Blechmann2024-04-091-4/+4
| | | | | | | | This avoids run-time unicode conversions. Pick-to: 6.5 6.6 6.7 Change-Id: Ief6aa32288b300ee05232e7372b6f701562194fc Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
* Replace `QString` with `QStringLiteral` when wrapping a string literalTim Blechmann2024-04-082-5/+5
| | | | | | | | | Instantiates the utf-16 string at compile time rather performing a unicode conversion at run-time Pick-to: 6.5 6.6 6.7 Change-Id: I7c2e89437ad7f6c80022ac0dbb62c8dd46906ed5 Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
* Correct license for example and snippet filesLucie Gérard2024-03-267-7/+7
| | | | | | | | | | | | According to QUIP-18 [1], all example and snippet files should be LicenseRef-Qt-Commercial OR BSD-3-Clause [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I16a226b797329a9ce962732a97fd1af84ab22cda Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Doc: Create separate 'Graphics', 'Multimedia' example categoriesJaishree Vyas2024-01-161-1/+1
| | | | | | | Fixes: QTBUG-117884 Pick-to: 6.6 6.7 Change-Id: Id718b09af348c042faa9fa72cf6295f731b7573d Reviewed-by: Paul Wicking <paul.wicking@qt.io>
* Fix next/previous buttons issue in Media Player app exampleJakub Wincenciak2023-11-151-2/+2
| | | | | | | | | | | | | | | | If we loaded several videos, clicking on the next button moved on to the next video, but if we did this on the last video, the app would select an 'empty' video and only on the second click would it move to the front of the list. The same was happening with the previous button. The problem was the function that determines the index of the next preceding video, so I fixed it. Fixes: QTBUG-119083 Pick-to: 6.6 Change-Id: I6fc573cfc09338c8c8dc4aef7f8d0b8a6e74290e Reviewed-by: Lars Knoll <lars@knoll.priv.no>
* Media Player Example: Set volume slider minimum width to default sizeLars Sutterud2023-11-141-0/+3
| | | | | | | | | | | | | | | | This change fixes a design bug where decreasing the window width would decrease the volume slider width gradually down to zero. A volume slider needs a certain width to be useful, therefore the default slider width from QSlider::sizeHint() is now used as its minimum size. This is done by changing its horizontol QSizePolicy to MinimumExpanded. As a result the volume slider now has a constant width, which is the same apprach used in e.g. Apple Music and VLC player. Fixes: QTBUG-119087 Pick-to: 6.6 6.5 6.2 5.15 Change-Id: Ibe93b278f2651d4aa3a5c0ce7316dad27c2776e5 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Mark the whole repo with QT_NO_CONTEXTLESS_CONNECTAhmad Samir2023-09-041-2/+2
| | | | | | | | | | | | By adding it to the default build flags via .cmake.conf. This amends commit 84bb3ea0039097c67bf104841fe8e1759f90c252. Pick-to: 6.6 6.5 Task-number: QTBUG-116296 Change-Id: I395a17082d4cfcacc5ba406429426c841b9e43fe Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
* Doc: Add \examplecategory for Qt MultimediaVenugopal Shivashankar2023-07-211-0/+1
| | | | | | | | | | | Categorized the examples based on the categories listed in https://wiki.qt.io/Qt6/Example-Guideline#Categorisation. Task-number: QTBUG-115301 Pick-to: 6.5 6.6 Change-Id: I44ff60e0400558c451a5f2ce5be246172341f734 Reviewed-by: Artem Dyomin <artem.dyomin@qt.io> Reviewed-by: Kai Köhne <kai.koehne@qt.io>
* Include moc_*.cpp files in QtMM examplesArtem Dyomin2022-12-1311-63/+96
| | | | | | | | | | | | | | | | The reason of the refactoring is following the common approach that leads to reducing compilation time and binary size. - logic hasn't been touched - some headers have been decoupled into header and cpp or renamed - the same refactorings of main QtMM code, tests, plugins are coming in the next commits Task-number: QTBUG-103290 Pick-to: 6.5 6.4 Change-Id: I5ec4c7b651ebb81879b8a7be8659e66d52af0d90 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
* Examples: C++ style cleanupKai Köhne2022-09-0712-240/+252
| | | | | | | | | | | | | Run clang-format on all files. Unify the headers to use the canonical include variants: single class includes instead of #include <QtGui>. Finally, using signals and slots instead of Q_SIGNALS and Q_SLOTS. Pick-to: 6.4 Change-Id: I033dad85a4a25600ec4e3171bede8b98e584cf5d Reviewed-by: Lars Knoll <lars@knoll.priv.no>
* Let examples show up in Qt Creator againKai Köhne2022-09-0518-0/+2760
Fix an issue where the relative paths in the generated examples-manifest.xml did miss the parent directory, effectively blocking the examples from being shown in the Qt Creator Welcome screen. This broke in commit c403e775f60a, where the exampledirs path was changed from "../../../examples" to "../../../examples/multimedia" and "../../../examples/multimediawidgets". This made qdoc miss the "multimedia" and "multimediawidgets" directories in the generated paths. To fix this, the patch * moves all the multimediawidgets examples to multimedia * sets examplesinstallpath to "multimedia" The unification of directories is needed because there can be only one examplesinstallpath per qdoc project. Pick-to: 6.4 Fixes: QTBUG-104943 Change-Id: I4d1b1f857563ec23b4d60028ca08d0470ba96298 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Lars Knoll <lars@knoll.priv.no>