summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Remove the code-signing step from examplesDoris Verria2022-03-1714-131/+0
| | | | | | | | | | | | | Codesigning with entitlements is not needed unless the hardened-runtime option is enabled, so we can remove this post-build step. Fixes: QTBUG-101719 Change-Id: I35181220dbe4ef6b59072dcd3e76f066ab85db60 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> (cherry picked from commit fa8e9a39bfbffaa23200a88bb700e86490389183) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Switch examples to build as isolated sub-builds part 2Alexandru Croitor2022-02-051-1/+1
| | | | | | | | | | | | | | | | qt_examples_build_begin needs the EXTERNAL_BUILD flag to know that it's safe to build examples as ExternalProjects. It still won't do it in CI until we enable building examples as ExternalProjects for prefix builds. This is preparation for that. Task-number: QTBUG-90820 Change-Id: Ie7b3be8d74c1eb9e5f09dbe1819d56c2a42653fc Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit b094da4bee0954f4e77b8c406d0c760741e31ca4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: Fix qmlvideo seek issuePekka Gehör2022-01-312-2/+2
| | | | | | | | | After the fix, seek works s it should be. Task-number: QTBUG-99038 Change-Id: I6658dd3e860e88c9fee8e457d7cdcd31df840426 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit bc2c92b483d3a45e426722b50bf2f1e4ad97d648)
* Android: Fix qmlvideo metadata issuePekka Gehör2022-01-242-14/+17
| | | | | | | | | | After the fix, metadata of the video shown correctly on MetaData page. Task-number: QTBUG-99038 Change-Id: I3ef2d90c237d1740c550ff4537fe5184a88bea5f Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit b2ce9610ce434ce5e779f2ae1ce04260dd0cb5b6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* CMake: add install command for examplesSamuli Piippo2022-01-192-0/+24
| | | | | | | | Add install command to deploy the examples correctly. Change-Id: If9c24c4267a801078a4bf3f783587afeeb734be0 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit a0437e324bad99685072aa7f7a5fc4d20846bb12)
* Don't crash if system has no audio deviceDoris Verria2022-01-131-0/+3
| | | | | | | | Fixes: QTBUG-97838 Change-Id: I355958b99f62fc85228b3dd3afd06aa01005008c Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit e95f7256fb534c3dd03b3091dd9835cd2f33d327) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the camera format used by the camera exampleLars Knoll2022-01-051-12/+12
| | | | | | | | | | | | | | The camera example was simply trying to get the format with the highest possible resolution. But that often lead to formats with a very low frame rate being chosen. Change the algorithm to find the highest resolution format with at least 30FPS. Fixes: QTBUG-97817 Change-Id: I5e043188a4ed3d4acd72190b96fba4095a3f9aa2 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit c76508f8a2d121a428d90648b4c894c845c3f010) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* audiosource example: Refactor push modeFriedemann Kleint2021-12-222-10/+16
| | | | | | | | | | | | Factor out a function to calculate the level from the data to make it clearer that push does not require reimplementing a QIODevice. Complements a71362d9ef7098c1d7869b3768a0990a61474980. Change-Id: I4899b96d1e8d0336f960e514bfd355a894522aa8 Reviewed-by: André de la Rocha <andre.rocha@qt.io> (cherry picked from commit 28932bcc4c40a6c5f96bf2beb860c916c1161056) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Polish the audiosource exampleFriedemann Kleint2021-12-203-51/+42
| | | | | | | | | | | | | - Use a QWidget instead of a QMainWindow since no QMainWindow functionality is used and the controls are wrongly parented - Change the update signal of AudioInfo to levelChanged(level), removing the need for a lamba - Streamline the code Change-Id: Ic03a5414ee5da4841532ad23db112d0594f458e5 Reviewed-by: Doris Verria <doris.verria@qt.io> (cherry picked from commit a71362d9ef7098c1d7869b3768a0990a61474980) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Multimedia examples: Add camera and audio input entitlementsDoris Verria2021-12-1714-0/+136
| | | | | | | | | | | | | | | | Apple needs apps to specify proper entitlements in order to grant the executable permissions to use services like camera and microphone. The multimedia examples using microphone and camera were sometimes crashing because of missing entitlements. To fix, add an entitlement file to all examples using these services, and add a post-build command to codesign the executables with the specified entitlements. Task-number: QTBUG-98419 Change-Id: I6a578def1f6a41b4d106ee49c0c32fad304ef3cb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 767315b2049f0685f12de3418c658313851e8c0f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Switch examples to build as isolated sub-buildsAlexandru Croitor2021-12-153-15/+15
| | | | | | | | Task-number: QTBUG-90820 Change-Id: I7b3fe87c4dc9b3ed71c97598d07c592c7e707db8 Reviewed-by: Alexey Edelev <alexey.edelev@qt.io> (cherry picked from commit 11d810823522c9d850e1db96c0027f7ba50e89d6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix Declarative Camera issues on video sidePekka Gehör2021-12-152-3/+7
| | | | | | | | | | After the fix, the buttons on video side will behave as they should and preview plays the video. Fixes: QTBUG-99134 Change-Id: I593aad3f37b93b3699781c6b143e7e0c9a157ec3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 452caffc791e4be614ffc46ae6dc34e3da8be90d) Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Declarative-camera facelift for mobilePekka Gehör2021-12-155-84/+358
| | | | | | | | | | After patch, you can use the camera in portrait and landscape mode on mobile devices. Task-number: QTBUG-96077 Change-Id: Idd46498e1166bab09a27d182ce707d8bb4528c24 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 0ebbcc10f122d56baee5d2519eb6e99d47af68ab)
* MediaPlayer example: Display track-specific metadataDoris Verria2021-12-092-8/+23
| | | | | | | | | | | Update the metadata information to show track-specific metadata for the active tracks, besides the media's metadata. Add a missing signal emmission on darwin's mediaplayer. Change-Id: I0513d3ab0c2b62cf74ef060bc1367e2589f68bcd Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit af3286225434fd995b4dfdcb6ebb379b6ffa741d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix 'devices' example to build with MinGWAlexandru Croitor2021-11-101-1/+4
| | | | | | | | | | | | | | | | | | | src/gui/kernel/qwindowdefs.h #defines main to qMain and qtentrypoint_win.cpp expects qMain to have 2 parameters in its signature: argc and argv. The 'devices' example was missing the parameters, which caused the app to fail at link time with qtentrypoint_win.cpp:97: undefined reference to `qMain(int, char**)' Add the parameters to the example signature. Task-number: COIN-762 Change-Id: I8baa4e84abf4c08f462f041a30d261023282a0b9 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 10f303b85d56069116b2c6ad362aeee48da79624) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: Fix for crashes issue of the Spectrum examplePekka Gehör2021-11-094-5/+51
| | | | | | | | | | | The Spectrum app does not crash anymore after the fix. Fixes: QTBUG-96953 Change-Id: Ia555bdd21c3bc1ab0ada585c49441d6f8f548f8d Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit b9d508b7bb15d067c50ed6fbee8cae2cd6ee3cd0) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: Fix for Content uri issuesPekka Gehör2021-11-092-4/+17
| | | | | | | | | | After fix file name and file extension will pass as a initial name to the file name field of the QFileDialog. Fixes: QTBUG-96957 Change-Id: Iea97b1249195fee1021163beb23130141093c3a4 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 24d80c6a7856547036c36b719ca9aba6bb59b815) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove some dead codeLars Knoll2021-11-031-10/+0
| | | | | | | | | | WinRT doesn't exist anymore as a platform we support. Change-Id: I85ebb73b5c24d5415847925b0f3462b29232c6c9 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit ca324670ef3dcc03deb8d53420ba06865f297ac6) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Update the matching formats in the audiorecorder and camera examplesLars Knoll2021-11-034-38/+99
| | | | | | | | | | | | The combo boxes should show a list of matching formats/codec that we can handle give the constraints from the other combo boxes. Fixes: QTBUG-97839 Change-Id: I1a3f66c27f3ede06f188b9320600dde7c561a409 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit eaad981c0bd2de5f74114295d47a8893382a6a7f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Do not hide playback control bar since HoverHandle is brokenPiotr Srebrny2021-11-022-2/+2
| | | | | | | Change-Id: Ia67ba3c0611cebd49a9e5ed072c2bb07739312fa Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 1e97d96ab0647005dd655961874f640984d66134) Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Camera example: Don't crash is the system doesn't have a cameraLars Knoll2021-11-011-8/+10
| | | | | | | | | | Don't assume the list of camera formats is non empty. Change-Id: Id64772b8db165357d350456df9174a6659f7c8d8 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 315dff497c78526888121c7f84e0074208261129) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* player example: Use msec precision on the position sliderLars Knoll2021-11-012-6/+6
| | | | | | | | | | | Improves look and feel of the position slider significantly for short videos. Change-Id: I3b2cf3e66317cffcb1ffaec26bf3f5787b4264b4 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 8a9998061dc1121348a6297705937d2839441dde) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Camera example: Fix .plist file to build in iOS/macOS with qmake and cmakeDoris Verria2021-10-284-9/+110
| | | | | | | | | | | | | | | | - Fix format error in .plist.in file which was causing the permission dialog to not show up. - Provide separate .plist.in files for iOS and macOS so we can set needed keys specific to the platforms. - For qmake builds, fix the shared.pri to provide an INFOPLIST dictionary for macOS. The provided one has iOS specific keys. Fixes: QTBUG-97408 Change-Id: Idd8e00c91b935328352cc513f419205303d9356d Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 67fe9e4106616383ede02741cfceaec12ee1b648) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: Fix for List of available devices issuePekka Gehör2021-10-152-0/+10
| | | | | | | | | | | After fix the list of output devices will be update. Fixes: QTBUG-96956 Change-Id: Iaae3e1098ed11fb21477cd7dcf2a6054f169ddea Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 69e2b261036eae77c4f0cfad320d2cecb7a87728) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove the android/gstreamer exampleLars Knoll2021-10-149-338/+0
| | | | | | | | | | | | | We're not using gstreamer on Android and the example is in any case relying on code that is not supported anymore in Qt 6. Fixes: QTBUG-95369 Change-Id: I24c814bbb820ff42c2830d4d9661c1485f8dc0f3 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit f763920411015ecd259499c5925d1c9043154f05) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix black rectangle on mediaplayer widget exampleSamuel Mira2021-10-136-482/+92
| | | | | | | | | | | | | | Multiple widgets are being created, but, in case of mobile ui, not all of them are added to layout. Those that are created with the player as the parent are added but not correctly positioned or used. Reordered calls to better understand what was being created and where. Prevented creation of widgets not being used on mobile. Fixes: QTBUG-96747 Change-Id: I390ea534d7ea7f58b0fb30faac2bf5491d9723dd Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 9599406cdbf7eb6e84fb6b62704fe3d8a870441c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix back button on android video widgetSamuel Mira2021-10-121-1/+1
| | | | | | | | | | | | | | Handling a back button with in Android in VideoWidget was not being handled. The app would get back to previous screen but the VideoWidget did not stop fullscreen mode and would continue reproducing behind the UI. Fixes: QTBUG-96750 Change-Id: I2b9fbfc91275cf024e8f5f54f368eb4d96f705b5 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 350c6b6f970de73d1e1fda91ec453f8c7255138f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Q_DECLARE_METATYPE(WindowFunction) in spectrum exampleAssam Boudjelthia2021-10-111-0/+1
| | | | | | | | | Fixes: QTBUG-96955 Change-Id: I4c9d2da8d8f0dd3af9ce7482deaab3dedafa7755 Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 925b0a7f33335fca4c416aaa593c9210e87149d2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix resolution list to a camera format listSamuel Mira2021-10-074-77/+128
| | | | | | | | | | | | | | | | | | | Changed the resolution list (widthxheight) to camera a format list (PixelFormat widthxheight MinFps-MaxFps FPS) Changed the Frames per Second to be a spinbox and a slider so it would give feedback of the selected FPS while being easy to change on a mobile device. This way users can fine tune how many fps they want for the capture (previously was either min or max) Set the selected cameraFormat to the camera in the captureSession since it was needed for saving all the changes and it fixed QTBUG-96739 by coincidence Fixes: QTBUG-96719 Fixes: QTBUG-96739 Change-Id: I9eaacfbf860d8a4d03c2044b41de5d84139b3b17 Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 806325a271bf84a0ac359237d1b9a449c0987e8d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix assertion in audio source exampleLars Knoll2021-10-041-1/+0
| | | | | | | | | | | | There is no need for the assertion. If we receive partial samples, we can simply ignore that partial sample for the max volume calculation. Fixes: QTBUG-95063 Change-Id: Ia1022f87ac4f23e154fc7627ace477c07ecef55a Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit d890688776853ccf0323d1278a477d791b13f248) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: Fix video sizes and formats returned from CameraPekka Gehör2021-10-011-10/+37
| | | | | | | | | | | | | After the fix, we get a list of available resolutions and frame rates of the camera. This also fixes the code in the widgets camera example that uses the video resolutions and frame rates. Task-number: QTBUG-96097 Change-Id: Ie5fa1e89f658f0c816015944fa5a4c1f34625c12 Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit bf455a536148af767bff45ee3186740cc681d58b) Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Fix example documentationLars Knoll2021-09-231-3/+3
| | | | | | | | | | The example implements a simple video player using QVideoWidget, not QVideoSink. Change-Id: I2392c82b12b69d4845c681b7a7b28652be1639fe Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit cb4c39b1ac43ad6c6c79d2d046645936ff52bdb4) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the example imagesLars Knoll2021-09-232-0/+0
| | | | | | | | | | They contained some ugly borders from the capturing tool. Remove those. Change-Id: I75c8a5b85ff856144eb7611dda5d9e0840706f0b Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit 7d12a5db67d84862925a8388d99ff887e8629503) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the remaining qdoc warningsLars Knoll2021-09-232-3/+3
| | | | | | | | | Fix all qdoc warnings inside the Qt Multimedia module. Change-Id: I4a581aa4f9fa9d96d58279884116ed10ca7bf837 Reviewed-by: Topi Reiniö <topi.reinio@qt.io> (cherry picked from commit baa34e18560d816c82d8779fbb40b1911ee0e164) Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Exclude example from Android and iOS the right wayAssam Boudjelthia2021-09-222-6/+3
| | | | | | | | | | Don't add_subdirectory(devices) for Android and iOS, instead of throwing a warning. Change-Id: Iaa4300d3ad875557f11504f80d0224d72debe2f9 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 1c8a2dbcd8ae26209cfed2fce288e6511d8c3f72) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix API naming inconsistencyLars Knoll2021-09-211-15/+15
| | | | | | | | | | | The QML type should be MediaMetaData (as the namespace is mediaMetaData). Change-Id: I0b45ef390fc9662c534033977f56d3ce607bcb3e Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 5777fe84cf1e7c15c7905b549a34f1df946eab96) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the MediaPlayer docsLars Knoll2021-09-211-2/+0
| | | | | | | | | | | | | | Remove all properties that don't exist in Qt 6. Move the QML docs into qmediaplayer.cpp, add docs for some missing methods and document the AudioInput and AudioOutput QML types. Fixes: QTBUG-96641 Fixes: QTBUG-96653 Task-number: QTBUG-95066 Change-Id: I8c2339d85cf06ae39f8baf7f44543e961e01c433 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> (cherry picked from commit 627c0df99cd2bd5e0c66bf8b904bb9dc82f1ea98) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Add some basic docs for the media player and recorder examplesLars Knoll2021-09-206-2/+98
| | | | | | | | | | | | Hook up those examples in the correct places, remove a stale link to the qmlvideofx example and fix the highlighted examples list to include four examples, showing playback and capture for both C++ and QML. Change-Id: I79177b7f398c418ab3ba723e9ff2cd5ef3de1cf6 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> (cherry picked from commit d750ae98cd3b13d96eb9865a1eb0ec328278de14) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove the qmlvideofx exampleLars Knoll2021-09-2096-7547/+1
| | | | | | | | | | | The example is broken and was never too useful. Change-Id: I24ccc3f316713ccba73104f2d6f4a2b1dd3727e0 Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 7e2ae885f6292b3b2623797e51de89bed11ce57a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix unused variable warning in player exampleAssam Boudjelthia2021-09-171-1/+1
| | | | | | | | Change-Id: I836a3a371e54b88ffe75ff464c326fa33a6a9f5b Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 34bb2dbfa3b8cce2f8deaf300e410420ea5749b8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Hide the metadata and tracks side bar when videoOutput is tappedAssam Boudjelthia2021-09-171-0/+6
| | | | | | | | | Change-Id: I7ec3e321335877831930b7ffa1076b79c87fcdef Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit a3c15ba4984f2e7f903e48cfd273af2f3861f083) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Android: Fix the capture button issuePekka Gehör2021-09-131-1/+1
| | | | | | | | | | The capture button does not works. Fixes: QTBUG-96102 Change-Id: Iac7a774cd81113e55550598423e9c19bc775c9b3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 7ec77dd61de2e84280a5f104f2c96353372633f7) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Lock the Window orientation while recording in the recorder exampleLars Knoll2021-09-101-2/+6
| | | | | | | | | | And document the best practice in QMediaPlayer::record(). Change-Id: I3f9c69e869d36e3267a2dd33fa86f0b290541227 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit be6eb6f0c7b0b0bfb036ed268069970c1c9f57dd) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix capture view in recorder exampleLars Knoll2021-09-102-19/+22
| | | | | | | | | | | | | | Once the capture view had played back a video, it would never move the video output back to the camera, rendering the app unusable for recording until restarted. Fix this by giving the player its own video output, and properly hiding it when not in use. Change-Id: I19bc88b0c6a8bf20dd4d3846a5c843d11ee7f8cb Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit 782a682be989e0738dff4ce25021e275cb92ff60) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix various documentation issuesTopi Reinio2021-09-092-12/+7
| | | | | | | | | | | | | | * Fix linking issues * Document all QMediaFormat::AudioCodec enum values * Fix example \quotefromfile paths * Document QMediaFormat::ResolveFlags * Drop links to removed classes/functions Fixes: QTBUG-96340 Change-Id: Iae82295e9cd396b392af2e577b21158ad1509fd3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit e22ddea9d62d84a4b28b2395d4f259dd1d4b1094) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Doc: Fix QDoc errors Qt MultimediaNico Vertriest2021-09-091-2/+2
| | | | | | | | Task-number: QTBUG-95708 Change-Id: I978447fde6f10d4f8bfe2afad3191bd7e854272d Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 48ed9a26cc8c3335776ff0eff8ef62e9d4fc99bb)
* Do not discard track that do not have language informationPiotr Srebrny2021-09-092-9/+6
| | | | | | | | | | | | | | Many track do not have the languange information or it may be not relevant, like in the case of video content. Instead of discarding these tracks give them a default track_x name. Fix how track indexes are handled. Change-Id: Ic8a3cf6feb6d00e05f317e4085ee852f71e4352d Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Samuel Mira <samuel.mira@qt.io> (cherry picked from commit 9bcb332f599fc7f2dccfac688d8d019533ccab76) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Remove NSApplication from Info.plist filesDoris Verria2021-09-093-9/+0
| | | | | | | | | | This causes the applciation to crash on iOS as this class doesn't exist there. Change-Id: I393a63b2635475510f3fe1325d5c0cdace79f006 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit c24860a521670aa95ff954f98d2e7a59b3ce2347) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix default state of recorder exampleLars Knoll2021-09-082-2/+7
| | | | | | | | | | | Turn camera and microphone on by default. Change-Id: Ib4bbb2fdc16249018a51f8db5bcab4707658687f Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> (cherry picked from commit 4b6cde99e1cf6ad388b794bec3e98516120b0b7c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve QML Recorder exampleSamuel Mira2021-09-089-57/+95
| | | | | | | | | | | | | Changed QML and added some cases just for mobile. Tested mostly on android. Hid metadata adding feature on mobile since it is not implemented. Task-number: QTBUG-96077 Change-Id: I524767232561bef7716830ed0f9360e7c0662f0f Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit f52141f1cf85f84e0b2a93d9c4e88723cf1d622a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>