| 60 | } |
| 61 | |
| 62 | CRecordVideo::CRecordVideo(QObject *parent) |
| 63 | : QObject{parent} |
| 64 | { |
| 65 | #if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) |
| 66 | bool check = connect( |
| 67 | &m_Recorder, &QMediaRecorder::errorOccurred, |
| 68 | this, [&](QMediaRecorder::Error error, const QString &errorString) { |
| 69 | qDebug(log) << "Recorder error occurred:" << error << errorString; |
| 70 | Stop(); |
| 71 | emit sigError(error, errorString); |
| 72 | }); |
| 73 | Q_ASSERT(check); |
| 74 | #endif |
| 75 | } |
| 76 | |
| 77 | int CRecordVideo::Start(const QString &szFile) |
| 78 | { |
nothing calls this directly
no outgoing calls
no test coverage detected