summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/recorder
Commit message (Collapse)AuthorAgeFilesLines
* Example: Not working mute for AudioInput in recorderBartlomiej Moskal2022-10-261-1/+1
| | | | | | | | | | | | | The change of switch (next to audio Input source) should affect the example. Mute is now connected to the audioSwitch value. Fixes: QTBUG-107885 Change-Id: I7dd3495916f30dd713ebc7e9c8ae3ccbe734fd49 Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Samuel Mira <samuel.mira@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io> (cherry picked from commit f14b25c9a3c9df370c8af3c88726a19a3cc617ca) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use SPDX license identifiersLucie Gérard2022-06-2815-712/+30
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Ida08dfe6c84778656e942178c3d39042c9ef1ed2 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit e9abd242abfbc368478f7be3e2923e7b100a9386) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Split spatial audio out into a lib of its ownLars Knoll2022-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | Move the classes from src/multimedia/spatial into its own QtSpatialAudio library. This is required to keep Qt Multimedia compatible with the requirements from the KDE Free Qt Foundation agreement, as well as to keep license compatibility with existing applications licensed under GPLv2 that are using Qt Multimedia. Moving the classes into a module of their own required a few additional changes to ensure we generate proper documentation for the new spatial audio module. To align the API between C++ and QML, the QML import was also renamed to QtQuick3D.SpatialAudio. Change-Id: Ia3f9ac5e1edac4b1e07d3302d7a229ada5bdc038 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> (cherry picked from commit c403e775f60a5d02e761904342ac243be1f22597) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Improve examples CMakeLists.txt (II)Kai Köhne2022-03-211-14/+7
| | | | | | | | | | | | - Remove double newline at the end - Use unversioned Qt commands - Remove QtC specific hacks Amends 236eec9cbe3 Pick-to: 6.3 Change-Id: Ia6dc5dc801a9002f9f5740869651c343b714913b Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Remove the code-signing step from examplesDoris Verria2022-03-172-21/+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 Pick-to: 6.3 6.2 6.2.4 Change-Id: I35181220dbe4ef6b59072dcd3e76f066ab85db60 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
* Fix missing main.qml in examplesSamuel Mira2022-03-092-19/+24
| | | | | | | | | | | | | | | | These examples use resources files with qml files inside but the resource files were added in the project sources. That prevented the app to find and use the resource files. To fix the issue the resources were added using qt6_add_resources macro. Note that adding the cmake flag set(CMAKE_AUTORCC ON) would also work, but the qt6_add_resources macro is more consistent with the rest of the examples. Fixes: QTBUG-101518 Pick-to: 6.3 Change-Id: I5fb2481d5576683171a2292bdc35e417ee6d8fab Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Improve examples CMakeLists.txtKai Köhne2022-02-171-6/+2
| | | | | | | | | | | | | | | | | - Remove "# generated from xyz.pro" comment from pro2cmake - Remove automatic use of CMAKE_AUTORCC - Only opt into CMAKE_AUTOUIC if .ui files are involved - Remove explicit setting of CMAKE_INCLUDE_CURRENT_DIR - Combine multiple find_package(Qt6 ... calls) - use REQUIRED COMPONENTS - sort components alphabetically - Fix wrong indentations - Use (only) one empty line after multi-line commands Pick-to: 6.3 Change-Id: I9f60da23df1547d685439b0263fa5bf533b7c69e Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* CMake: add install command for examplesSamuli Piippo2022-01-181-0/+12
| | | | | | | | Add install command to deploy the examples correctly. Pick-to: 6.3 6.2 Change-Id: If9c24c4267a801078a4bf3f783587afeeb734be0 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Multimedia examples: Add camera and audio input entitlementsDoris Verria2021-12-172-0/+21
| | | | | | | | | | | | | | | 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 Pick-to: 6.3 6.2 Change-Id: I6a578def1f6a41b4d106ee49c0c32fad304ef3cb Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Fix the example imagesLars Knoll2021-09-221-0/+0
| | | | | | | | | They contained some ugly borders from the capturing tool. Remove those. Pick-to: 6.2 6.2.0 Change-Id: I75c8a5b85ff856144eb7611dda5d9e0840706f0b Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
* Fix API naming inconsistencyLars Knoll2021-09-211-15/+15
| | | | | | | | | | The QML type should be MediaMetaData (as the namespace is mediaMetaData). Pick-to: 6.2 6.2.0 Change-Id: I0b45ef390fc9662c534033977f56d3ce607bcb3e Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Add some basic docs for the media player and recorder examplesLars Knoll2021-09-202-0/+46
| | | | | | | | | | | 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. Pick-to: 6.2 6.2.0 Change-Id: I79177b7f398c418ab3ba723e9ff2cd5ef3de1cf6 Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
* Lock the Window orientation while recording in the recorder exampleLars Knoll2021-09-101-2/+6
| | | | | | | | | And document the best practice in QMediaPlayer::record(). Pick-to: 6.2 6.2.0 Change-Id: I3f9c69e869d36e3267a2dd33fa86f0b290541227 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* 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. Pick-to: 6.2 6.2.0 Change-Id: I19bc88b0c6a8bf20dd4d3846a5c843d11ee7f8cb Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Fix default state of recorder exampleLars Knoll2021-09-082-2/+7
| | | | | | | | | | Turn camera and microphone on by default. Pick-to: 6.2 6.2.0 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>
* 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 Pick-to: 6.2 6.2.0 Change-Id: I524767232561bef7716830ed0f9360e7c0662f0f Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Recorder example: Build as app bundle on macOS/iOSDoris Verria2021-08-192-0/+51
| | | | | | | | | Add an Info.plist file for camera and microphone usage too. Pick-to: 6.2 Change-Id: Ia1fafec2f01dcb1c3d85ce6efcc642fc9d5216b8 Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Raise cmake_minimum_required to VERSION 3.16 in examplesJoerg Bornemann2021-08-171-1/+1
| | | | | | | Pick-to: 6.2 Task-number: QTBUG-95636 Change-Id: I67a136d4437269f9afea9bf71d424d46132f4fa4 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Example: Fix in recorder exampleBartlomiej Moskal2021-08-021-1/+1
| | | | | | | Do not activate camera until it is not set Change-Id: Ief04826f93bb6c52b82d8f0f764d6af93bb8d1ad Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
* Rename QMediaCaptureSession::encoder to recorderLars Knoll2021-07-081-1/+1
| | | | | | | | | | | | | As the class is called QMediaRecorder this is required for API consistency. Also cleaned up the front end code and examples where they used encoder instead of recorder. Cleanup of the backend will have to come in a separate change. Change-Id: I6e63e607473e68f628b1f89ffa3edcbc5bf5c2c8 Reviewed-by: Doris Verria <doris.verria@qt.io> Reviewed-by: Bartlomiej Moskal <bartlomiej.moskal@qt.io> Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
* Add a simple recorder app for capturing audio or audio/video streamsPiotr Srebrny2021-07-0117-0/+1487
Change-Id: Iad6e33f6ec77aa28121b8b0d1b9c0ae32616c30e Reviewed-by: Lars Knoll <lars.knoll@qt.io>