One camera with multiple video output
Unsolved
General and Desktop
-
I am on Qt 6.2 and I have a very simple QML camera output that streams the camera output to
VideoOut
viaCaptureSession
import QtQuick import QtMultimedia import QtQuick.Controls Window { width: 640 height: 480 visible: true title: qsTr("Camera App") Item { width: parent.width height: parent.height CaptureSession { camera: Camera { id: camera } videoOutput: videoOutput } VideoOutput { id: videoOutput anchors.fill: parent orientation: -90 } Component.onCompleted: { camera.stop() } Button { text: camera.active ? "Stop" : "Start" onClicked: function() { if (camera.active) { camera.stop() } else { camera.start() } } } } }
I want to display another
VideoOutput
similar to howMediaPlayer
can do.How would I display the same camera feed in two
VideoOutput
side-by-side?