Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMediaCaptureSession::ObjectTraits< QCamera > Struct Reference

\qmltype CaptureSession More...

Collaboration diagram for QMediaCaptureSession::ObjectTraits< QCamera >:

Static Public Attributes

static constexpr auto Member = &QMediaCaptureSessionPrivate::camera
static constexpr auto Setter = &QMediaCaptureSession::setCamera
static constexpr auto PlatformSetter = &QPlatformMediaCaptureSession::setCamera
static constexpr auto PlatformObjectProvider = &QCamera::platformCamera
static constexpr auto ChangeNotifier = &QMediaCaptureSession::cameraChanged

Detailed Description

\qmltype CaptureSession

Since
6.2 \nativetype QMediaCaptureSession

Allows capturing of audio and video content.

\inqmlmodule QtMultimedia

This is the central type that manages capturing of media on the local device.

Connect a camera and a microphone to a CaptureSession by assigning Camera and AudioInput objects to the relevant properties.

Capture a screen by connecting a ScreenCapture object to the screenCapture property.

Capture a window by connecting a WindowCapture object to the windowCapture property.

Enable a preview of the captured media by assigning a VideoOutput element to the videoOutput property.

Route audio to an output device by assigning an AudioOutput object to the audioOutput property.

Capture still images from a camera by assigning an ImageCapture to the imageCapture property.

Record audio/video by assigning a MediaRecorder to the recorder property.

\qml CaptureSession { id: captureSession camera: Camera { id: camera } imageCapture: ImageCapture { id: imageCapture }

recorder: MediaRecorder { id: recorder } videoOutput: preview

Component.onCompleted: { camera.start() } } \endqml

See also
Camera, MediaDevices, MediaRecorder, ImageCapture, ScreenCapture, WindowCapture, AudioInput, VideoOutput
Note
To ensure the camera starts capturing video frames on all platforms, explicitly call camera.start(), typically in the Component.onCompleted handler.

Definition at line 127 of file qmediacapturesession.cpp.

Member Data Documentation

◆ ChangeNotifier

constexpr auto QMediaCaptureSession::ObjectTraits< QCamera >::ChangeNotifier = &QMediaCaptureSession::cameraChanged
staticconstexpr

Definition at line 133 of file qmediacapturesession.cpp.

◆ Member

constexpr auto QMediaCaptureSession::ObjectTraits< QCamera >::Member = &QMediaCaptureSessionPrivate::camera
staticconstexpr

Definition at line 129 of file qmediacapturesession.cpp.

◆ PlatformObjectProvider

constexpr auto QMediaCaptureSession::ObjectTraits< QCamera >::PlatformObjectProvider = &QCamera::platformCamera
staticconstexpr

Definition at line 132 of file qmediacapturesession.cpp.

◆ PlatformSetter

constexpr auto QMediaCaptureSession::ObjectTraits< QCamera >::PlatformSetter = &QPlatformMediaCaptureSession::setCamera
staticconstexpr

Definition at line 131 of file qmediacapturesession.cpp.

◆ Setter

constexpr auto QMediaCaptureSession::ObjectTraits< QCamera >::Setter = &QMediaCaptureSession::setCamera
staticconstexpr

Definition at line 130 of file qmediacapturesession.cpp.


The documentation for this struct was generated from the following file: