![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\qmltype CaptureSession More...
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 |
\qmltype CaptureSession
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
Definition at line 127 of file qmediacapturesession.cpp.
|
staticconstexpr |
Definition at line 133 of file qmediacapturesession.cpp.
|
staticconstexpr |
Definition at line 129 of file qmediacapturesession.cpp.
|
staticconstexpr |
Definition at line 132 of file qmediacapturesession.cpp.
|
staticconstexpr |
Definition at line 131 of file qmediacapturesession.cpp.
|
staticconstexpr |
Definition at line 130 of file qmediacapturesession.cpp.