Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QMediaRecorderPrivate Class Reference

#include <qmediarecorder_p.h>

+ Collaboration diagram for QMediaRecorderPrivate:

Public Member Functions

 QMediaRecorderPrivate ()
 

Static Public Member Functions

static QString msgFailedStartRecording ()
 

Public Attributes

QMediaCaptureSessioncaptureSession = nullptr
 
QPlatformMediaRecordercontrol = nullptr
 
QString initErrorMessage
 
bool settingsChanged = false
 
QMediaEncoderSettings encoderSettings
 
QMediaRecorderq_ptr = nullptr
 

Detailed Description

Definition at line 29 of file qmediarecorder_p.h.

Constructor & Destructor Documentation

◆ QMediaRecorderPrivate()

QMediaRecorderPrivate::QMediaRecorderPrivate ( )
\qmltype MediaRecorder
\instantiates QMediaRecorder
\brief For encoding and recording media generated in a CaptureSession.

\inqmlmodule QtMultimedia
\ingroup multimedia_qml
\ingroup multimedia_audio_qml
\ingroup multimedia_video_qml

The MediaRecorder element can be used within a CaptureSession to record and encode audio and
video captured from a microphone and camera

\since 6.2
The code below shows a simple capture session containing a MediaRecorder using the default
camera and default audio input.

\qml CaptureSession { id: captureSession camera: Camera { id: camera active: true } audioInput: AudioInput {} recorder: MediaRecorder { id: recorder } } \endqml

The code below shows how the recording can be started and stopped.

\qml CameraButton { text: "Record" visible: recorder.recorderState !== MediaRecorder.RecordingState onClicked: recorder.record() }

CameraButton { id: stopButton text: "Stop" visible: recorder.recorderState === MediaRecorder.RecordingState onClicked: recorder.stop() } \endqml

\sa CaptureSession, Camera, AudioInput, ImageCapture

Definition at line 91 of file qmediarecorder.cpp.

References encoderSettings, and QMediaEncoderSettings::mimeType().

+ Here is the call graph for this function:

Member Function Documentation

◆ msgFailedStartRecording()

QString QMediaRecorderPrivate::msgFailedStartRecording ( )
static

Definition at line 98 of file qmediarecorder.cpp.

Referenced by AVFMediaEncoder::record(), QWindowsMediaEncoder::record(), and QAndroidCaptureSession::start().

+ Here is the caller graph for this function:

Member Data Documentation

◆ captureSession

QMediaCaptureSession* QMediaRecorderPrivate::captureSession = nullptr

Definition at line 38 of file qmediarecorder_p.h.

Referenced by QMediaRecorder::~QMediaRecorder().

◆ control

QPlatformMediaRecorder* QMediaRecorderPrivate::control = nullptr

◆ encoderSettings

QMediaEncoderSettings QMediaRecorderPrivate::encoderSettings

Definition at line 44 of file qmediarecorder_p.h.

Referenced by QMediaRecorderPrivate().

◆ initErrorMessage

QString QMediaRecorderPrivate::initErrorMessage

Definition at line 40 of file qmediarecorder_p.h.

◆ q_ptr

QMediaRecorder* QMediaRecorderPrivate::q_ptr = nullptr

Definition at line 46 of file qmediarecorder_p.h.

◆ settingsChanged

bool QMediaRecorderPrivate::settingsChanged = false

Definition at line 42 of file qmediarecorder_p.h.


The documentation for this class was generated from the following files: