| 75 | } |
| 76 | |
| 77 | int CRecordVideo::Start(const QString &szFile) |
| 78 | { |
| 79 | int nRet = 0; |
| 80 | qDebug(log) << "Start"; |
| 81 | #if QT_VERSION >= QT_VERSION_CHECK(6, 8, 0) |
| 82 | m_Parameter.SetEnable(true); |
| 83 | m_Parameter >> m_Recorder; |
| 84 | m_CaptureSession.setVideoFrameInput(&m_VideoFrameInput); |
| 85 | //m_CaptureSession.setAudioBufferInput(&m_AudioBufferInput); |
| 86 | m_CaptureSession.setRecorder(&m_Recorder); |
| 87 | m_Recorder.setOutputLocation(QUrl::fromLocalFile(m_Parameter.GetFile(true))); |
| 88 | m_Recorder.record(); |
| 89 | #endif |
| 90 | return nRet; |
| 91 | } |
| 92 | |
| 93 | int CRecordVideo::Stop() |
| 94 | { |